diff options
author | kwolekr <kwolekr@minetest.net> | 2015-01-18 13:19:40 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-01-18 13:19:40 -0500 |
commit | 44e4f5ab6e20689f7106b957de62a1d7737cb28f (patch) | |
tree | 3fd92af0f03dcfcccb28bf958b15bca4366c6ee8 /builtin | |
parent | 6e9f2878445f4e1d695ea396f8f2803a2d739e5f (diff) | |
download | minetest-44e4f5ab6e20689f7106b957de62a1d7737cb28f.tar.gz minetest-44e4f5ab6e20689f7106b957de62a1d7737cb28f.tar.bz2 minetest-44e4f5ab6e20689f7106b957de62a1d7737cb28f.zip |
Revert "Fix style on settings tab"
This reverts commit 7b17b9059e30cef384ecca37feec87cdcdfd39b8.
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/mainmenu/tab_settings.lua | 61 |
1 files changed, 30 insertions, 31 deletions
diff --git a/builtin/mainmenu/tab_settings.lua b/builtin/mainmenu/tab_settings.lua index 0ad23062f..44e82c2eb 100644 --- a/builtin/mainmenu/tab_settings.lua +++ b/builtin/mainmenu/tab_settings.lua @@ -128,35 +128,35 @@ local function formspec(tabview, name, tabdata) end end - local filters = { - {"No Filter,Bilinear Filter,Trilinear Filter"}, - {"", "bilinear_filter", "trilinear_filter"}, - } - - local mipmap = { - {"No Mipmap,Mipmap,Mipmap + Aniso. Filter"}, - {"", "mip_map", "anisotropic_filter"}, - } - - local function getFilterSettingIndex() - if (core.setting_get(filters[2][3]) == "true") then - return 3 - end - if (core.setting_get(filters[2][3]) == "false" and core.setting_get(filters[2][2]) == "true") then - return 2 - end - return 1 - end - - local function getMipmapSettingIndex() - if (core.setting_get(mipmap[2][3]) == "true") then - return 3 - end - if (core.setting_get(mipmap[2][3]) == "false" and core.setting_get(mipmap[2][2]) == "true") then - return 2 - end - return 1 - end +local filters = { + {"No Filter,Bilinear Filter,Trilinear Filter"}, + {"", "bilinear_filter", "trilinear_filter"}, +} + +local mipmap = { + {"No Mipmap,Mipmap,Mipmap + Aniso. Filter"}, + {"", "mip_map", "anisotropic_filter"}, +} + +local function getFilterSettingIndex() + if (core.setting_get(filters[2][3]) == "true") then + return 3 + end + if (core.setting_get(filters[2][3]) == "false" and core.setting_get(filters[2][2]) == "true") then + return 2 + end + return 1 +end + +local function getMipmapSettingIndex() + if (core.setting_get(mipmap[2][3]) == "true") then + return 3 + end + if (core.setting_get(mipmap[2][3]) == "false" and core.setting_get(mipmap[2][2]) == "true") then + return 2 + end + return 1 +end local tab_string = "box[0,0;3.5,3.9;#999999]" .. @@ -241,8 +241,7 @@ local function formspec(tabview, name, tabdata) "textlist[8.33,2.2;4,1;;#888888" .. fgettext("Waving Water") .. ";0;true]" .. "textlist[8.33,2.7;4,1;;#888888" .. fgettext("Waving Leaves") .. ";0;true]" .. "textlist[8.33,3.2;4,1;;#888888" .. fgettext("Waving Plants") .. ";0;true]" - end - + end return tab_string end |