mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +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,
|
||||
})
|
||||
--]]
|
||||
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",
|
||||
|
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