world previews demo
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 |
Reference in New Issue
Block a user