Originally Posted by Plickz
Hey, where do you insert the code for sThreatMeter2, Gnosis and TinyDPS? I've been fiddling around with it for a while and the screen just gets darker.
Thanks
|
I'll just give you snippets of the code, including a little before/after, so you know how it is pasted in.
sThreatMeter2 (lines 122-140):
Code:
if ( not bar ) then
bar = CreateFrame("StatusBar", "sThreatMeterBar"..index, UIParent);
bar:SetWidth(sThreatMeter_Data.Width);
bar:SetHeight(sThreatMeter_Data.Height);
bar:SetStatusBarTexture(sThreatMeter_Data.Texture);
bar:SetMinMaxValues(0, 100);
bar:SetValue(0);
local bg = CreateFrame("Frame", nil, bar)
bg:SetBackdrop({
bgFile = 'Interface\\AddOns\\TinyDPS\\Textures\\blank.tga',
edgeFile = 'Interface\\AddOns\\TinyDPS\\Textures\\blank.tga',
edgeSize = 1,
})
bg:SetBackdropColor(0, 0, 0, .4)
bg:SetBackdropBorderColor(0, 0, 0)
bg:SetFrameStrata("BACKGROUND")
bg:SetPoint("TOPLEFT", bar, -1, 1)
bg:SetPoint("BOTTOMRIGHT", bar, 1, -1)
Gnosis (Not actually sure if this works, I don't use Gnosis. I drycoded this one in) (lines 563-580):
Code:
function Gnosis:CreateBarFrame( name, iconpath, minval, maxval )
local f = CreateFrame( "Frame", name, UIParent );
f:SetFrameStrata( "MEDIUM" ); -- default, correct value will be set when calling Gnosis:SetBarParams()
f.name = name;
local bg = CreateFrame("Frame", nil, f)
bg:SetBackdrop({
bgFile = 'Interface\\ChatFrame\\ChatFrameBackground',
edgeFile = 'Interface\\ChatFrame\\ChatFrameBackground',
edgeSize = 1,
})
bg:SetBackdropColor(0, 0, 0, .4)
bg:SetBackdropBorderColor(0, 0, 0)
bg:SetFrameStrata("BACKGROUND")
bg:SetPoint("TOPLEFT", f, -1, 1)
bg:SetPoint("BOTTOMRIGHT", f, 1, -1)
-- border textures
TinyDPS (lines 2029-2046):
Code:
local function newBar(g)
local dummybar = CreateFrame('Statusbar', 'tdpsStatusBar', tdpsFrame)
local bg = CreateFrame("Frame", nil, dummybar)
bg:SetBackdrop({
bgFile = 'Interface\\AddOns\\TinyDPS\\Textures\\blank.tga',
edgeFile = 'Interface\\AddOns\\TinyDPS\\Textures\\blank.tga',
edgeSize = 1,
})
bg:SetBackdropColor(0, 0, 0, .4)
bg:SetBackdropBorderColor(0, 0, 0)
bg:SetFrameStrata("BACKGROUND")
bg:SetPoint("TOPLEFT", dummybar, -1, 1)
bg:SetPoint("BOTTOMRIGHT", dummybar, 1, -1)
dummybar:SetFrameStrata('MEDIUM')
dummybar:SetFrameLevel(2)
dummybar:SetOrientation('HORIZONTAL')
Lemme know if this helps!