Thread Tools Display Modes
09-15-11, 07:17 AM   #1
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 540
Nameplate Border problems?

I never posted about this because it never really bothered me, but now I am just a little curious as to what this problem is.

On my mac, and not on any other of my computers, my name plates' border does something odd.

Attachment1(right): What the Border should look like.
Attachment2(left): What happens when I am moving, or when I move my camera.

I wish I had a clue as to what might be making it do that.

My BorderEdge is set to 1, it's a pixel perfect solid border and it works fine on my other computers.

And my UI scale is set to 1:1, so that should be the default. Anyone know what might be causing it?

Also I use Aloft
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_091511_091203.jpeg
Views:	579
Size:	10.6 KB
ID:	6488  Click image for larger version

Name:	WoWScrnShot_091511_091354.jpeg
Views:	597
Size:	7.8 KB
ID:	6489  
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
  Reply With Quote
09-15-11, 07:57 AM   #2
ALZA
A Deviate Faerie Dragon
 
ALZA's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 19
Nameplates are children of WorldFrame, not UIParent. So they're not affected by UIScale. Scaling WorldFrame or every nameplate is not an option also - it affects the position of frame. One way to "normalize" all sizes to be pixel-perfect looks like this:

Code:
local fix = 1
if(IsLoggedIn()) then -- in case we are back from /reload and not actually logging
	fix = GetCVar"UIScale"
else
	local fixframe = CreateFrame"Frame"
	fixframe:RegisterEvent"PLAYER_LOGIN"
	fixframe:SetScript("OnEvent", function()
		fix = GetCVar"UIScale"
	end)
end
So setting a size, position or offset will look like:

Code:
border:SetPoint("TOPLEFT", -1 * fix, 1 * fix)
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Nameplate Border problems?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off