Getting correct frame ui position.
Edit: Found the solution right after I posted. https://wowwiki-archive.fandom.com/w...CursorPosition
I needed to divide the cursor coordinates by UIParent:GetEffectiveScale(). Sorry about that! I'm trying to figure out how I can get accurate screen coordinates for a frame. In this example, I have my cursor at the bottom left corner of the red frame. This is the script i'm using. Code:
local f = CreateFrame("Frame", nil, UIParent) |
Try creating your frame, then use "/framestack" to get your coordinates.
(OR - it might be \framestack [you can use fstack instead of framestack or you could anyway :o ] I think there are a few "modifiers" you can add if it's not exactly what you want. |
All times are GMT -6. The time now is 01:43 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI