Page 1 of 1

Set ignored_by_interaction without setting it on children

Posted: Sun Jun 13, 2021 1:16 am
by raiguard
I am (ab)using a flow to position a GUI in the bottom-right of the screen. I need this GUI to have a dynamic height, so what I ended up doing was putting it in a flow with a pusher above it, then setting the height of that flow to the height of the screen:
Screenshot from 2021-06-12 19-15-11.png
Screenshot from 2021-06-12 19-15-11.png (18.56 KiB) Viewed 1243 times
It works remarkably well! ...Except for one problem: the flow blocks everything behind it from being clicked. It makes it impossible to use the top menu and click any entities in this portion of the screen.

So I would love a way to define ignored_by_interaction on the flow specifically, without setting it on the children as well - I need the GUI within the flow to be intractable.

Thank you!

Re: Set ignored_by_interaction without setting it on children

Posted: Sun Jun 13, 2021 10:01 pm
by eradicator
Why can't you just use LuaGuiElement.location?

Re: Set ignored_by_interaction without setting it on children

Posted: Mon Jun 14, 2021 5:15 am
by raiguard
I am using it for the X position. I can't use it for the Y position unless I hardcode the height of the GUI, which won't play well with how this GUI is going to work. It needs to dynamically stretch up and down based on its content.

Re: Set ignored_by_interaction without setting it on children

Posted: Mon Jun 14, 2021 7:24 am
by PFQNiet
What happens if you set the flow's width to zero and then apply negative left margin to the frame itself?

Re: Set ignored_by_interaction without setting it on children

Posted: Mon Dec 26, 2022 10:34 am
by curiosity
I would also like to see this. Right now nesting interactive elements with any control over their alignment is practically impossible.