mirror of
https://github.com/SmallJoker/upgrade_packs.git
synced 2024-07-15 04:09:29 +02:00
22 lines
519 B
Lua
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
|
|
}) |