content packs icons fix

This commit is contained in:
MihailRis
2024-04-19 13:56:24 +03:00
parent 01f41715d7
commit bedcc438f4
5 changed files with 18 additions and 2 deletions
+16
View 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