From aec5abbb347442055de08a9d0610b405469054a5 Mon Sep 17 00:00:00 2001 From: Oversword Date: Thu, 1 Apr 2021 03:02:13 +0100 Subject: [PATCH] Category enclosure background added --- internal.lua | 8 +++++++- textures/ui_smallbg_9_sliced.png | Bin 0 -> 186 bytes 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 textures/ui_smallbg_9_sliced.png diff --git a/internal.lua b/internal.lua index 53d5bd2..6272a7a 100644 --- a/internal.lua +++ b/internal.lua @@ -129,6 +129,12 @@ function ui.get_formspec(player, page) local categories_pos = { ui_peruser.page_x, ui_peruser.page_y-ui_peruser.btn_spc-0.5 } local categories_scroll_pos = { ui_peruser.page_x, ui_peruser.form_header_y-(draw_lite_mode and 0.1 or 0.2) } + formspec[n] = string.format("background9[%f,%f;%f,%f;%s;false;3]", + ui_peruser.page_x-0.1, ui_peruser.form_header_y-0.2, + (ui_peruser.btn_spc * ui_peruser.pagecols) + 0.16, 1.6, + "ui_smallbg_9_sliced.png") + n = n + 1 + formspec[n] = string.format("label[%f,%f;%s]", ui_peruser.page_x, ui_peruser.form_header_y+0.2, "Category:") n = n + 1 @@ -266,7 +272,7 @@ function ui.get_formspec(player, page) if ui.activefilter[player_name] ~= "" then formspec[n] = string.format("label[%f,%f;%s: %s]", - ui_peruser.page_x, ui_peruser.page_y - 0.3, + ui_peruser.page_x, ui_peruser.page_y - 0.25, F(S("Filter")), F(ui.activefilter[player_name])) end return table.concat(formspec, "") diff --git a/textures/ui_smallbg_9_sliced.png b/textures/ui_smallbg_9_sliced.png new file mode 100644 index 0000000000000000000000000000000000000000..1a08d68caf1ab1e9d65d5026b59c181a41eb0e0c GIT binary patch literal 186 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA0wn)(8}b0DMo$;Vkch)?uN(3;DDbdeSf9vv zseniSHLGQt;i*>%JO(?y=I@t2T|cEP@uv0)(FV7keh!9$$&W7IW@OmXTkyM!k70Uo z%{${CuS$Bh7oPanayHuJ+Czc(WtX{%I0Y0O8WW<_Q iFWI6;d4WsTy=2Z5