Skip to content

Commit 5b7687c

Browse files
Ezhhparamat
authored andcommittedNov 13, 2017
Improve Settings tab button alignments
1 parent 4d83eb7 commit 5b7687c

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed
 

Diff for: ‎builtin/mainmenu/tab_settings.lua

+23-23
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ end
176176

177177
local function formspec(tabview, name, tabdata)
178178
local tab_string =
179-
"box[0,0;3.5,4.5;#999999]" ..
179+
"box[0,0;3.75,4.5;#999999]" ..
180180
"checkbox[0.25,0;cb_smooth_lighting;" .. fgettext("Smooth Lighting") .. ";"
181181
.. dump(core.settings:get_bool("smooth_lighting")) .. "]" ..
182182
"checkbox[0.25,0.5;cb_particles;" .. fgettext("Particles") .. ";"
@@ -187,38 +187,38 @@ local function formspec(tabview, name, tabdata)
187187
.. dump(core.settings:get_bool("opaque_water")) .. "]" ..
188188
"checkbox[0.25,2.0;cb_connected_glass;" .. fgettext("Connected Glass") .. ";"
189189
.. dump(core.settings:get_bool("connected_glass")) .. "]" ..
190-
"dropdown[0.25,2.8;3.3;dd_node_highlighting;" .. dd_options.node_highlighting[1] .. ";"
190+
"dropdown[0.25,2.8;3.5;dd_node_highlighting;" .. dd_options.node_highlighting[1] .. ";"
191191
.. getSettingIndex.NodeHighlighting() .. "]" ..
192-
"dropdown[0.25,3.6;3.3;dd_leaves_style;" .. dd_options.leaves[1] .. ";"
192+
"dropdown[0.25,3.6;3.5;dd_leaves_style;" .. dd_options.leaves[1] .. ";"
193193
.. getSettingIndex.Leaves() .. "]" ..
194-
"box[3.75,0;3.75,4.5;#999999]" ..
195-
"label[3.85,0.1;" .. fgettext("Texturing:") .. "]" ..
196-
"dropdown[3.85,0.55;3.85;dd_filters;" .. dd_options.filters[1] .. ";"
194+
"box[4,0;3.75,4.5;#999999]" ..
195+
"label[4.25,0.1;" .. fgettext("Texturing:") .. "]" ..
196+
"dropdown[4.25,0.55;3.5;dd_filters;" .. dd_options.filters[1] .. ";"
197197
.. getSettingIndex.Filter() .. "]" ..
198-
"dropdown[3.85,1.35;3.85;dd_mipmap;" .. dd_options.mipmap[1] .. ";"
198+
"dropdown[4.25,1.35;3.5;dd_mipmap;" .. dd_options.mipmap[1] .. ";"
199199
.. getSettingIndex.Mipmap() .. "]" ..
200-
"label[3.85,2.15;" .. fgettext("Antialiasing:") .. "]" ..
201-
"dropdown[3.85,2.6;3.85;dd_antialiasing;" .. dd_options.antialiasing[1] .. ";"
200+
"label[4.25,2.15;" .. fgettext("Antialiasing:") .. "]" ..
201+
"dropdown[4.25,2.6;3.5;dd_antialiasing;" .. dd_options.antialiasing[1] .. ";"
202202
.. getSettingIndex.Antialiasing() .. "]" ..
203-
"label[3.85,3.45;" .. fgettext("Screen:") .. "]" ..
204-
"checkbox[3.85,3.6;cb_autosave_screensize;" .. fgettext("Autosave screen size") .. ";"
203+
"label[4.25,3.45;" .. fgettext("Screen:") .. "]" ..
204+
"checkbox[4.25,3.6;cb_autosave_screensize;" .. fgettext("Autosave screen size") .. ";"
205205
.. dump(core.settings:get_bool("autosave_screensize")) .. "]" ..
206-
"box[7.75,0;4,4.5;#999999]" ..
207-
"checkbox[8,0;cb_shaders;" .. fgettext("Shaders") .. ";"
206+
"box[8,0;3.75,4.5;#999999]" ..
207+
"checkbox[8.25,0;cb_shaders;" .. fgettext("Shaders") .. ";"
208208
.. dump(core.settings:get_bool("enable_shaders")) .. "]"
209209

210210
if PLATFORM == "Android" then
211211
tab_string = tab_string ..
212-
"button[8,4.75;3.75,0.5;btn_reset_singleplayer;"
212+
"button[8,4.75;4.1,1;btn_reset_singleplayer;"
213213
.. fgettext("Reset singleplayer world") .. "]"
214214
else
215215
tab_string = tab_string ..
216-
"button[8,4.85;3.75,0.5;btn_change_keys;"
216+
"button[8,4.75;4,1;btn_change_keys;"
217217
.. fgettext("Change keys") .. "]"
218218
end
219219

220220
tab_string = tab_string ..
221-
"button[0,4.85;3.75,0.5;btn_advanced_settings;"
221+
"button[0,4.75;4,1;btn_advanced_settings;"
222222
.. fgettext("Advanced Settings") .. "]"
223223

224224

@@ -231,19 +231,19 @@ local function formspec(tabview, name, tabdata)
231231

232232
if core.settings:get_bool("enable_shaders") then
233233
tab_string = tab_string ..
234-
"checkbox[8,0.5;cb_bumpmapping;" .. fgettext("Bump Mapping") .. ";"
234+
"checkbox[8.25,0.5;cb_bumpmapping;" .. fgettext("Bump Mapping") .. ";"
235235
.. dump(core.settings:get_bool("enable_bumpmapping")) .. "]" ..
236-
"checkbox[8,1;cb_tonemapping;" .. fgettext("Tone Mapping") .. ";"
236+
"checkbox[8.25,1;cb_tonemapping;" .. fgettext("Tone Mapping") .. ";"
237237
.. dump(core.settings:get_bool("tone_mapping")) .. "]" ..
238-
"checkbox[8,1.5;cb_generate_normalmaps;" .. fgettext("Normal Mapping") .. ";"
238+
"checkbox[8.25,1.5;cb_generate_normalmaps;" .. fgettext("Normal Mapping") .. ";"
239239
.. dump(core.settings:get_bool("generate_normalmaps")) .. "]" ..
240-
"checkbox[8,2;cb_parallax;" .. fgettext("Parallax Occlusion") .. ";"
240+
"checkbox[8.25,2;cb_parallax;" .. fgettext("Parallax Occlusion") .. ";"
241241
.. dump(core.settings:get_bool("enable_parallax_occlusion")) .. "]" ..
242-
"checkbox[8,2.5;cb_waving_water;" .. fgettext("Waving Water") .. ";"
242+
"checkbox[8.25,2.5;cb_waving_water;" .. fgettext("Waving Water") .. ";"
243243
.. dump(core.settings:get_bool("enable_waving_water")) .. "]" ..
244-
"checkbox[8,3;cb_waving_leaves;" .. fgettext("Waving Leaves") .. ";"
244+
"checkbox[8.25,3;cb_waving_leaves;" .. fgettext("Waving Leaves") .. ";"
245245
.. dump(core.settings:get_bool("enable_waving_leaves")) .. "]" ..
246-
"checkbox[8,3.5;cb_waving_plants;" .. fgettext("Waving Plants") .. ";"
246+
"checkbox[8.25,3.5;cb_waving_plants;" .. fgettext("Waving Plants") .. ";"
247247
.. dump(core.settings:get_bool("enable_waving_plants")) .. "]"
248248
else
249249
tab_string = tab_string ..

0 commit comments

Comments
 (0)
Please sign in to comment.