View Single Post
04-11-10, 01:56 PM   #10
Saiket
A Chromatic Dragonspawn
 
Saiket's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 154
Originally Posted by nightcracker View Post
Hence my above post

One problem though, neither GetCVar("uiScale") or UIParent:GetScale() return values instantly, you'll have to hook an event like PLAYER_ENTERING_WORLD(I don't know the first event that they are available, I do know that they are available at PLAYER_ENTERING_WORLD).
Since GetScreenWidth() is already scaled by the current uiScale, GetScreenWidth() * UIParent:GetScale() is constant no matter what uiScale is set to.
  Reply With Quote