Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.73 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.                     if TukuiDB.lowversion then
  11.                         CPoints[i]:SetPoint("TOPRIGHT", TukuiDB.Scale(15), TukuiDB.Scale(1.5))
  12.                     else
  13.                         CPoints[i]:SetPoint("TOPLEFT", TukuiDB.Scale(-15), TukuiDB.Scale(1.5))
  14.                     end
  15.                     CPoints[i]:SetVertexColor(0.69, 0.31, 0.31)
  16.                 else
  17.                     CPoints[i]:SetPoint("TOP", CPoints[i-1], "BOTTOM", TukuiDB.Scale(1))
  18.                 end
  19.             end
  20.             CPoints[2]:SetVertexColor(0.69, 0.31, 0.31)
  21.             CPoints[3]:SetVertexColor(0.65, 0.63, 0.35)
  22.             CPoints[4]:SetVertexColor(0.65, 0.63, 0.35)
  23.             CPoints[5]:SetVertexColor(0.33, 0.59, 0.33)
  24.             self.CPoints = CPoints
  25.             self:RegisterEvent("UNIT_COMBO_POINTS", TukuiDB.UpdateCPoints)
  26.            
  27.            
  28. REPLACE IT WITH THIS:
  29.            
  30.             -- combo points on target
  31.             local CPoints = {}
  32.             CPoints.unit = PlayerFrame.unit
  33.             for i = 1, 5 do
  34.                 CPoints[i] = health:CreateTexture(nil, "OVERLAY")
  35.                 CPoints[i]:SetHeight(TukuiDB.Scale(12))
  36.                 CPoints[i]:SetWidth(TukuiDB.Scale(12))
  37.                 CPoints[i]:SetTexture(bubbleTex)
  38.                 if i == 1 then
  39.                     CPoints[i]:SetPoint("TOPLEFT", TukuiDB.Scale(3), TukuiDB.Scale(-3))
  40.                     CPoints[i]:SetVertexColor(0.69, 0.31, 0.31)
  41.                 else
  42.                     CPoints[i]:SetPoint("LEFT", CPoints[i-1], "RIGHT", TukuiDB.Scale(1))
  43.                 end
  44.             end
  45.             CPoints[2]:SetVertexColor(0.69, 0.31, 0.31)
  46.             CPoints[3]:SetVertexColor(0.65, 0.63, 0.35)
  47.             CPoints[4]:SetVertexColor(0.65, 0.63, 0.35)
  48.             CPoints[5]:SetVertexColor(0.33, 0.59, 0.33)
  49.             self.CPoints = CPoints
  50.             self:RegisterEvent("UNIT_COMBO_POINTS", TukuiDB.UpdateCPoints)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement