Add no_prepend and fbgcolor parameters

Maybe these should be specified elsewhere but this works for now.
This commit is contained in:
luk3yx 2022-12-22 20:00:33 +13:00
parent 02a0702502
commit c39a3f5be1

View File

@ -403,6 +403,19 @@ local function render_ast(node)
formspec_version = 5,
{type = "size", w = w, h = h},
}
-- TODO: Consider a nicer place to put these parameters
if node.no_prepend then
res[#res + 1] = {type = "no_prepend"}
end
if node.fbgcolor then
res[#res + 1] = {
type = "bgcolor",
bgcolor = node.fbgcolor,
fullscreen = true
}
end
for field in formspec_ast.find(node, 'field') do
res[#res + 1] = {
type = 'field_close_on_enter',