From 6a310d9f8d1b438157f4d5fc773d42cbc7c411a4 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Tue, 21 Jun 2016 14:29:35 +0200 Subject: [PATCH] [u_inv] Add news button and icon for #474 --- mods/unified_inventory/register.lua | 12 ++++++++++++ mods/unified_inventory/textures/ui_news_icon.png | Bin 0 -> 202 bytes 2 files changed, 12 insertions(+) create mode 100644 mods/unified_inventory/textures/ui_news_icon.png 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 0000000000000000000000000000000000000000..99e14eac3ecf69b63658c3f455edda34c5aff8c7 GIT binary patch literal 202 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`6FprVLo9le6BY;8&!pZj~h zhVPw|1+_gqKv4GTR6#HM`A|WV1NT<+HUh!J3ukxti0p3QTz+}S}2+shdGIH y8RPo-LRVVe@Vc$xk~0zXxzxi|8u4`!55p$eAjgcgE@eQ+F?hQAxvX