mirror of
https://gitlab.com/luk3yx/minetest-flow.git
synced 2025-08-13 19:25:50 +02:00
Add no_prepend and fbgcolor parameters
Maybe these should be specified elsewhere but this works for now.
This commit is contained in:
parent
02a0702502
commit
c39a3f5be1
13
init.lua
13
init.lua
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user