mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- converted most of the mod to ace3. the only ace2 remaining is AceEvent-2 (probably easy to get away from) and AceOO-2 (not so easy)
- the ace3 conversion also broke the dependence on Waterfall and gave a much better configuration screen through AceConfigDialog; plus Waterfall is very broken in Cataclysm and it's unclear whether anyone will bother to fix it or not - fixed a bug with the custom CD bar when changing profiles where it would generate endless errors until a reloadui - removed DewDrop library as it was no longer in use - temporarily removed FuBar plugin as it doesn't work as a mixin with AceAddon-3. i will eventually be bringing this back in some form (before the next full release version) - removed an unused 'about' button on the config page and some empty headers...not sure why they were ever there
This commit is contained in:
@ -43,16 +43,16 @@ function CastBar.prototype:GetOptions()
|
||||
|
||||
opts["flashInstants"] =
|
||||
{
|
||||
type = 'text',
|
||||
type = 'select',
|
||||
name = "Flash Instant Spells",
|
||||
desc = "Defines when cast bar should flash on instant spells",
|
||||
get = function()
|
||||
return self.moduleSettings.flashInstants
|
||||
get = function(info)
|
||||
return IceHUD:GetSelectValue(info, self.moduleSettings.flashInstants)
|
||||
end,
|
||||
set = function(value)
|
||||
self.moduleSettings.flashInstants = value
|
||||
set = function(info, value)
|
||||
self.moduleSettings.flashInstants = info.option.values[value]
|
||||
end,
|
||||
validate = { "Always", "Caster", "Never" },
|
||||
values = { "Always", "Caster", "Never" },
|
||||
disabled = function()
|
||||
return not self.moduleSettings.enabled
|
||||
end,
|
||||
@ -61,19 +61,19 @@ function CastBar.prototype:GetOptions()
|
||||
|
||||
opts["flashFailures"] =
|
||||
{
|
||||
type = "text",
|
||||
type = 'select',
|
||||
name = "Flash on Spell Failures",
|
||||
desc = "Defines when cast bar should flash on failed spells",
|
||||
get = function()
|
||||
return self.moduleSettings.flashFailures
|
||||
get = function(info)
|
||||
return IceHUD:GetSelectValue(info, self.moduleSettings.flashFailures)
|
||||
end,
|
||||
set = function(value)
|
||||
self.moduleSettings.flashFailures = value
|
||||
set = function(info, value)
|
||||
self.moduleSettings.flashFailures = info.option.values[value]
|
||||
end,
|
||||
disabled = function()
|
||||
return not self.moduleSettings.enabled
|
||||
end,
|
||||
validate = { "Always", "Caster", "Never" },
|
||||
values = { "Always", "Caster", "Never" },
|
||||
order = 41
|
||||
}
|
||||
|
||||
@ -88,7 +88,7 @@ function CastBar.prototype:GetOptions()
|
||||
get = function()
|
||||
return self.moduleSettings.lagAlpha
|
||||
end,
|
||||
set = function(value)
|
||||
set = function(info, value)
|
||||
self.moduleSettings.lagAlpha = value
|
||||
self:Redraw()
|
||||
end,
|
||||
@ -106,7 +106,7 @@ function CastBar.prototype:GetOptions()
|
||||
get = function()
|
||||
return self.moduleSettings.showBlizzCast
|
||||
end,
|
||||
set = function(value)
|
||||
set = function(info, value)
|
||||
self.moduleSettings.showBlizzCast = value
|
||||
self:ToggleBlizzCast(self.moduleSettings.showBlizzCast)
|
||||
end,
|
||||
@ -148,7 +148,7 @@ function CastBar.prototype:GetOptions()
|
||||
get = function()
|
||||
return self.moduleSettings.barVisible['bar']
|
||||
end,
|
||||
set = function(v)
|
||||
set = function(info, v)
|
||||
self.moduleSettings.barVisible['bar'] = v
|
||||
if v then
|
||||
self.barFrame:Show()
|
||||
@ -169,7 +169,7 @@ function CastBar.prototype:GetOptions()
|
||||
get = function()
|
||||
return self.moduleSettings.barVisible['bg']
|
||||
end,
|
||||
set = function(v)
|
||||
set = function(info, v)
|
||||
self.moduleSettings.barVisible['bg'] = v
|
||||
if v then
|
||||
self.frame.bg:Show()
|
||||
@ -190,7 +190,7 @@ function CastBar.prototype:GetOptions()
|
||||
get = function()
|
||||
return self.moduleSettings.rangeColor
|
||||
end,
|
||||
set = function(v)
|
||||
set = function(info, v)
|
||||
self.moduleSettings.rangeColor = v
|
||||
end,
|
||||
disabled = function()
|
||||
@ -216,7 +216,7 @@ function CastBar.prototype:GetOptions()
|
||||
get = function()
|
||||
return self.moduleSettings.barFontSize
|
||||
end,
|
||||
set = function(v)
|
||||
set = function(info, v)
|
||||
self.moduleSettings.barFontSize = v
|
||||
self:Redraw()
|
||||
end,
|
||||
@ -233,7 +233,7 @@ function CastBar.prototype:GetOptions()
|
||||
get = function()
|
||||
return self.moduleSettings.lockUpperTextAlpha
|
||||
end,
|
||||
set = function(v)
|
||||
set = function(info, v)
|
||||
self.moduleSettings.lockUpperTextAlpha = v
|
||||
self:Redraw()
|
||||
end,
|
||||
@ -247,7 +247,7 @@ function CastBar.prototype:GetOptions()
|
||||
get = function()
|
||||
return self.moduleSettings.textVisible['upper']
|
||||
end,
|
||||
set = function(v)
|
||||
set = function(info, v)
|
||||
self.moduleSettings.textVisible['upper'] = v
|
||||
self:Redraw()
|
||||
end,
|
||||
@ -264,7 +264,7 @@ function CastBar.prototype:GetOptions()
|
||||
get = function()
|
||||
return self.moduleSettings.textVerticalOffset
|
||||
end,
|
||||
set = function(v)
|
||||
set = function(info, v)
|
||||
self.moduleSettings.textVerticalOffset = v
|
||||
self:Redraw()
|
||||
end,
|
||||
@ -283,7 +283,7 @@ function CastBar.prototype:GetOptions()
|
||||
get = function()
|
||||
return self.moduleSettings.textHorizontalOffset
|
||||
end,
|
||||
set = function(v)
|
||||
set = function(info, v)
|
||||
self.moduleSettings.textHorizontalOffset = v
|
||||
self:Redraw()
|
||||
end,
|
||||
@ -293,17 +293,17 @@ function CastBar.prototype:GetOptions()
|
||||
},
|
||||
|
||||
forceJustifyText = {
|
||||
type = 'text',
|
||||
type = 'select',
|
||||
name = 'Force Text Justification',
|
||||
desc = 'This sets the alignment for the text on this bar',
|
||||
get = function()
|
||||
return self.moduleSettings.forceJustifyText
|
||||
end,
|
||||
set = function(value)
|
||||
set = function(info, value)
|
||||
self.moduleSettings.forceJustifyText = value
|
||||
self:Redraw()
|
||||
end,
|
||||
validate = { NONE = "None", LEFT = "Left", RIGHT = "Right" },
|
||||
values = { NONE = "None", LEFT = "Left", RIGHT = "Right" },
|
||||
disabled = function()
|
||||
return not self.moduleSettings.enabled
|
||||
end,
|
||||
|
Reference in New Issue
Block a user