mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +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)
|
local function create_label(id, text, color)
|
||||||
if id then
|
if id then
|
||||||
document.configs:add(string.format(
|
document.configs:add(string.format(
|
||||||
"<label id='%s' color='%s'>%s</label>",
|
"<label markup='md' id='%s' color='%s'>%s</label>",
|
||||||
id, color, text
|
id, color, text
|
||||||
))
|
))
|
||||||
else
|
else
|
||||||
document.configs:add(string.format(
|
document.configs:add(string.format(
|
||||||
"<label color='%s'>%s</label>",
|
"<label markup='md' color='%s'>%s</label>",
|
||||||
color, text
|
color, text
|
||||||
))
|
))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function create_config(i, config, name, path)
|
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}
|
pack_open[2][i] = {elements = {}, path = path}
|
||||||
for _, a in ipairs(config.checkboxes) do
|
for _, a in ipairs(config.checkboxes) do
|
||||||
create_checkbox(i .. '_' .. a[1], a[1], a[2])
|
create_checkbox(i .. '_' .. a[1], a[1], a[2])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue