mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
world creation and generators menus moved to xml
This commit is contained in:
parent
ef4294ab47
commit
4f299be681
15 changed files with 187 additions and 136 deletions
|
|
@ -215,6 +215,23 @@ function gui.template(name, params)
|
|||
return text
|
||||
end
|
||||
|
||||
session = {
|
||||
entries={}
|
||||
}
|
||||
|
||||
function session.get_entry(name)
|
||||
local entry = session.entries[name]
|
||||
if entry == nil then
|
||||
entry = {}
|
||||
session.entries[name] = entry
|
||||
end
|
||||
return entry
|
||||
end
|
||||
|
||||
function session.reset_entry(name)
|
||||
session.entries[name] = nil
|
||||
end
|
||||
|
||||
-- Deprecated functions
|
||||
block_index = block.index
|
||||
block_name = block.name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue