Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- cast bar for player and target
- if (C["unitframes"].unitcastbar == true) then
- -- castbar of player and target
- local castbar = CreateFrame("StatusBar", self:GetName().."_Castbar", self)
- castbar:SetStatusBarTexture(normTex)
- castbar:SetFrameLevel(6)
- 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
- if (C["unitframes"].trikz == true) and (unit == "player") then
- castbar:SetPoint("BOTTOM", InvTukuiActionBarBackground, "CENTER", 14,38)
- castbar:SetHeight(T.Scale(22))
- castbar:SetWidth(T.Scale(344))
- elseif (unit == "target") then
- castbar:SetPoint("CENTER", UIParent,"CENTER", 0, 250)
- castbar:SetHeight(T.Scale(20))
- castbar:SetWidth(T.Scale(250))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement