From 1fc1d476cc7eaafa15e3532f80f62b8c08b37cbe Mon Sep 17 00:00:00 2001 From: Parnic Date: Sun, 22 Mar 2015 21:55:05 -0500 Subject: [PATCH] Used an undocumented cooldown function to make the cooldown wipe on Death Knight runes match the shape of the rune (circular). --- modules/Runes.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/Runes.lua b/modules/Runes.lua index 27108f1..0fe5f9e 100644 --- a/modules/Runes.lua +++ b/modules/Runes.lua @@ -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))) 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]: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:ClearAllPoints() 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:SetBlendMode("ADD")