- made lacerate and sunder modules show up in configuration mode

- added an extremely untested MaelstromCount module based off the other Count modules. I do not have a shaman with maelstrom to test this with, but I did confirm that it at least doesn't throw any errors ;)
- set lacerate default vertical position such that it is out of the way of the combo points module instead of on top of it
- fixed a bug where "graphical glow" and "graphical clean" presets did not work on lacerate and sunder count modules
This commit is contained in:
Parnic
2008-10-20 05:39:35 +00:00
parent 6786fba204
commit 5cfc082a28
5 changed files with 304 additions and 14 deletions

View File

@ -104,7 +104,7 @@ end
-- OVERRIDE
function LacerateCount.prototype:GetDefaultSettings()
local defaults = LacerateCount.super.prototype.GetDefaultSettings(self)
defaults["vpos"] = 0
defaults["vpos"] = -20
defaults["lacerateFontSize"] = 20
defaults["lacerateMode"] = "Numeric"
defaults["gradient"] = false
@ -159,7 +159,6 @@ end
function LacerateCount.prototype:CreateLacerateFrame(doTextureUpdate)
-- create numeric lacerates
self.frame.numeric = self:FontFactory(self.moduleSettings.lacerateFontSize, nil, self.frame.numeric)
@ -185,9 +184,9 @@ function LacerateCount.prototype:CreateLacerateFrame(doTextureUpdate)
self.frame.graphicalBG[i]:SetStatusBarTexture(IceElement.TexturePath .. "ComboBG")
elseif self.moduleSettings.lacerateMode == "Graphical Circle" then
self.frame.graphicalBG[i]:SetStatusBarTexture(IceElement.TexturePath .. "ComboRoundBG")
elseif self.moduleSettings.comboMode == "Graphical Glow" then
elseif self.moduleSettings.lacerateMode == "Graphical Glow" then
self.frame.graphicalBG[i]:SetStatusBarTexture(IceElement.TexturePath .. "ComboGlowBG")
elseif self.moduleSettings.comboMode == "Graphical Clean Circle" then
elseif self.moduleSettings.lacerateMode == "Graphical Clean Circle" then
self.frame.graphicalBG[i]:SetStatusBarTexture(IceElement.TexturePath .. "ComboCleanCurvesBG")
end
end
@ -213,9 +212,9 @@ function LacerateCount.prototype:CreateLacerateFrame(doTextureUpdate)
self.frame.graphical[i]:SetStatusBarTexture(IceElement.TexturePath .. "Combo")
elseif self.moduleSettings.lacerateMode == "Graphical Circle" then
self.frame.graphical[i]:SetStatusBarTexture(IceElement.TexturePath .. "ComboRound")
elseif self.moduleSettings.comboMode == "Graphical Glow" then
elseif self.moduleSettings.lacerateMode == "Graphical Glow" then
self.frame.graphical[i]:SetStatusBarTexture(IceElement.TexturePath .. "ComboGlow")
elseif self.moduleSettings.comboMode == "Graphical Clean Circle" then
elseif self.moduleSettings.lacerateMode == "Graphical Clean Circle" then
self.frame.graphical[i]:SetStatusBarTexture(IceElement.TexturePath .. "ComboCleanCurves")
end
end
@ -235,7 +234,12 @@ end
function LacerateCount.prototype:UpdateLacerateCount()
local points = IceHUD:GetDebuffCount("target", "Ability_Druid_Lacerate", true)
local points
if IceHUD.IceCore:IsInConfigMode() then
points = 5
else
points = IceHUD:GetDebuffCount("target", "Ability_Druid_Lacerate", true)
end
if (points == 0) then
points = nil