[Therenas][1.1.32] Documentation inconsistency: Is `player.gui.screen` a flow or empty-widget?

This subforum contains all the issues which we already resolved.
Post Reply
Zomis
Inserter
Inserter
Posts: 31
Joined: Fri Apr 21, 2017 7:01 pm
Contact:

[Therenas][1.1.32] Documentation inconsistency: Is `player.gui.screen` a flow or empty-widget?

Post by Zomis »

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).

User avatar
Therenas
Factorio Staff
Factorio Staff
Posts: 232
Joined: Tue Dec 11, 2018 2:10 pm
Contact:

Re: [Therenas][1.1.32] Documentation inconsistency: Is `player.gui.screen` a flow or empty-widget?

Post by Therenas »

Thank you for the report. top, left, center and goal are indeed flows, while screen and relative are empty-widgets. The docs have been updated to reflect this for the next release.

Post Reply

Return to “Resolved Problems and Bugs”