mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-12 19:10:26 +01:00
[u_inv] Add news button and icon for #474
This commit is contained in:
parent
5079f3c35d
commit
6a310d9f8d
@ -73,6 +73,18 @@ unified_inventory.register_button("home_gui_go", {
|
|||||||
end,
|
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
|
unified_inventory.register_button("home_gui_set", { --new h2omes
|
||||||
type = "image",
|
type = "image",
|
||||||
|
BIN
mods/unified_inventory/textures/ui_news_icon.png
Normal file
BIN
mods/unified_inventory/textures/ui_news_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 202 B |
Loading…
Reference in New Issue
Block a user