mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
set markup
This commit is contained in:
parent
ee147ec7bd
commit
4133e6fd0a
1 changed files with 3 additions and 3 deletions
|
|
@ -78,19 +78,19 @@ end
|
|||
local function create_label(id, text, color)
|
||||
if id then
|
||||
document.configs:add(string.format(
|
||||
"<label id='%s' color='%s'>%s</label>",
|
||||
"<label markup='md' id='%s' color='%s'>%s</label>",
|
||||
id, color, text
|
||||
))
|
||||
else
|
||||
document.configs:add(string.format(
|
||||
"<label color='%s'>%s</label>",
|
||||
"<label markup='md' color='%s'>%s</label>",
|
||||
color, text
|
||||
))
|
||||
end
|
||||
end
|
||||
|
||||
local function create_config(i, config, name, path)
|
||||
create_label(name, ('[' .. name .. ']'):upper(), "#FFFFFF")
|
||||
create_label(name, ('**[' .. name .. ']**'):upper(), "#FFFFFF")
|
||||
pack_open[2][i] = {elements = {}, path = path}
|
||||
for _, a in ipairs(config.checkboxes) do
|
||||
create_checkbox(i .. '_' .. a[1], a[1], a[2])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue