mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- 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:
@ -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()
|
||||
|
Reference in New Issue
Block a user