Advertisement
Guest User

Untitled

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