mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
world previews demo
This commit is contained in:
parent
5afa5304ff
commit
6e2bc9ca95
24 changed files with 153 additions and 59 deletions
|
|
@ -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 |
BIN
res/textures/gui/no_world_icon.png
Normal file
BIN
res/textures/gui/no_world_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 510 B |
Loading…
Add table
Add a link
Reference in a new issue