first commit
This commit is contained in:
commit
31cd25f2a2
5 changed files with 112 additions and 0 deletions
21
README.txt
Normal file
21
README.txt
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue