From 29925efeacbe53115a9a38e52ec1087abff11ad9 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sat, 27 Feb 2021 19:28:10 +0100 Subject: [PATCH] Minor style cleaning --- init.lua | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/init.lua b/init.lua index fa0403f..1755a28 100644 --- a/init.lua +++ b/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))