Minor upd menu, tmp fix sign_wall

This commit is contained in:
MoNTE48 2018-07-20 14:32:08 +02:00
parent 1bec9ff1cc
commit f20ffe3d19
15 changed files with 18 additions and 11 deletions

View File

@ -60,7 +60,7 @@ local function get_bg(tsize, tabname)
tabname = tabname or "common"
return "background[0,0;" .. tsize.width .. "," .. tsize.height .. ";" ..
core.formspec_escape(defaulttexturedir ..
"multicraft_" .. tabname .. "_bg.png") .. ";true]"
"bg_" .. tabname .. ".png") .. ";true]"
end
--------------------------------------------------------------------------------

View File

@ -31,22 +31,22 @@ local function get_formspec(tabview, name, tabdata)
)
retval = retval ..
"image_button[0,4.8;3.375,0.9;" ..
"image_button[0,4.84;3.31,0.92;" ..
core.formspec_escape(defaulttexturedir ..
"multicraft_local_delete_btn.png") .. ";world_delete;;true;false]" ..
"image_button[3.12,4.8;3.375,0.9;" ..
"blank.png") .. ";world_delete;;true;false]" ..
"image_button[3.14,4.84;3.3,0.92;" ..
core.formspec_escape(defaulttexturedir ..
"multicraft_local_new_btn.png") .. ";world_create;;true;false]"
"blank.png") .. ";world_create;;true;false]"
local creative_mode = core.settings:get_bool("creative_mode")
retval = retval ..
"image_button[6.8,1.5;5,1.3;" ..
"image_button[6.72,1.43;4.96,1.41;" ..
core.formspec_escape(defaulttexturedir ..
"multicraft_local_play_btn.png") .. ";play;;true;false]" ..
"image_button[7.5,3.15;3.8,0.95;" ..
"blank.png") .. ";play;;true;false]" ..
"image_button[7.33,3.09;3.73,0.86;" ..
core.formspec_escape(defaulttexturedir ..
"multicraft_local_creative_" ..
"local_creative_" ..
tostring(creative_mode) .. "_btn.png") ..
";cb_creative_mode;;true;false]" ..
"textlist[0,0;6.24,4.6;sp_worlds;" ..

View File

@ -33,8 +33,10 @@ local function get_formspec(tabview, name, tabdata)
local retval =
-- Search
"field[0.15,0.5;6.05,0.27;te_search;;"..core.formspec_escape(tabdata.search_for).."]"..
"button[5.8,0.25;2,0.1;btn_mp_search;" .. fgettext("Search") .. "]" ..
"field[0.15,0.075;5.91,1;te_search;;" .. core.formspec_escape(tabdata.search_for) .. "]" ..
"button[5.62,-0.25;1.5,1;btn_mp_search;" .. fgettext("Search") .. "]" ..
"image_button[6.97,-.165;.83,.83;" .. core.formspec_escape(defaulttexturedir .. "refresh.png")
.. ";btn_mp_refresh;" .. fgettext("") .. "]" ..
-- Address / Port
"label[7.75,-0.25;" .. fgettext("Address / Port") .. "]" ..
@ -299,6 +301,11 @@ local function main_button_handler(tabview, fields, name, tabdata)
return true
end
if fields.btn_mp_refresh then
asyncOnlineFavourites()
return true
end
if (fields.btn_mp_connect or fields.key_enter)
and fields.te_address ~= "" and fields.te_port then
gamedata.playername = fields.te_name

BIN
textures/base/bg_common.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 715 B

BIN
textures/base/bg_local.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 702 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1001 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 332 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 389 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 532 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 393 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 463 B

BIN
textures/base/refresh.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B