View Single Post
09-07-10, 10:37 AM   #4
Porsha
A Black Drake
Join Date: Apr 2008
Posts: 88
Originally Posted by Viridis View Post
The sThreatMeter2 border works when the CreateBorder line is in the addons lua file, however not in a standalone addon.

I'm guessing an addon with nothing but the .toc file and that line doesn't work?

( CreateBorder(sThreatMeter, 12, 7, 7, 7, 1, 2, 1, 2, 1, 48, 1, 48) )

Thanks for the reply
This is what I have in my sThreatMeter2 file (not the config one) but the main one. I use !Beautycase too :P

anyways, with a text editor thing, open it up and find about line 143 - the local Function UndateThreatBars =

add this (but fix it so it is your border perference):

bar.background = bar:CreateTexture("$parentBackground", "BACKGROUND");
bar.background:SetAllPoints();
bar.background:SetTexture(sThreatMeter_Data.Texture);
--bar.background:SetBackdrop{
--bgFile = "Interface\\ChatFrame\\ChatFrameBackground", tile = true, tileSize = 16,
--insets = {left = -1, right = -1, top = -1, bottom = -1},
--}
--bar.background:SetBackdropColor(0,0,0,1)
--CreateBorder(bar,3,0,0,0,1,1,1,1,1,1,1,1)

I have mine commented out cause I sont want a border :P so make sure you delete all the "--" from that.


Hope that helps!

edit: oh so i should read better....no, it wont work cause you have to have the border create it during the fuction phase of the bar.....hope that makes sense. thats why !BeautyCase is so wonderful...one line and your done

Last edited by Porsha : 09-07-10 at 10:39 AM.
  Reply With Quote