mirror of
https://github.com/TeTpaAka/quests.git
synced 2024-12-22 16:50:39 +01:00
17 lines
481 B
Lua
17 lines
481 B
Lua
unified_inventory.register_button("quests", {
|
|
type = "image",
|
|
image = "inventory_plus_quests.png",
|
|
tooltip = "Show the questlog",
|
|
action = function(player)
|
|
quests.show_formspec(player:get_player_name())
|
|
end
|
|
})
|
|
|
|
--unified_inventory.register_page("quests", {
|
|
-- get_formspec = function(player, formspec)
|
|
-- local playername = player:get_player_name()
|
|
-- local formspec = quests.create_formspec(playername)
|
|
-- return {formspec = formspec, draw_inventory=false}
|
|
-- end
|
|
--})
|