Access to the style of child flow of frames
Posted: Mon Sep 15, 2025 5:54 am
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.