Absolute positioning and Custom Scale
I have a control centered horizontally on the screen. If possible, how would I vertically position this control at exactly 1/2 distance between the top of the screen and the center, and have this control stay there despite UI custom scale changes?
|
I would do
Lua Code:
/edit: if you want the center of your frame to be at that point, then do this instead: Lua Code:
|
Quote:
Thanks! I'm using that inside a EVENT_SCREEN_RESIZED event, and it does the trick for screen resizing or Custom Scale changes. Code:
EVENT_MANAGER:RegisterForEvent(name, EVENT_SCREEN_RESIZED, function() |
Clear your frame's anchor before setting a new one.
|
Quote:
|
All times are GMT -6. The time now is 09:11 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI