techages/mods/HUD/awards/unified_inventory.lua

14 lines
351 B
Lua
Raw Normal View History

2017-03-04 00:55:34 +01:00
if minetest.get_modpath("unified_inventory") ~= nil then
2019-03-07 21:10:39 +01:00
local S = minetest.get_translator("awards")
2017-03-04 00:55:34 +01:00
unified_inventory.register_button("awards", {
type = "image",
image = "awards_ui_icon.png",
tooltip = S("Awards"),
action = function(player)
local name = player:get_player_name()
awards.show_to(name, name, nil, false)
end,
})
end