- Cleaner method for the warlock Shards module to retrieve the current rune mode such that switching to Demonology spec and back doesn't overwrite it. (I currently force the rune mode to 'graphical' or 'numeric' for Demonology spec since nothing else makes sense at the moment.)

This commit is contained in:
Parnic
2013-03-21 03:03:51 +00:00
parent 713b9d04bb
commit 7d6a880623
2 changed files with 23 additions and 17 deletions

View File

@ -150,14 +150,16 @@ function ShardCounter.prototype:UpdatePowerType(event)
self:UpdateRunePower()
end
function ShardCounter.prototype:SetDisplayMode()
function ShardCounter.prototype:GetRuneMode()
local CurrentRuneMode = ShardCounter.super.prototype.GetRuneMode(self)
if CurrentSpec == SPEC_WARLOCK_DEMONOLOGY then
if self.moduleSettings.runeMode ~= "Numeric" and self.moduleSettings.runeMode ~= "Graphical" then
self.moduleSettings.runeMode = "Graphical"
if CurrentRuneMode ~= "Numeric" and CurrentRuneMode ~= "Graphical" then
CurrentRuneMode = "Graphical"
end
end
ShardCounter.super.prototype.SetDisplayMode(self)
return CurrentRuneMode
end
function ShardCounter.prototype:GetOptions()