Fix textures and other minor fixes
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Before Width: | Height: | Size: 188 B After Width: | Height: | Size: 188 B |
Before Width: | Height: | Size: 942 B After Width: | Height: | Size: 942 B |
Before Width: | Height: | Size: 306 B After Width: | Height: | Size: 306 B |
|
@ -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)
|
||||
|
|
|
@ -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) {
|
||||
|
|
Before Width: | Height: | Size: 484 B After Width: | Height: | Size: 351 B |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 3.9 KiB |