add inventory button for team gui
see above
This commit is contained in:
parent
61e44e8563
commit
9dc8501b67
@ -1,3 +1,4 @@
|
|||||||
ctf
|
ctf
|
||||||
chatplus?
|
chatplus?
|
||||||
irc?
|
irc?
|
||||||
|
inventory_plus
|
@ -428,3 +428,11 @@ if minetest.global_exists("chatplus") then
|
|||||||
return false
|
return false
|
||||||
end)
|
end)
|
||||||
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)
|
||||||
|
BIN
mods/ctf_pvp_engine/ctf_chat/textures/inventory_plus_ctf.png
Normal file
BIN
mods/ctf_pvp_engine/ctf_chat/textures/inventory_plus_ctf.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 438 B |
Loading…
x
Reference in New Issue
Block a user