[Therenas][1.1.32] Documentation inconsistency: Is `player.gui.screen` a flow or empty-widget?
Posted: Thu Apr 22, 2021 1:45 pm
https://lua-api.factorio.com/latest/LuaGuiElement.html
"flow": An invisible container that lays out its children either horizontally or vertically. The root GUI elements (top, left, center and screen; see LuaGui) are flows.
"empty-widget": An empty element that just exists. The root GUI element screen is an empty-widget.
I doubt that the screen root GUI is both a flow and an empty-widget. (And if it would be, it should be mentioned somewhere that it actually is both and how that would work).
"flow": An invisible container that lays out its children either horizontally or vertically. The root GUI elements (top, left, center and screen; see LuaGui) are flows.
"empty-widget": An empty element that just exists. The root GUI element screen is an empty-widget.
I doubt that the screen root GUI is both a flow and an empty-widget. (And if it would be, it should be mentioned somewhere that it actually is both and how that would work).