Start work on inventory.
|
@ -1,5 +1,2 @@
|
|||
default
|
||||
clothing
|
||||
creativ?
|
||||
intllib?
|
||||
datastorage?
|
||||
|
|
|
@ -1,51 +1 @@
|
|||
-- Unified Inventory for Minetest 0.4.8+
|
||||
|
||||
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
||||
local worldpath = minetest.get_worldpath()
|
||||
|
||||
-- Data tables definitions
|
||||
unified_inventory = {}
|
||||
unified_inventory.activefilter = {}
|
||||
unified_inventory.active_search_direction = {}
|
||||
unified_inventory.alternate = {}
|
||||
unified_inventory.current_page = {}
|
||||
unified_inventory.current_searchbox = {}
|
||||
unified_inventory.current_index = {}
|
||||
unified_inventory.current_item = {}
|
||||
unified_inventory.current_craft_direction = {}
|
||||
unified_inventory.registered_craft_types = {}
|
||||
unified_inventory.crafts_for = { usage = {}, recipe = {} }
|
||||
unified_inventory.players = {}
|
||||
unified_inventory.items_list_size = 0
|
||||
unified_inventory.items_list = {}
|
||||
unified_inventory.filtered_items_list_size = {}
|
||||
unified_inventory.filtered_items_list = {}
|
||||
unified_inventory.pages = {}
|
||||
unified_inventory.buttons = {}
|
||||
|
||||
-- Homepos stuff
|
||||
unified_inventory.home_pos = {}
|
||||
unified_inventory.home_filename =
|
||||
worldpath.."/unified_inventory_home.home"
|
||||
|
||||
-- Default inventory page
|
||||
unified_inventory.default = "craft"
|
||||
|
||||
-- Disable default creative inventory
|
||||
if creative_inventory then
|
||||
function creative_inventory.set_creative_formspec(player, start_i, pagenum)
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
dofile(modpath.."/group.lua")
|
||||
dofile(modpath.."/api.lua")
|
||||
dofile(modpath.."/internal.lua")
|
||||
dofile(modpath.."/callbacks.lua")
|
||||
dofile(modpath.."/register.lua")
|
||||
dofile(modpath.."/bags.lua")
|
||||
dofile(modpath.."/item_names.lua")
|
||||
if minetest.get_modpath("datastorage") then
|
||||
dofile(modpath.."/waypoints.lua")
|
||||
end
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
default
|
||||
clothing
|
||||
creativ?
|
||||
intllib?
|
||||
datastorage?
|
|
@ -0,0 +1,51 @@
|
|||
-- Unified Inventory for Minetest 0.4.8+
|
||||
|
||||
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
||||
local worldpath = minetest.get_worldpath()
|
||||
|
||||
-- Data tables definitions
|
||||
unified_inventory = {}
|
||||
unified_inventory.activefilter = {}
|
||||
unified_inventory.active_search_direction = {}
|
||||
unified_inventory.alternate = {}
|
||||
unified_inventory.current_page = {}
|
||||
unified_inventory.current_searchbox = {}
|
||||
unified_inventory.current_index = {}
|
||||
unified_inventory.current_item = {}
|
||||
unified_inventory.current_craft_direction = {}
|
||||
unified_inventory.registered_craft_types = {}
|
||||
unified_inventory.crafts_for = { usage = {}, recipe = {} }
|
||||
unified_inventory.players = {}
|
||||
unified_inventory.items_list_size = 0
|
||||
unified_inventory.items_list = {}
|
||||
unified_inventory.filtered_items_list_size = {}
|
||||
unified_inventory.filtered_items_list = {}
|
||||
unified_inventory.pages = {}
|
||||
unified_inventory.buttons = {}
|
||||
|
||||
-- Homepos stuff
|
||||
unified_inventory.home_pos = {}
|
||||
unified_inventory.home_filename =
|
||||
worldpath.."/unified_inventory_home.home"
|
||||
|
||||
-- Default inventory page
|
||||
unified_inventory.default = "craft"
|
||||
|
||||
-- Disable default creative inventory
|
||||
if creative_inventory then
|
||||
function creative_inventory.set_creative_formspec(player, start_i, pagenum)
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
dofile(modpath.."/group.lua")
|
||||
dofile(modpath.."/api.lua")
|
||||
dofile(modpath.."/internal.lua")
|
||||
dofile(modpath.."/callbacks.lua")
|
||||
dofile(modpath.."/register.lua")
|
||||
dofile(modpath.."/bags.lua")
|
||||
dofile(modpath.."/item_names.lua")
|
||||
if minetest.get_modpath("datastorage") then
|
||||
dofile(modpath.."/waypoints.lua")
|
||||
end
|
||||
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 688 B After Width: | Height: | Size: 688 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 143 B After Width: | Height: | Size: 143 B |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |