upgrade_packs/gui_unified_inventory.lua
2018-05-18 17:18:25 +02:00

19 lines
518 B
Lua

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 = (
"listcolors[#EEE;#EEE;#111]" ..
"label[3," .. (y + 0.2) .. ";Upgrade Packs]" ..
"list[current_player;ugpacks;3," .. (y + 1) .. ";2,2;]" ..
"listring[current_player;main]" ..
"listring[current_player;ugpacks]"
)}
end
})