mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- fixed up a couple more modules with an empty 'animation settings' header and some too-long options that were being ellipsised (is that a word? it is now.)
This commit is contained in:
@ -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',
|
||||
|
Reference in New Issue
Block a user