diff options
author | sapier <Sapier at GMX dot net> | 2014-06-18 22:38:29 +0200 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-06-18 22:38:29 +0200 |
commit | 65a4630f3176feb0f4dd4db6ce12cd6d32e2b369 (patch) | |
tree | c13646c86ee257761ddd676e0e76496cd8f2d90c /builtin/mainmenu | |
parent | 2a09b7e84fb5ce2d8d08d410529d70d440d48ef0 (diff) | |
download | minetest-65a4630f3176feb0f4dd4db6ce12cd6d32e2b369.tar.gz minetest-65a4630f3176feb0f4dd4db6ce12cd6d32e2b369.tar.bz2 minetest-65a4630f3176feb0f4dd4db6ce12cd6d32e2b369.zip |
Fix bounding rect for formspec elements label vertlabel and checkboxes
Diffstat (limited to 'builtin/mainmenu')
-rw-r--r-- | builtin/mainmenu/tab_credits.lua | 2 | ||||
-rw-r--r-- | builtin/mainmenu/tab_settings.lua | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/builtin/mainmenu/tab_credits.lua b/builtin/mainmenu/tab_credits.lua index f752d1728..8e5ce4d7b 100644 --- a/builtin/mainmenu/tab_credits.lua +++ b/builtin/mainmenu/tab_credits.lua @@ -22,7 +22,7 @@ tab_credits = { caption = fgettext("Credits"), cbf_formspec = function (tabview, name, tabdata) local logofile = defaulttexturedir .. "logo.png" - return "vertlabel[0,-0.5;CREDITS]" .. + return "vertlabel[0,-0.25;CREDITS]" .. "label[0.5,3;Minetest " .. core.get_version() .. "]" .. "label[0.5,3.3;http://minetest.net]" .. "image[0.5,1;" .. core.formspec_escape(logofile) .. "]" .. diff --git a/builtin/mainmenu/tab_settings.lua b/builtin/mainmenu/tab_settings.lua index 2d013a5ac..b6ffa86ed 100644 --- a/builtin/mainmenu/tab_settings.lua +++ b/builtin/mainmenu/tab_settings.lua @@ -79,7 +79,7 @@ end local function formspec(tabview, name, tabdata) local tab_string = - "vertlabel[0,0;" .. fgettext("SETTINGS") .. "]" .. + "vertlabel[0,-0.25;" .. fgettext("SETTINGS") .. "]" .. "box[0.75,0;3.25,4;#999999]" .. "checkbox[1,0;cb_fancy_trees;".. fgettext("Fancy Trees") .. ";" .. dump(core.setting_getbool("new_style_leaves")) .. "]".. @@ -108,7 +108,7 @@ local function formspec(tabview, name, tabdata) "checkbox[8,0;cb_shaders;".. fgettext("Shaders") .. ";" .. dump(core.setting_getbool("enable_shaders")) .. "]".. "button[1,4.5;2.25,0.5;btn_change_keys;".. fgettext("Change keys") .. "]" - + local android = false if android then tab_string = tab_string .. |