diff --git a/mods/unified_inventory/register.lua b/mods/unified_inventory/register.lua index 50ef1b54..6bb7285a 100755 --- a/mods/unified_inventory/register.lua +++ b/mods/unified_inventory/register.lua @@ -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", diff --git a/mods/unified_inventory/textures/ui_news_icon.png b/mods/unified_inventory/textures/ui_news_icon.png new file mode 100644 index 00000000..99e14eac Binary files /dev/null and b/mods/unified_inventory/textures/ui_news_icon.png differ