add inventory button for team gui

see above
This commit is contained in:
Elkien3 2017-09-26 21:07:51 -05:00
parent 61e44e8563
commit 9dc8501b67
3 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,4 @@
ctf
chatplus?
irc?
inventory_plus

View File

@ -428,3 +428,11 @@ if minetest.global_exists("chatplus") then
return false
end)
end
minetest.register_on_joinplayer(function(player)
inventory_plus.register_button(player,"ctf", "ctf")
end)
minetest.register_on_player_receive_fields(function(player, formname, fields)
if fields.ctf then
ctf.gui.show(player:get_player_name())
end
end)

Binary file not shown.

After

Width:  |  Height:  |  Size: 438 B