upgrade_packs/gui_unified_inventory.lua
SmallJoker c9015954fc Upload 💥
2018-05-15 19:32:23 +02:00

22 lines
519 B
Lua

if unified_inventory.sfinv_compat_layer then
return
end
unified_inventory.register_button("ugpacks", {
type = "image",
image = "heart.png",
tooltip = "Upgrade Packs"
})
unified_inventory.register_page("ugpacks", {
get_formspec = function(player, perplayer_formspec)
local y = perplayer_formspec.formspec_y
return { formspec = (
"label[1,0;Upgrade Packs]"..
"list[current_player;ugpacks;1," ..(y + 1) .. ";2,2;]"..
"listring[current_player;main]"..
"listring[current_player;ugpacks]"
)}
end
})