Category enclosure background added

This commit is contained in:
Oversword
2021-04-01 03:02:13 +01:00
parent c78ce2f242
commit aec5abbb34
2 changed files with 7 additions and 1 deletions

View File

@ -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_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) } 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:") formspec[n] = string.format("label[%f,%f;%s]", ui_peruser.page_x, ui_peruser.form_header_y+0.2, "Category:")
n = n + 1 n = n + 1
@ -266,7 +272,7 @@ function ui.get_formspec(player, page)
if ui.activefilter[player_name] ~= "" then if ui.activefilter[player_name] ~= "" then
formspec[n] = string.format("label[%f,%f;%s: %s]", 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])) F(S("Filter")), F(ui.activefilter[player_name]))
end end
return table.concat(formspec, "") return table.concat(formspec, "")

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B