worlds menu added
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<panel size='400' color='0' interval='1' context='menu'>
|
||||
<button onclick='menu.page="worlds"'>@Worlds</button>
|
||||
<button onclick='menu.page="new_world"'>@New World</button>
|
||||
<panel id='worlds' size='390,1' padding='5' color='#FFFFFF11' max-length='400'>
|
||||
</panel>
|
||||
<label padding='5'></label>
|
||||
<button onclick='menu.page="settings"'>@Settings</button>
|
||||
<button onclick='menu.page="content_menu"'>@Contents Menu</button>
|
||||
<button onclick='core.quit()'>@Quit</button>
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<panel size='400' color='0' interval='1' context='menu'>
|
||||
<panel id='worlds' size='390,1' padding='5' color='#FFFFFF11' max-length='400'>
|
||||
</panel>
|
||||
<button pos='485,525' size='500,40' onclick='core.open_folder("user:worlds")'>@Open worlds folder</button>
|
||||
<button onclick='menu:back()'>@Back</button>
|
||||
</panel>
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user