1
0
mirror of https://github.com/MinetestForFun/quests.git synced 2024-11-14 06:30:17 +01:00
quests/unified_inventory.lua

17 lines
481 B
Lua
Raw Normal View History

unified_inventory.register_button("quests", {
type = "image",
2015-03-04 19:06:59 +01:00
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
--})