Quantcast WoWInterface - View Single Post - What parts of an addon's GUI should be "pixel perfect"?
View Single Post
10-16-17, 10:16 PM   #12
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,007
This also means that unless you do set the entire UI to the pixel perfect scale, you should instead set any given frame's scale by UIParent:GetEffectiveScale() otherwise you will get unexpected display results.

After all, if UIParent is not "pixel perfect", then you would want to use whatever scale the user prefers.

Since you are not writing a full UI replacement and thus not adjusting UIParent or the game's scale using CVars, and you are designing an addon that displays some info, I highly suggest you use GetEffectiveScale.

Pixel perfection, as I mentioned a couple of times, is arguably not for individual addons, and is best served for full UI replacements. If you try to make your addon pixel perfect it will not look "right" to other users who desire a different scale for their game than you use.
  Reply With Quote