mirror of
https://gitlab.com/luk3yx/minetest-flow.git
synced 2025-08-11 18:25:57 +02:00
Make bgimg work properly on the root element
This commit is contained in:
parent
f219d6d0c4
commit
f8af81b69a
11
init.lua
11
init.lua
@ -412,6 +412,17 @@ local function render_ast(node)
|
||||
close_on_enter = false,
|
||||
}
|
||||
end
|
||||
|
||||
-- Add the root element's background image as a fullscreen one
|
||||
if node.bgimg then
|
||||
res[#res + 1] = {
|
||||
type = node.bgimg_middle and "background9" or "background",
|
||||
texture_name = node.bgimg, middle_x = node.bgimg_middle,
|
||||
x = 0, y = 0, w = 0, h = 0, auto_clip = true,
|
||||
}
|
||||
node.bgimg = nil
|
||||
end
|
||||
|
||||
res[#res + 1] = node
|
||||
|
||||
if DEBUG_MODE then
|
||||
|
Loading…
Reference in New Issue
Block a user