mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
add generator 'caption' property
This commit is contained in:
parent
7c56d8fd7f
commit
de00414456
11 changed files with 59 additions and 21 deletions
|
|
@ -5,11 +5,11 @@ function on_open()
|
|||
table.sort(names)
|
||||
|
||||
local panel = document.root
|
||||
for _,k in ipairs(names) do
|
||||
for k, caption in pairs(names) do
|
||||
panel:add(gui.template("generator", {
|
||||
callback=string.format("settings.generator=%q menu:back()", k),
|
||||
id=k,
|
||||
name=settings.generator_name(k)
|
||||
name=settings.generator_name(caption)
|
||||
}))
|
||||
end
|
||||
panel:add("<button onclick='menu:back()'>@Back</button>")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue