- MAJOR thanks to Shefki for finding and fixing most of the 3.3.3 issues!

- fixed runes module
- fixed a few other minor issues
This commit is contained in:
Parnic
2010-03-25 04:15:22 +00:00
parent 415e4428a4
commit 06daebe0fd
5 changed files with 15 additions and 13 deletions

View File

@ -301,8 +301,8 @@ function Runes.prototype:UpdateRuneType(rune)
local thisRuneName = self.runeNames[GetRuneType(rune)]
self.frame.graphical[rune]:SetStatusBarTexture(self:GetRuneTexture(thisRuneName))
self.frame.graphical[rune]:SetStatusBarColor(self:GetColor("Runes"..thisRuneName))
self.frame.graphical[rune].rune:SetTexture(self:GetRuneTexture(thisRuneName))
self.frame.graphical[rune].rune:SetVertexColor(self:GetColor("Runes"..thisRuneName))
end
function Runes.prototype:GetRuneTexture(runeName)
@ -365,11 +365,13 @@ function Runes.prototype:CreateRune(i, type, name)
-- create runes
if (not self.frame.graphical[i]) then
self.frame.graphical[i] = CreateFrame("StatusBar", nil, self.frame)
self.frame.graphical[i] = CreateFrame("Frame", nil, self.frame)
self.frame.graphical[i].rune = self.frame.graphical[i]:CreateTexture(nil, "LOW")
self.frame.graphical[i].rune:SetAllPoints(self.frame.graphical[i])
self.frame.graphical[i].cd = CreateFrame("Cooldown", nil, self.frame.graphical[i], "CooldownFrameTemplate")
self.frame.graphical[i].shine = self.frame.graphical[i]:CreateTexture(nil, "OVERLAY")
self.frame.graphical[i]:SetStatusBarTexture(self:GetRuneTexture(name))
self.frame.graphical[i].rune:SetTexture(self:GetRuneTexture(name))
end
self.frame.graphical[i]:SetFrameStrata("BACKGROUND")
@ -391,7 +393,7 @@ 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]:SetStatusBarColor(self:GetColor("Runes"..name))
self.frame.graphical[i].rune:SetVertexColor(self:GetColor("Runes"..name))
self.frame.graphical[i]:Show()
self.frame.graphical[i].cd:SetFrameStrata("BACKGROUND")