diff --git a/modules/CastBar.lua b/modules/CastBar.lua index dee3ad1..fc3cad0 100644 --- a/modules/CastBar.lua +++ b/modules/CastBar.lua @@ -163,6 +163,7 @@ function CastBar.prototype:GetOptions() type = 'toggle', name = 'Change color when not in range', desc = 'Changes the bar color to the CastNotInRange color when the target goes out of range for the current spell.', + width = 'double', get = function() return self.moduleSettings.rangeColor end, diff --git a/modules/FocusCast.lua b/modules/FocusCast.lua index 43d4e72..0ab631b 100644 --- a/modules/FocusCast.lua +++ b/modules/FocusCast.lua @@ -22,6 +22,7 @@ function FocusCast.prototype:GetDefaultSettings() settings["flashInstants"] = "Never" settings["flashFailures"] = "Never" settings["shouldAnimate"] = false + settings["hideAnimationSettings"] = true settings["usesDogTagStrings"] = false settings["enabled"] = false settings["barVerticalOffset"] = 35 @@ -33,7 +34,7 @@ end -- OVERRIDE function FocusCast.prototype:Enable(core) FocusCast.super.prototype.Enable(self, core) - + self:RegisterEvent("PLAYER_FOCUS_CHANGED", "FocusChanged") end @@ -43,19 +44,19 @@ function FocusCast.prototype:FocusChanged(event, unit) self:StopBar() return end - + local spell = UnitCastingInfo(self.unit) if (spell) then self:StartBar(IceCastBar.Actions.Cast) return end - + local channel = UnitChannelInfo(self.unit) if (channel) then self:StartBar(IceCastBar.Actions.Channel) return end - + self:StopBar() end @@ -63,31 +64,6 @@ end function FocusCast.prototype:GetOptions() local opts = FocusCast.super.prototype.GetOptions(self) - -- Parnic - this exists solely for the console/rock config to work...animating cast bars doesn't make sense - opts["shouldAnimate"] = - { - type = 'toggle', - name = 's', - desc = 's', - set = 's', - get = 's', - hidden = function() - return true - end - } - - opts["desiredLerpTime"] = - { - type = 'toggle', - name = 'd', - desc = 'd', - set = 'd', - get = 'd', - hidden = function() - return true - end - } - opts["barVisible"] = { type = 'toggle', name = 'Bar visible', @@ -108,7 +84,7 @@ function FocusCast.prototype:GetOptions() end, order = 28 } - + opts["bgVisible"] = { type = 'toggle', name = 'Bar background visible', diff --git a/modules/FocusHealth.lua b/modules/FocusHealth.lua index 04b6882..1f1e01f 100644 --- a/modules/FocusHealth.lua +++ b/modules/FocusHealth.lua @@ -125,6 +125,7 @@ function FocusHealth.prototype:GetOptions() type = "toggle", name = "Lock raid icon to 100% alpha", desc = "With this enabled, the raid icon is always 100% alpha, regardless of the bar's alpha. Otherwise, it assumes the bar's alpha level.", + width = 'double', get = function() return self.moduleSettings.lockIconAlpha end, diff --git a/modules/TargetCast.lua b/modules/TargetCast.lua index 4dcc034..fdfe68a 100644 --- a/modules/TargetCast.lua +++ b/modules/TargetCast.lua @@ -135,6 +135,7 @@ function TargetCast.prototype:GetOptions() type = 'toggle', name = 'Display non-interruptible color', desc = 'Toggles whether or not to show the CastNonInterruptible color for this bar when a cast is non-interruptible', + width = 'double', get = function() return self.moduleSettings.displayNonInterruptible end,