Adjust positioning to match original

This commit is contained in:
Oversword 2021-03-29 04:29:10 +01:00
parent d2ed87776a
commit f253eb74e5
2 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ ui.style_full = {
pagecols = 8,
pagerows = 9,
page_x = 10.75,
page_y = 2.45,
page_y = 2.30,
craft_x = 2.8,
craft_y = 1.15,
craftresult_x = 7.8,
@ -85,7 +85,7 @@ ui.style_lite = {
pagecols = 4,
pagerows = 5,
page_x = 10.5,
page_y = 2.25,
page_y = 2.05,
craft_x = 2.6,
craft_y = 0.75,
craftresult_x = 5.75,

View File

@ -257,9 +257,9 @@ function ui.get_formspec(player, page)
if ui.activefilter[player_name] ~= "" then
formspec[n] = string.format("label[%f,%f;%s:]",
ui_peruser.page_x, ui_peruser.page_y - 1.65, F(S("Filter")))
ui_peruser.page_x, ui_peruser.page_y - 0.65 - ui_peruser.btn_spc, F(S("Filter")))
formspec[n+1] = string.format("label[%f,%f;%s]",
ui_peruser.page_x, ui_peruser.page_y - 1.25, F(ui.activefilter[player_name]))
ui_peruser.page_x, ui_peruser.page_y - 0.25 - ui_peruser.btn_spc, F(ui.activefilter[player_name]))
end
return table.concat(formspec, "")
end