Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- combo points on target
- local CPoints = {}
- CPoints.unit = PlayerFrame.unit
- for i = 1, 5 do
- CPoints[i] = health:CreateTexture(nil, "OVERLAY")
- CPoints[i]:SetHeight(TukuiDB.Scale(12))
- CPoints[i]:SetWidth(TukuiDB.Scale(12))
- CPoints[i]:SetTexture(bubbleTex)
- if i == 1 then
- CPoints[i]:SetPoint("TOPLEFT",health, "TOPLEFT", TukuiDB.Scale(3), TukuiDB.Scale(-3))
- CPoints[i]:SetVertexColor(0.69, 0.31, 0.31)
- else
- CPoints[i]:SetPoint("LEFT", CPoints[i-1], "RIGHT", TukuiDB.Scale(1))
- end
- end
- CPoints[2]:SetVertexColor(0.69, 0.31, 0.31)
- CPoints[3]:SetVertexColor(0.65, 0.63, 0.35)
- CPoints[4]:SetVertexColor(0.65, 0.63, 0.35)
- CPoints[5]:SetVertexColor(0.33, 0.59, 0.33)
- self.CPoints = CPoints
- self:RegisterEvent("UNIT_COMBO_POINTS", TukuiDB.UpdateCPoints)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement