mirror of
https://github.com/minetest-mods/i3.git
synced 2024-12-26 19:00:39 +01:00
Minor style cleaning
This commit is contained in:
parent
cdd0eed116
commit
29925efeac
14
init.lua
14
init.lua
@ -2348,15 +2348,13 @@ local function get_inventory_fs(player, data, fs)
|
||||
end
|
||||
|
||||
local function get_items_fs(_, data, fs)
|
||||
fs("box[0.2,0.2;4.55,0.6;#bababa25]", "set_focus[filter]")
|
||||
fs(fmt("field[0.3,0.2;3.45,0.6;filter;;%s]", ESC(data.filter)))
|
||||
fs("field_close_on_enter[filter;false]")
|
||||
fs("box[0.2,0.2;4.55,0.6;#bababa25]", "set_focus[filter]",
|
||||
fmt("field[0.3,0.2;3.45,0.6;filter;;%s]", ESC(data.filter)),
|
||||
"field_close_on_enter[filter;false]")
|
||||
|
||||
fs(fmt("image_button", 3.75, 0.35, 0.3, 0.3, "", "cancel", ""))
|
||||
|
||||
fs(fmt("image_button", 4.25, 0.32, 0.35, 0.35, "", "search", ""))
|
||||
|
||||
fs(fmt("image_button", data.xoffset - 2.73, 0.3, 0.35, 0.35, "", "prev_page", ""),
|
||||
fs(fmt("image_button", 3.75, 0.35, 0.3, 0.3, "", "cancel", ""),
|
||||
fmt("image_button", 4.25, 0.32, 0.35, 0.35, "", "search", ""),
|
||||
fmt("image_button", data.xoffset - 2.73, 0.3, 0.35, 0.35, "", "prev_page", ""),
|
||||
fmt("image_button", data.xoffset - 0.55, 0.3, 0.35, 0.35, "", "next_page", ""))
|
||||
|
||||
data.pagemax = max(1, ceil(#data.items / IPP))
|
||||
|
Loading…
Reference in New Issue
Block a user