About Store Forum Documentation Contact
Donations:
392$/mo



Post Reply 
GUI window resizable
Author Message
RedcrowProd Online
Bronze Supporter

Post: #1
GUI window resizable
hey,

just wondering because i'm not getting it pfft

anyway to get the resize delta of a window when we change it with the resize of the mouse ?

i'd like to resize and move all children of that window with the same delta.

so player can change the window size manualy with his mouse, and every thing will be resized as per the window.

thanks
12-12-2017 05:15 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: GUI window resizable
you can override Window.rect virtual method and compare new rect vs old rect.

I recommend settings child object sizes always in the parent 'rect' virtual method, you can just set them in 1 code location, and not in many different places.
12-12-2017 08:15 AM
Find all posts by this user Quote this message in a reply
RedcrowProd Online
Bronze Supporter

Post: #3
RE: GUI window resizable
So the manual resize call the rect method on the go ? ? Then ill do that thanks smile
(This post was last modified: 12-12-2017 09:17 PM by RedcrowProd.)
12-12-2017 09:03 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: GUI window resizable
yes, the 'rect' method is called every time the size is changed, because that function is responsible for setting the size/rect.
12-12-2017 10:30 PM
Find all posts by this user Quote this message in a reply
Post Reply