LuaGuiElement :: x_anchor and y_anchor

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 451
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

LuaGuiElement :: x_anchor and y_anchor

Post by raiguard »

I'm not sure if this is possible, but I would like to request it anyways. Since we can't read element width/height, the only way to "anchor" a frame to anywhere besides the top-left of the screen is to hardcode the possible heights and widths. This is, obviously, not very flexible, and is a pain to work with.

I would like to request that an x_anchor and y_anchor properties be given to LuaGuiElements. This property would do different things depending on the element. For example, with a frame, it would be the corner that is used to define location. For flows, it would define the order of elements that were put in. For example, setting a horizontal flow's X anchor to right would make the flow go from right-to-left instead of left-to-right.

Once again, I'm not sure if this is even possible with AGUI, but I figured I'd ask anyway. Thanks for your time!
Don't forget, you're here forever.

Post Reply

Return to “Modding interface requests”