Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.98 KB | None | 0 0
  1.         -- cast bar for player and target
  2.         if (C["unitframes"].unitcastbar == true) then
  3.             -- castbar of player and target
  4.             local castbar = CreateFrame("StatusBar", self:GetName().."_Castbar", self)
  5.             castbar:SetStatusBarTexture(normTex)
  6.             castbar:SetFrameLevel(6)
  7.             if (unit == "player") then
  8.                 castbar:SetPoint("BOTTOM", InvTukuiActionBarBackground, "CENTER", 0,240)
  9.                 castbar:SetHeight(T.Scale(20))
  10.                 castbar:SetWidth(T.Scale(230))
  11.             elseif (unit == "target") then
  12.                 castbar:SetPoint("BOTTOM", TukuiTarget, "TOP", 0, 70)
  13.                 castbar:SetHeight(T.Scale(18))
  14.                 castbar:SetWidth(T.Scale(250))
  15.             end
  16.             if (C["unitframes"].trikz == true) and (unit == "player") then
  17.                 castbar:SetPoint("BOTTOM", InvTukuiActionBarBackground, "CENTER", 14,38)
  18.                 castbar:SetHeight(T.Scale(22))
  19.                 castbar:SetWidth(T.Scale(344))
  20.             elseif (unit == "target") then
  21.                 castbar:SetPoint("CENTER", UIParent,"CENTER", 0, 250)
  22.                 castbar:SetHeight(T.Scale(20))
  23.                 castbar:SetWidth(T.Scale(250)) 
  24.             end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement