A Deviate Faerie Dragon
Join Date: Mar 2009
Posts: 14
|
tnx for the help guys i eventually got it 2 work
but 1 thing i cant get to work is making the castbars dragable ive tried using
oUF_CreateDragFrame("ouf_CastBarDragFrame",move_castbar ,lock_castbar,"ouf_castbar","CENTER", 1, 0)
|
and
oUF_CreateDragFrame("ouf_statusbarDragFrame",move_statusbar ,lock_statusbar,"ouf_statusbar","CENTER", 1, 0)
|
but none work the code i use is
if(unit == 'player') then
local colorcb
local _,classcb = UnitClass(unit)
colorcb = oUF.colors.class[classcb]
self.Castbar = CreateFrame('StatusBar', nil, self)
self.Castbar:SetPoint('TOP', Player, 'CENTER', -230, -193) ---castbar position---
self.Castbar:SetStatusBarTexture(texturebar)
self.Castbar:SetStatusBarColor(colorcb[1], colorcb[2], colorcb[3])
self.Castbar:SetBackdrop(backdrophp)
self.Castbar:SetBackdropColor(colorcb[1]/3, colorcb[2]/3, colorcb[3]/3)
self.Castbar:SetHeight(19) ----change to set hite-----
self.Castbar:SetWidth(292) ----change to set width----
self.Castbar.Spark = self.Castbar:CreateTexture(nil,'OVERLAY')
self.Castbar.Spark:SetBlendMode("ADD")
self.Castbar.Spark:SetHeight(55)
self.Castbar.Spark:SetWidth(27)
self.Castbar.Spark:SetVertexColor(colorcb[1], colorcb[2], colorcb[3])
self.Castbar.Text = setFontString(self.Castbar, fontn, 13)
self.Castbar.Text:SetPoint('LEFT', self.Castbar, 2, 0)
self.Castbar.Time = setFontString(self.Castbar, fontn, 13)
self.Castbar.Time:SetPoint('RIGHT', self.Castbar, -2, 0)
self.Castbar.CustomTimeText = OverrideCastbarTime
self.Castbar2 = CreateFrame('StatusBar', nil, self.Castbar)
self.Castbar2:SetPoint('BOTTOMRIGHT', self.Castbar, 'BOTTOMRIGHT', 4, -4)
self.Castbar2:SetPoint('TOPLEFT', self.Castbar, 'TOPLEFT', -4, 4)
self.Castbar2:SetBackdrop(backdrop)
self.Castbar2:SetBackdropColor(0,0,0,1)
self.Castbar2:SetHeight(27)
self.Castbar2:SetFrameLevel(0)
self.Castbar.SafeZone = self.Castbar:CreateTexture(nil,'BACKGROUND')
self.Castbar.SafeZone:SetPoint('TOPRIGHT')
self.Castbar.SafeZone:SetPoint('BOTTOMRIGHT')
self.Castbar.SafeZone:SetHeight(20)
self.Castbar.SafeZone:SetTexture(texturebar)
self.Castbar.SafeZone:SetVertexColor(1,1,.01,0.5)
--]]
end
if(unit == 'target') then
self.Castbar = CreateFrame('StatusBar', nil, self)
self.Castbar:SetPoint('TOP', Target, 'CENTER', 158, -268) ----sets position----
self.Castbar:SetStatusBarTexture(texturebar)
self.Castbar:SetStatusBarColor(.81,.81,.25)
self.Castbar:SetBackdrop(backdrophp)
self.Castbar:SetBackdropColor(.81/3,.81/3,.25/3)
self.Castbar:SetHeight(20) ----sets hight----
self.Castbar:SetWidth(146) ----sets width----
self.Castbar.Text = setFontString(self.Castbar, fontn, 12)
self.Castbar.Text:SetPoint('LEFT', self.Castbar, 2, 0)
self.Castbar.Time = setFontString(self.Castbar, fontn, 12)
self.Castbar.Time:SetPoint('RIGHT', self.Castbar, -2, 0)
self.Castbar.CustomTimeText = OverrideCastbarTime
self.Castbar2 = CreateFrame('StatusBar', nil, self.Castbar)
self.Castbar2:SetPoint('BOTTOMRIGHT', self.Castbar, 'BOTTOMRIGHT', 4, -4)
self.Castbar2:SetPoint('TOPLEFT', self.Castbar, 'TOPLEFT', -4, 4)
self.Castbar2:SetBackdrop(backdrop)
self.Castbar2:SetBackdropColor(0,0,0,1)
self.Castbar2:SetHeight(21)
self.Castbar2:SetFrameLevel(0)
self.Castbar.Spark = self.Castbar:CreateTexture(nil,'OVERLAY')
self.Castbar.Spark:SetBlendMode("Add")
self.Castbar.Spark:SetHeight(35)
self.Castbar.Spark:SetWidth(25)
self.Castbar.Spark:SetVertexColor(.69,.31,.31)
end
|
eny help there please
|