mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
content packs icons fix
This commit is contained in:
parent
01f41715d7
commit
bedcc438f4
5 changed files with 18 additions and 2 deletions
16
res/layouts/pages/generators.xml.lua
Normal file
16
res/layouts/pages/generators.xml.lua
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
settings = session.get_entry('new_world')
|
||||
|
||||
function on_open()
|
||||
local names = core.get_generators()
|
||||
table.sort(names)
|
||||
|
||||
local panel = document.root
|
||||
for _,k in ipairs(names) do
|
||||
panel:add(gui.template("generator", {
|
||||
callback=string.format("settings.generator=%q menu:back()", k),
|
||||
id=k,
|
||||
name=settings.generator_name(k)
|
||||
}))
|
||||
end
|
||||
panel:add("<button padding='10' onclick='menu:back()'>@Back</button>")
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue