mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 15:01:49 +00:00
worlds menu added
This commit is contained in:
parent
e70d30b9a2
commit
58d2637e9d
10 changed files with 28 additions and 2 deletions
6
res/layouts/pages/worlds.xml.lua
Normal file
6
res/layouts/pages/worlds.xml.lua
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
function on_open()
|
||||
local worlds = world.get_list()
|
||||
for _, info in ipairs(worlds) do
|
||||
document.worlds:add(gui.template("world", info))
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue