mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Menu: Do not use textlist for shaders in settings tab (#5820)
Replace the textlist used if the shaders checkbox is unchecked in the settings tab of the main menu with labels. This makes the formspec feel more consistent as the items do not move when shaders is unchecked but only change colour and the checkboxes beside them disappear.
This commit is contained in:
parent
25ae0739ed
commit
a9f02ab51c
1 changed files with 14 additions and 11 deletions
|
@ -247,17 +247,20 @@ local function formspec(tabview, name, tabdata)
|
||||||
.. dump(core.settings:get_bool("enable_waving_plants")) .. "]"
|
.. dump(core.settings:get_bool("enable_waving_plants")) .. "]"
|
||||||
else
|
else
|
||||||
tab_string = tab_string ..
|
tab_string = tab_string ..
|
||||||
"tablecolumns[color;text]" ..
|
"label[8.38,0.7;" .. core.colorize("#888888",
|
||||||
"tableoptions[background=#00000000;highlight=#00000000;border=false]" ..
|
fgettext("Bump Mapping")) .. "]" ..
|
||||||
"table[8.33,0.7;3.5,4;shaders;" ..
|
"label[8.38,1.2;" .. core.colorize("#888888",
|
||||||
"#888888," .. fgettext("Bump Mapping") .. "," ..
|
fgettext("Tone Mapping")) .. "]" ..
|
||||||
"#888888," .. fgettext("Tone Mapping") .. "," ..
|
"label[8.38,1.7;" .. core.colorize("#888888",
|
||||||
"#888888," .. fgettext("Normal Mapping") .. "," ..
|
fgettext("Normal Mapping")) .. "]" ..
|
||||||
"#888888," .. fgettext("Parallax Occlusion") .. "," ..
|
"label[8.38,2.2;" .. core.colorize("#888888",
|
||||||
"#888888," .. fgettext("Waving Water") .. "," ..
|
fgettext("Parallax Occlusion")) .. "]" ..
|
||||||
"#888888," .. fgettext("Waving Leaves") .. "," ..
|
"label[8.38,2.7;" .. core.colorize("#888888",
|
||||||
"#888888," .. fgettext("Waving Plants") .. "," ..
|
fgettext("Waving Water")) .. "]" ..
|
||||||
";1]"
|
"label[8.38,3.2;" .. core.colorize("#888888",
|
||||||
|
fgettext("Waving Leaves")) .. "]" ..
|
||||||
|
"label[8.38,3.7;" .. core.colorize("#888888",
|
||||||
|
fgettext("Waving Plants")) .. "]"
|
||||||
end
|
end
|
||||||
|
|
||||||
return tab_string
|
return tab_string
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue