Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if C["unitframes"].unitcastbar then
- -- castbar of player and target
- local castbar = CreateFrame("StatusBar", self:GetName().."_Castbar", self)
- castbar:SetStatusBarTexture(normTex)
- castbar:SetFrameLevel(6)
- if C["unitframes"].trikz then
- if unit == "player" then
- castbar:SetPoint("BOTTOM", InvTukuiActionBarBackground, "CENTER", 0,240)
- castbar:SetHeight(T.Scale(20))
- castbar:SetWidth(T.Scale(230))
- elseif unit == "target" then
- castbar:SetPoint("CENTER", UIParent,"CENTER", 0, 250)
- castbar:SetHeight(T.Scale(20))
- castbar:SetWidth(T.Scale(250))
- end
- else
- if unit == "player" then
- castbar:SetPoint("BOTTOM", InvTukuiActionBarBackground, "CENTER", 0,240)
- castbar:SetHeight(T.Scale(20))
- castbar:SetWidth(T.Scale(230))
- elseif unit == "target" then
- castbar:SetPoint("BOTTOM", TukuiTarget, "TOP", 0, 70)
- castbar:SetHeight(T.Scale(18))
- castbar:SetWidth(T.Scale(250))
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement