Page 1 of 1

Add UI flow types to API

Posted: Mon Dec 16, 2019 10:24 pm
by MegaMech
I believe that "vertical_flow_style" is missing from the wiki/API.
One would think that a flow with the setting direction="vertical" would have a type and parent of "flow_style" and "flow" respectively. This is not the case rather its "vertical_flow_style" and "vertical_flow" presumably the corresponding "horizontal" direction likely requires "horizontal_flow_style" and "horizontal_flow" respectively. Please update the API to make these distinct differences more clear. Thanks.

styles.lua / data.lua

Code: Select all

gui = data.raw["gui-style"].default
gui["textlabel_flow"] = { --Note that vertical_flow_style and its parent "vertical_flow" is not in the API.
  type = "vertical_flow_style",
  parent = "vertical_flow",
  left_margin = 10
}

Re: Add UI flow types to API

Posted: Tue Dec 17, 2019 10:11 pm
by Rseding91
I don't think any of the style is documented in the runtime API. The wiki has information about styles: https://wiki.factorio.com/Types/StyleSpecification