21 lines
651 B
Text
21 lines
651 B
Text
i3_extrabuttons
|
|
|
|
Dieses Mod erlaubt es beliebig viele "Zusatzbuttons" für das i3-Inventar anzulegen.
|
|
Andere Mods registrieren ihre Extra Buttons über
|
|
|
|
i3_extrabuttons.new_tab("name", {...})
|
|
|
|
Die Syntax ist identisch zu i3.new_tab, nur dass sie unter "Extras" gelistet werden.
|
|
|
|
Beispiel:
|
|
|
|
if minetest.global_exists("i3_extrabuttons") then
|
|
i3_extrabuttons.new_tab("pubinv", {
|
|
description = "Public Inventory",
|
|
image = "ui_icon_pubinv.png",
|
|
fields = function(player, data, fields)
|
|
-- Deins...
|
|
pubinv.open(player:get_player_name())
|
|
end,
|
|
})
|
|
end
|