world previews demo

This commit is contained in:
MihailRis
2024-04-23 01:09:30 +03:00
parent 5afa5304ff
commit 6e2bc9ca95
24 changed files with 153 additions and 59 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
function on_open()
local worlds = core.get_worlds_list()
for _, name in ipairs(worlds) do
document.worlds:add(gui.template("world", {name=name}))
local worlds = world.get_list()
for _, info in ipairs(worlds) do
document.worlds:add(gui.template("world", info))
end
end
+3 -2
View File
@@ -1,10 +1,11 @@
<container
size='380,46'
size='380,66'
color='#0F1E2DB2'
hover-color='#162B3399'
onclick='core.open_world("%{name}")'
>
<label pos='8,8'>%{name}</label>
<image pos='1' src='%{icon}' size='96,64'></image>
<label pos='104,8'>%{name}</label>
<button pos='350,5'
color='#00000000'
hover-color='#FFFFFF2B'
Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 953 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 B