1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 02:00:37 +01:00

[u_inv] Add news button and icon for #474

This commit is contained in:
LeMagnesium 2016-06-21 14:29:35 +02:00
parent 5079f3c35d
commit 6a310d9f8d
2 changed files with 12 additions and 0 deletions

View File

@ -73,6 +73,18 @@ unified_inventory.register_button("home_gui_go", {
end,
})
--]]
if minetest.get_modpath("news") then
unified_inventory.register_button("news", {
type = "image",
image = "ui_news_icon.png",
tooltip = S("News"),
hide_lite = true,
show_with = "interact",
action = function(player)
core.chatcommands["news"].func(player:get_player_name())
end,
})
end
unified_inventory.register_button("home_gui_set", { --new h2omes
type = "image",

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 B