mirror of
https://github.com/minetest-mods/unified_inventory.git
synced 2025-07-01 16:00:31 +02:00
Adjustments to lite mode category background and spacing
This commit is contained in:
4
init.lua
4
init.lua
@ -85,7 +85,7 @@ ui.style_lite = {
|
|||||||
pagecols = 4,
|
pagecols = 4,
|
||||||
pagerows = 5,
|
pagerows = 5,
|
||||||
page_x = 10.5,
|
page_x = 10.5,
|
||||||
page_y = 2.05,
|
page_y = 2.15,
|
||||||
craft_x = 2.6,
|
craft_x = 2.6,
|
||||||
craft_y = 0.75,
|
craft_y = 0.75,
|
||||||
craftresult_x = 5.75,
|
craftresult_x = 5.75,
|
||||||
@ -100,7 +100,7 @@ ui.style_lite = {
|
|||||||
main_button_x = 10.5,
|
main_button_x = 10.5,
|
||||||
main_button_y = 8.15,
|
main_button_y = 8.15,
|
||||||
page_buttons_x = 10.5,
|
page_buttons_x = 10.5,
|
||||||
page_buttons_y = 6.3,
|
page_buttons_y = 6.15,
|
||||||
searchwidth = 1.6,
|
searchwidth = 1.6,
|
||||||
form_header_x = 0.2,
|
form_header_x = 0.2,
|
||||||
form_header_y = 0.2,
|
form_header_y = 0.2,
|
||||||
|
@ -127,15 +127,15 @@ function ui.get_formspec(player, page)
|
|||||||
-- Category filters
|
-- Category filters
|
||||||
|
|
||||||
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 or 0.2) }
|
||||||
|
|
||||||
formspec[n] = string.format("background9[%f,%f;%f,%f;%s;false;3]",
|
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.page_x-0.1, categories_scroll_pos[1],
|
||||||
(ui_peruser.btn_spc * ui_peruser.pagecols) + 0.16, 1.6,
|
(ui_peruser.btn_spc * ui_peruser.pagecols) + 0.13, 1.4+(draw_lite_mode and 0 or 0.2),
|
||||||
"ui_smallbg_9_sliced.png")
|
"ui_smallbg_9_sliced.png")
|
||||||
n = n + 1
|
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+(draw_lite_mode and 0.3 or 0.2), "Category:")
|
||||||
n = n + 1
|
n = n + 1
|
||||||
|
|
||||||
local scroll_offset = 0
|
local scroll_offset = 0
|
||||||
|
Reference in New Issue
Block a user