Add UI flow types to API

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
MegaMech
Burner Inserter
Burner Inserter
Posts: 12
Joined: Tue Mar 22, 2016 10:02 pm
Contact:

Add UI flow types to API

Post 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
}

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Add UI flow types to API

Post 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
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Modding interface requests”