Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ClassIcons = {}
- if myClass == "MONK" or myClass == "PRIEST" or myClass == "PALADIN" then
- for index = 1, 5 do
- local Icon = CreateFrame("Frame", "coldCI"..index, self)
- Icon.UpdateTexture = dummy
- Icon:SetSize(10, 10)
- Icon:SetBackdrop(backdrop)
- Icon:SetBackdropBorderColor(0,0,0)
- Icon:SetFrameLevel(6)
- ClassIcons[index] = Icon
- end
- -- Position (made it backwards to right align)
- for backindex = 5, 1, -1 do
- if backindex == 5 then
- ClassIcons[backindex]:SetPoint('BOTTOMRIGHT', Health, 'BOTTOMRIGHT', -2, 2)
- else
- ClassIcons[backindex]:SetPoint('RIGHT', ClassIcons[backindex+1], 'LEFT', -2, 0)
- end
- end
- end
- self.ClassIcons = ClassIcons
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement