Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.80 KB | None | 0 0
  1. -- combo points on target
  2.             local CPoints = {}
  3.             CPoints.unit = PlayerFrame.unit
  4.             for i = 1, 5 do
  5.                 CPoints[i] = health:CreateTexture(nil, "OVERLAY")
  6.                 CPoints[i]:SetHeight(TukuiDB.Scale(12))
  7.                 CPoints[i]:SetWidth(TukuiDB.Scale(12))
  8.                 CPoints[i]:SetTexture(bubbleTex)
  9.                 if i == 1 then
  10.                     CPoints[i]:SetPoint("TOPLEFT",health, "TOPLEFT", TukuiDB.Scale(3), TukuiDB.Scale(-3))
  11.                     CPoints[i]:SetVertexColor(0.69, 0.31, 0.31)
  12.                 else
  13.                     CPoints[i]:SetPoint("LEFT", CPoints[i-1], "RIGHT", TukuiDB.Scale(1))
  14.                 end
  15.             end
  16.             CPoints[2]:SetVertexColor(0.69, 0.31, 0.31)
  17.             CPoints[3]:SetVertexColor(0.65, 0.63, 0.35)
  18.             CPoints[4]:SetVertexColor(0.65, 0.63, 0.35)
  19.             CPoints[5]:SetVertexColor(0.33, 0.59, 0.33)
  20.             self.CPoints = CPoints
  21.             self:RegisterEvent("UNIT_COMBO_POINTS", TukuiDB.UpdateCPoints)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement