Used an undocumented cooldown function to make the cooldown wipe on Death Knight runes match the shape of the rune (circular).

This commit is contained in:
Parnic
2015-03-22 21:55:05 -05:00
parent 84577ae5e9
commit 1fc1d476cc

View File

@ -369,7 +369,8 @@ function Runes.prototype:CreateRune(i, type, name)
self.frame.graphical[i]:SetPoint("TOPLEFT", 0, -1 * ((runeSwapI-1) * (self.runeSize-5) + (runeSwapI-1) + ((runeSwapI-1) * self.moduleSettings.runeGap))) self.frame.graphical[i]:SetPoint("TOPLEFT", 0, -1 * ((runeSwapI-1) * (self.runeSize-5) + (runeSwapI-1) + ((runeSwapI-1) * self.moduleSettings.runeGap)))
end end
self.frame.graphical[i].rune:SetTexture(self:GetRuneTexture(name)) local runeTex = self:GetRuneTexture(name)
self.frame.graphical[i].rune:SetTexture(runeTex)
self.frame.graphical[i].rune:SetVertexColor(self:GetColor("Runes"..name)) self.frame.graphical[i].rune:SetVertexColor(self:GetColor("Runes"..name))
self.frame.graphical[i]:Show() self.frame.graphical[i]:Show()
@ -377,6 +378,8 @@ function Runes.prototype:CreateRune(i, type, name)
self.frame.graphical[i].cd:SetFrameLevel(self.frame.graphical[i]:GetFrameLevel()+1) self.frame.graphical[i].cd:SetFrameLevel(self.frame.graphical[i]:GetFrameLevel()+1)
self.frame.graphical[i].cd:ClearAllPoints() self.frame.graphical[i].cd:ClearAllPoints()
self.frame.graphical[i].cd:SetAllPoints(self.frame.graphical[i]) self.frame.graphical[i].cd:SetAllPoints(self.frame.graphical[i])
self.frame.graphical[i].cd:SetSwipeTexture(runeTex)
self.frame.graphical[i].cd:SetDrawEdge(false)
self.frame.graphical[i].shine:SetTexture("Interface\\ComboFrame\\ComboPoint") self.frame.graphical[i].shine:SetTexture("Interface\\ComboFrame\\ComboPoint")
self.frame.graphical[i].shine:SetBlendMode("ADD") self.frame.graphical[i].shine:SetBlendMode("ADD")