Add awards mod back
This commit is contained in:
parent
634bb3fed8
commit
b05930ca65
36 changed files with 3131 additions and 0 deletions
18
mods/HUD/awards/unified_inventory.lua
Normal file
18
mods/HUD/awards/unified_inventory.lua
Normal file
|
@ -0,0 +1,18 @@
|
|||
if minetest.get_modpath("unified_inventory") ~= nil then
|
||||
local S
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S = function ( s ) return s end
|
||||
end
|
||||
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue