Access to the style of child flow of frames

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
Osmo
Fast Inserter
Fast Inserter
Posts: 152
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Access to the style of child flow of frames

Post by Osmo »

What?
Ability to access the agui flow's style properties that is created as an element inside every frame. Doesn't need to be a LuaStyle, just margin and padding would cover most of the cases.
Why?
When LuaGuiElement of type frame is created, a child agui flow is created which is used to contain child elements of the frame. This is fine, but a problem arises when you need to change the style of the flow. More specifically, 90% of the time its margin/padding that needs to be changed.
However mods have no access to that, and changing margin/padding on the frame usually doesn't have the desired effect.
I've seen people add another flow to the frame and changing its style just to compensate for the agui flow's margin/padding, which needs to be "reverse engineered", which might not always be possible with the Ctrl+F6 style debug tool. Doing this everywhere is a major annoyance and requires extra time. Creating a style at data stage is another workaround, but doing it every time you want to change 2 numbers, in a system otherwise very hot-reloadable, for a thing that there may be only one of, is very time consuming and requires extra effort.
Tiny rant
This is something that has been bugging me for a long time, and i see other modders having problems it as well. It adds a lot of friction to the experience and can't be reasonably aleviated in a form of a library.
I completely understand if this requires a lot of effort in the current system, but having a request doesn't hurt. Thank you for all the work you do.
User avatar
EvilPLa
Long Handed Inserter
Long Handed Inserter
Posts: 52
Joined: Sat Nov 14, 2020 7:26 am
Contact:

Re: Access to the style of child flow of frames

Post by EvilPLa »

You know about this option?
09-15-2025, 14-49-54.png
09-15-2025, 14-49-54.png (50.51 KiB) Viewed 141 times
Edit: nvm, you want it a runtime.
Wise men speak because they have something to say Fools because they have to say something. (Plato)
Post Reply

Return to “Modding interface requests”