From c39a3f5be1933d0cd3432844b3b4e9a06f7d6887 Mon Sep 17 00:00:00 2001 From: luk3yx Date: Thu, 22 Dec 2022 20:00:33 +1300 Subject: [PATCH] Add no_prepend and fbgcolor parameters Maybe these should be specified elsewhere but this works for now. --- init.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/init.lua b/init.lua index 7d337da..aa7c21b 100644 --- a/init.lua +++ b/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',