mirror of
https://github.com/SmallJoker/upgrade_packs.git
synced 2024-07-15 12:19:34 +02:00
19 lines
518 B
Lua
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
|
|
}) |