Quantcast WoWInterface - View Single Post - How does WoW manage decimal point on "SetPoint", "SetSize" and so on?
View Single Post
10-10-17, 02:25 AM   #9
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,289
Originally Posted by Layback_ View Post
Hi Lombra,

So, I've been testing this while I was creating custom nameplates with oUF (as I stated above) and even if I set their backdrop edge size to 1px, they (edges) will get extended or shrunk by 1px, recursively, while nameplates are continuously moving.

I guess it's happening because those edges are positioned between two pixels (as semlar and Resike had mentioned) while they were moving.
I don't think you can do anything to prevent this for nameplates since the game is moving them and not you.

There is another case when you move frames and their FontStings are jumping around 1-1 pixels, that's also caused by not setting the x, y values correctly, like centering a FontString with 6 pixel heigth on a 7 pixel height frame, and the game can't decide where to render the FontString. Usual solution is to not to use center, left, right, top and bottom anchors for FontStrings.

Last edited by Resike : 10-10-17 at 02:32 AM.
  Reply With Quote