MainMenu: cleanup

master
MoNTE48 2020-10-25 18:48:29 +01:00 committed by Maksim
parent f25139ce20
commit 2f88030976
9 changed files with 10 additions and 5 deletions

2
.gitignore vendored
View File

@ -49,6 +49,8 @@ desktop.ini
/clientmods/*
!/clientmods/preview/
/client/mod_storage/
/textures/base/hosting/
/builtin/mainmenu/hosting/
## Configuration/log files
debug.txt

View File

@ -78,7 +78,7 @@ local function get_formspec(self)
if not self.hidden and (self.parent == nil or not self.parent.hidden) then
local name = self.tablist[self.last_tab_index].name
local tabname = (name == "local" or name == "online" or name == "hosting") and name
local tabname = (name == "local" or name == "online") and name
if self.parent == nil then
local tsize = self.tablist[self.last_tab_index].tabsize or

View File

@ -19,7 +19,7 @@ local function get_formspec()
local index = filterlist.get_current_index(menudata.worldlist,
tonumber(core.settings:get("mainmenu_last_selected_world")))
local creative_checkbox = core.settings:get_bool("creative_mode") and
"local_creative_checkbox" or "blank"
"creative_checkbox" or "blank"
local retval =
"image_button[0,4.84;3.31,0.92;" ..
@ -37,9 +37,12 @@ local function get_formspec()
"tooltip[play;".. fgettext("Play Game") .. "]" ..
"image_button[7.33,3.09;3.73,0.86;" ..
core.formspec_escape(defaulttexturedir ..
creative_checkbox) ..
".png;cb_creative_mode;;true;false]" ..
core.formspec_escape(defaulttexturedir) .. "creative_bg.png" ..
";;;true;false]" ..
"image_button[7.33,3.09;3.73,0.86;" ..
core.formspec_escape(defaulttexturedir) .. creative_checkbox ..
".png;cb_creative_mode;;true;false]" ..
"tooltip[cb_creative_mode;".. fgettext("Creative mode") .. "]" ..
"tableoptions[background=#27233F;border=false]" ..

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

Before

Width:  |  Height:  |  Size: 418 B

After

Width:  |  Height:  |  Size: 418 B

View File

Before

Width:  |  Height:  |  Size: 217 B

After

Width:  |  Height:  |  Size: 217 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 412 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 412 B