[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