Thread Tools Display Modes
03-17-13, 03:57 PM   #1
Velarayne
An Aku'mai Servant
 
Velarayne's Avatar
AddOn Compiler - Click to view compilations
Join Date: Jul 2011
Posts: 35
Need help with a DBM skin. :<

I'm cross posting this from the WoW UI & Macro forums because I think I may get more helpful responses here.

I downloaded a DBM skin called Quse Boss Styles (http://www.wowinterface.com/download...ossStyles.html), and am having a bit of trouble with the scaling. I posted a comment on the WoWInterface page, but it appears as if the author doesn't update very often and I'd really like to find a solution since this is the first DBM skin I've been able to find that actually matches my UI. ><

Here's a screenshot of my problem:

The bars on the right hand side are absolutely perfect. However, the "huge bar" (down towards the bottom right) is off somehow, causing the border be blurry instead of pixel perfect like the others. As you can see on my DBM settings, the scaling and everything else are exactly the same. Looking through the WoWInterface comments, someone else had the same issue and it doesn't sound like it was ever actually fixed, but I'm hoping someone here can help me figure it out.

I was hoping that the LUA contained different settings for each bar type, but it doesn't appear to (although my LUA skills are a bit limited, so I could be wrong). Here's the LUA file, in case this helps anyone identify the problem:

Code:
    hooksecurefunc('CreateFrame', function(...)
        local _, name, _, template = ...
        if(template == 'DBTBarTemplate') then
            local frame = _G[name]     
            local bar = _G[frame:GetName().."Bar"]
			local spark = _G[frame:GetName().."BarSpark"]
			local texture = _G[frame:GetName().."BarTexture"]
			local icon1 = _G[frame:GetName().."BarIcon1"]
			local icon2 = _G[frame:GetName().."BarIcon2"]
			local name = _G[frame:GetName().."BarName"]
			local timer = _G[frame:GetName().."BarTimer"]
			bar:SetHeight(18)
			bar:SetFrameLevel(1)
			
-- BAR STYLE			
			texture:SetTexture("Interface\\AddOns\\!dbm\\media\\statusbar")
			icon1:SetTexCoord(.1,.9,.1,.9) 
			icon1:ClearAllPoints()
			icon1:SetPoint("LEFT", bar, "LEFT", -21, 0)
			icon2:SetTexCoord(.1,.9,.1,.9) 
			name:SetPoint("CENTER") 
			name:SetPoint("LEFT", 4, 0) 
			name:SetFont("Interface\\AddOns\\!dbm\\media\\Hoog0655.ttf", 8, "OUTLINEMONOCHROME")
			name:SetShadowColor(0, 0, 0, 0)
			timer:SetPoint("CENTER") 
			timer:SetPoint("RIGHT", -4, 0) 
			timer:SetFont("Interface\\AddOns\\!dbm\\media\\Hoog0655.ttf", 8, "OUTLINEMONOCHROME") 
			timer:SetFont("Interface\\AddOns\\!dbm\\media\\Hoog0655.ttf", 8, "OUTLINEMONOCHROME") 
			timer:SetShadowColor(0, 0, 0, 0)
			spark:SetAlpha(0)
			
			name.SetFont = function() end
			texture.SetTexture = function() end
			timer.SetFont = function() end
			spark.SetAlpha = function() end
			--bar.styled = true

-- BACKDROP AND BORDER					
			local bg = CreateFrame("Frame", nil, bar)
			bg:SetPoint("TOPRIGHT", frame, 0, 0)
			bg:SetPoint("BOTTOMLEFT", frame, -1, -0)
	 		bg:SetBackdrop({
				bgFile = "Interface\\Buttons\\WHITE8X8", 
				edgeFile = "Interface\\Buttons\\WHITE8X8",
				edgeSize = 1,
			})
			bg:SetBackdropBorderColor(0, 0, 0, 1)
			bg:SetBackdropColor(.078,.078,.078,0.5)
			bg:SetFrameLevel(0)	
			

-- LEFT ICON
			-- local ibg = CreateFrame("Frame", icon1)
			-- ibg:SetPoint("TOPRIGHT", icon1, 1, 1)
			-- ibg:SetPoint("BOTTOMLEFT", icon1, -1, -1)
			-- ibg:SetBackdrop({
				-- bgFile = "", 
				-- edgeFile = "Interface\\Buttons\\WHITE8X8",
				-- edgeSize = 1,
			-- })
			-- ibg:SetBackdropBorderColor(0, 0, 0)
			-- ibg:SetParent(bar)


-- RIGHT ICON
			-- local ibg = CreateFrame("Frame", icon2)
			-- ibg:SetPoint("TOPRIGHT", icon2, 1, 1)
			-- ibg:SetPoint("BOTTOMLEFT", icon2, -1, -1)
			-- ibg:SetBackdrop({
				-- bgFile = "", 
				-- edgeFile = "Interface\\Buttons\\WHITE8X8",
				-- edgeSize = 1,
			-- })
			-- ibg:SetBackdropBorderColor(0, 0, 0)
			-- ibg:SetParent(bar)
			
        end
    end)
  Reply With Quote
03-17-13, 06:50 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Without looking over your code (I'm about to go out for the evening and don't have time) I'd guess that the problem is simply the bar's placement. It's probably positioned at 42.3, 103.8 instead of 42, 104. Simply move it so it's sitting right on a whole pixel, and it should look fine. If DBM doesn't offer a way to enter exact values for the position, log out out of WoW, open DBM's saved variables in Notepad, round all the coordinates to the nearest integer, save, and log back in.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
03-17-13, 07:15 PM   #3
Haleth
This Space For Rent
 
Haleth's Avatar
Featured
Join Date: Sep 2008
Posts: 1,173
I vaguely recall the 'huge bar' having a higher scale by default, and setting the scale slider to 1 doesn't mean you actually set its scale to 1.

Try what Phanx suggested first. If that doesn't work, then add this to your code:

Code:
print(bar:GetEffectiveScale())
This return's the bar's actual scale, taking parent frame and UI scaling into account. Test it for the normal bar and the 'huge' bar. If you get two different values, then this theory is correct and you need to adjust the huge bar's scale.
  Reply With Quote
03-17-13, 11:19 PM   #4
Velarayne
An Aku'mai Servant
 
Velarayne's Avatar
AddOn Compiler - Click to view compilations
Join Date: Jul 2011
Posts: 35
Thank you so much, both of you. My apologies for not posting back sooner, I've been sick the past few days and fell asleep after posting this. ><

Anyway, Phanx's theory was correct; I went into the saved variables for DBM and edited the values to be on a whole pixel and it worked perfectly! Thanks again! :>
  Reply With Quote
05-17-13, 12:06 AM   #5
Xionyus
A Deviate Faerie Dragon
Join Date: Jan 2013
Posts: 13
Just an FYI, I really like your UI and I really appreciate you posting this. Reason is, I downloaded the same skin around a week ago and I was having problems with it as well. The borders were blurry and the skin caused my DBM to not work in encounters. Shrug. Thanks. This thread helped a lot.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Need help with a DBM skin. :<


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