forked from your-land-mirror/minetest-flow
Add listcolors to invisible_elems
This commit is contained in:
parent
13136ab2dc
commit
da87496e26
1
init.lua
1
init.lua
@ -230,6 +230,7 @@ end
|
||||
local invisible_elems = {
|
||||
style = true, listring = true, scrollbaroptions = true, tableoptions = true,
|
||||
tablecolumns = true, tooltip = true, style_type = true, set_focus = true,
|
||||
listcolors = true
|
||||
}
|
||||
|
||||
local DEFAULT_SPACING = 0.2
|
||||
|
14
test.lua
14
test.lua
@ -368,6 +368,20 @@ describe("Flow", function()
|
||||
]])
|
||||
end)
|
||||
|
||||
it("keeps gui.Listcolors invisible", function()
|
||||
test_render(gui.VBox{
|
||||
min_h = 5,
|
||||
gui.Box{w = 1, h = 1, color = "red"},
|
||||
gui.Listcolors{slot_bg_normal = "red", slot_bg_hover = "blue"},
|
||||
gui.Box{w = 1, h = 1, color = "green"},
|
||||
}, [[
|
||||
size[1.6,5.6]
|
||||
box[0.3,0.3;1,1;red]
|
||||
listcolors[red;blue]
|
||||
box[0.3,1.5;1,1;green]
|
||||
]])
|
||||
end)
|
||||
|
||||
it("registers inventory formspecs", function ()
|
||||
local stupid_simple_inv_expected =
|
||||
"formspec_version[7]" ..
|
||||
|
Loading…
Reference in New Issue
Block a user