aMoistKite Posted November 30, 2019 Share Posted November 30, 2019 I honestly wonder why no tutorial really mentions what exactly each option means.GuiHorizontalSizing:aspectCenteraspectLeftAspectRightcenterrightwidthleftrelativewindowRelative GuiVerticalSizing:aspectCenteraspectBottomAspectTopcenterbottomtopheightrelativewindowRelative Quote Link to comment Share on other sites More sharing options...
Happenstance Posted November 30, 2019 Share Posted November 30, 2019 Center Centers the object in it's container. Only the position is changed, not the extent (width/height) of the GUI control. Right/Left/Top/Bottom Object will change position (not extent) when its container object is resized. This allows you to keep a control positioned at a specific position/offset relative to its container. One counter-intuitive bit about this: the setting works off of the opposite edge, so choosing 'Right' will reposition based off of the left edge of a control, choosing 'Top' offsets based on the bottom edge, etc. Width/HeightObject will adjust its extent (width/height) whenever its container object is resized. Only the extent is adjusted, the position will remain the same. RelativeObject will adjust both extent (width/height) and position whenever its container object is resized. WindowRelativeI believe this was intended specifically for GuiWindowCtrls so that they could maintain position relative to their parent container when collapsed. I haven't looked at the code but I would assume it works like the 'Relative' setting but also takes into account collapsed size. AspectRight/AspectLeft/AspectTop/AspectBottom/AspectCenterThese were newer options added in T3D at the end of the GG/TorquePowered fiasco I believe so there's not much info on them and I'm not sure any UIs currently use them. Looking at the code, it looks like they do the same as the non-aspect versions with regards to repositioning/resizing a control when its container object is resized. The main difference is these settings use the change in aspect ratio of the container object when calculating a new size/position. Quote Link to comment Share on other sites More sharing options...
aMoistKite Posted December 1, 2019 Author Share Posted December 1, 2019 Thanks mate. Quote Link to comment Share on other sites More sharing options...
Azaezel Posted December 1, 2019 Share Posted December 1, 2019 AspectRight/AspectLeft/AspectTop/AspectBottom/AspectCenterThese were newer options added in T3D at the end of the GG/TorquePowered fiasco I believe so there's not much info on them and I'm not sure any UIs currently use them. Looking at the code, it looks like they do the same as the non-aspect versions with regards to repositioning/resizing a control when its container object is resized. The main difference is these settings use the change in aspect ratio of the container object when calculating a new size/position. didn't exactly pick the best naming convetions there, I guess. but yeah, effectively adds exrtra space to the while maintaining the originally designed aspect ratio. (4:3 vs 16:9 swapping for instance with the legacy stuff tends to warp if you stick to pure relative) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.