worlds menu added

This commit is contained in:
LumperBumper
2024-11-19 19:16:32 +05:00
committed by GitHub
parent e70d30b9a2
commit 58d2637e9d
10 changed files with 28 additions and 2 deletions
+2 -2
View File
@@ -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>
+6
View File
@@ -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>
+6
View 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