mirror of
https://github.com/minetest-mods/i3.git
synced 2025-07-03 17:10:23 +02:00
Split more stuff into different file
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
local http = ...
|
||||
local make_fs = i3.files.gui()
|
||||
local make_fs, get_inventory_fs = i3.files.gui()
|
||||
|
||||
IMPORT("gmatch", "split")
|
||||
IMPORT("S", "err", "fmt", "reg_items")
|
||||
@ -186,6 +186,12 @@ function i3.new_tab(name, def)
|
||||
insert(i3.tabs, def)
|
||||
end
|
||||
|
||||
i3.new_tab("inventory", {
|
||||
description = S"Inventory",
|
||||
formspec = get_inventory_fs,
|
||||
fields = i3.files.fields(),
|
||||
})
|
||||
|
||||
function i3.remove_tab(name)
|
||||
if not true_str(name) then
|
||||
return err "i3.remove_tab: tab name missing"
|
||||
|
Reference in New Issue
Block a user