415 - Problems with anchoring and UIScale
Hi Shadowed,
I'm currently in the process of fixing my UI so it can be used by anyone with any uiscale and resolution.
I've run into some problems considering anchoring frames and setting different UIScales.
To clarify the problem i've made some screenshots, please look at them here: http://www.butgerstijl.nl/SUFproblem.jpg
It seems that SUF aligns everything properly, but after a /reload it will calculate positions differently.
I'd be happy to learn if there is any solution for this so SUF will align properly with any UIScale.
Cheers, Rutger
| User | When | Change |
|---|---|---|
| Butger | Dec 12, 2011 at 10:00 UTC | Create |
- 2 comments
- 2 comments
- Reply
- #2
Shadowed Dec 13, 2011 at 00:07 UTC - 0 likesThanks for the report, I probably won't have time to get to it until tomorrow but should be easy to fix.
- Reply
- #1
Butger Dec 12, 2011 at 17:50 UTC - 0 likesI've also figured that SUF somehow recalculates frame positions relative to the screen after a UIScale change. The values change and that's why they aren't at the right position anymore. When i re-enter the original positions everything is ok again. This strange behavior does not seem to happen to frames that are anchored to other SUF frames, the position data on these frames will stay the same after changing UIScales.
So to summ it up: 1: I have frame at a certain position relative to let's say the screens bottom-center 2: I change the UIscale 3: After reloading or re-logging SUF will have changed the position data. 4: Things don't fit anymore 5: If i would enter the same positions the frame had at the start it will be at the right spot again.
In short i can confirm that the UIScale becomes an undisireable factor in position calculations when you anchor frames to the screen.
Update: I have currently worked around the issue by anchoring my frames to empty dummy-frames that i've put at "0" positions. Since you can't calculate with 0 these values won't change, and the frames can serve to anchor other frames to the dummy frames screen anchor.