mirror of
https://github.com/minetest-mods/unified_inventory.git
synced 2025-07-03 08:50:28 +02:00
Change formspec prepend and background
Formspec prepend is now true by default. Also removes the old background image.
This commit is contained in:
14
internal.lua
14
internal.lua
@ -62,16 +62,16 @@ function unified_inventory.get_formspec(player, page)
|
|||||||
return "" -- Invalid page name
|
return "" -- Invalid page name
|
||||||
end
|
end
|
||||||
|
|
||||||
local formspec = {
|
local formspec = {"size[14,10]"}
|
||||||
"size[14,10]",
|
if pagedef.formspec_prepend or pagedef.formspec_prepend == nil then
|
||||||
pagedef.formspec_prepend and "" or "no_prepend[]",
|
formspec[2] = ""
|
||||||
"background[-0.19,-0.25;14.4,10.75;ui_form_bg.png]" -- Background
|
else
|
||||||
}
|
formspec[2] = "no_prepend[]"
|
||||||
local n = 4
|
end
|
||||||
|
local n = 3
|
||||||
|
|
||||||
if draw_lite_mode then
|
if draw_lite_mode then
|
||||||
formspec[1] = "size[11,7.7]"
|
formspec[1] = "size[11,7.7]"
|
||||||
formspec[3] = "background[-0.19,-0.2;11.4,8.4;ui_form_bg.png]"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if unified_inventory.is_creative(player_name)
|
if unified_inventory.is_creative(player_name)
|
||||||
|
Reference in New Issue
Block a user