Adjust positioning to match original
This commit is contained in:
parent
d2ed87776a
commit
f253eb74e5
4
init.lua
4
init.lua
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue