mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 13:31:49 +00:00
settings panel moved to xml (WIP)
This commit is contained in:
parent
7cb5b2eb70
commit
9cdf3ff016
33 changed files with 254 additions and 143 deletions
|
|
@ -1,21 +1,6 @@
|
|||
function on_open()
|
||||
local worlds = core.get_worlds_list()
|
||||
for _, name in ipairs(worlds) do
|
||||
document.worlds:add(
|
||||
"<container "..
|
||||
"size='380,46' "..
|
||||
"color='#0F1E2DB2' "..
|
||||
"hover-color='#162B3399' "..
|
||||
"onclick='core.open_world(\""..name.."\")'"..
|
||||
">"..
|
||||
"<label pos='8,8'>"..name.."</label>"..
|
||||
"<button pos='350,5' "..
|
||||
"color='#00000000' "..
|
||||
"hover-color='#FFFFFF2B' "..
|
||||
"onclick='core.delete_world(\""..name.."\")'>"..
|
||||
"<image src='gui/delete_icon' size='32,32' color='#FFFFFF80'/>"..
|
||||
"</button>"..
|
||||
"</container>"
|
||||
)
|
||||
document.worlds:add(gui.template("world", {name=name}))
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue