Maintaining relative node positions!

Hi!

I spent a lot of time building this out of GUI nodes. But when I resize the screen, it all falls apart. Is there any way I can make the GUI nodes stay in that position? I feel like there isn’t.

There’s an Adjust Reference setting in your gui files. You can disable that and then do your scaling manually, from Lua. (parent everything to a root node and calculate the proper scale whenever you get the window_resized message in your render script). I have a crit.layout module in Crit that does exactly that, but it might be overkill for you. (there’s no reference docs for it, but there’s an example in that repo)

3 Likes

The problem fixed itself :relaxed: thanks so much for your help though