Fix textures and other minor fixes

master
MoNTE48 2019-05-26 23:51:28 +02:00
parent c6984353e5
commit 39b2cee907
9 changed files with 14 additions and 9 deletions

View File

@ -100,7 +100,7 @@ local function create_world_buttonhandler(this, fields)
core.settings:set("fixed_map_seed", fields["te_seed"])
if not menudata.worldlist:uid_exists_raw(worldname) then
core.settings:set("mg_name","v6")
core.settings:set("mg_name",fields["dd_mapgen"])
message = core.create_world(worldname,gameindex)
else
message = fgettext("A world named \"$1\" already exists", worldname)

View File

@ -42,7 +42,7 @@ local function clean()
for j = 1, #objs do
local obj = objs[j]
if not obj:is_player() then
local entname = obj:get_luaentity()
local entname = obj:get_luaentity().name
if not minetest.registered_entities[entname] then
obj:remove()
end

View File

Before

Width:  |  Height:  |  Size: 188 B

After

Width:  |  Height:  |  Size: 188 B

View File

Before

Width:  |  Height:  |  Size: 942 B

After

Width:  |  Height:  |  Size: 942 B

View File

Before

Width:  |  Height:  |  Size: 306 B

After

Width:  |  Height:  |  Size: 306 B

View File

@ -30,12 +30,13 @@ minetest.register_on_joinplayer(function(player)
30
)
if PLATFORM ~= "Android" or PLATFORM ~= "iOS" then
player:hud_set_hotbar_image("gui_hotbar.png")
player:hud_set_hotbar_itemcount(9)
else
if PLATFORM == "Android" or PLATFORM == "iOS" then
player:hud_set_hotbar_image("gui_hotbar_touch.png")
player:hud_set_hotbar_itemcount(8)
else
player:hud_set_hotbar_image("gui_hotbar.png")
player:hud_set_hotbar_itemcount(9)
end
player:hud_set_hotbar_selected_image("gui_hotbar_selected.png")
end)

View File

@ -245,7 +245,11 @@ void set_default_settings(Settings *settings)
settings->setDefault("fallback_font_shadow", "1");
settings->setDefault("fallback_font_shadow_alpha", "128");
std::string font_size_str = std::to_string(TTF_DEFAULT_FONT_SIZE + 4);
#if defined(__ANDROID__) || defined(__IOS__)
std::string font_size_str = std::to_string(TTF_DEFAULT_FONT_SIZE - 3);
#else
std::string font_size_str = std::to_string(TTF_DEFAULT_FONT_SIZE + 2);
#endif
settings->setDefault("fallback_font_size", font_size_str);
#else
@ -444,8 +448,8 @@ void set_default_settings(Settings *settings)
settings->setDefault("emergequeue_limit_generate", "16");
settings->setDefault("gui_scaling_filter_txr2img", "false");
// set font_path
settings->setDefault("mono_font_path", font_path));
settings->setDefault("fallback_font_path", font_path));
settings->setDefault("mono_font_path", g_settings->get("font_path"));
settings->setDefault("fallback_font_path", g_settings->get("font_path"));
// set the size of the elements depending on the screen size
if ([SDVersion deviceSize] == Screen3Dot5inch) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 484 B

After

Width:  |  Height:  |  Size: 351 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB