mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- did minor options table cleanup and made a console /icehudcl command so that IceHUD gets picked up by rock config
This commit is contained in:
@ -159,6 +159,7 @@ function IceBarElement.prototype:GetOptions()
|
|||||||
{
|
{
|
||||||
type = 'range',
|
type = 'range',
|
||||||
name = '|c' .. self.configColor .. 'Animation Duration|r',
|
name = '|c' .. self.configColor .. 'Animation Duration|r',
|
||||||
|
desc = 'How long the animation should take to play',
|
||||||
min = 0,
|
min = 0,
|
||||||
max = 2,
|
max = 2,
|
||||||
step = 0.05,
|
step = 0.05,
|
||||||
@ -260,6 +261,7 @@ function IceBarElement.prototype:GetOptions()
|
|||||||
self.moduleSettings.upperText = v
|
self.moduleSettings.upperText = v
|
||||||
self:Redraw()
|
self:Redraw()
|
||||||
end,
|
end,
|
||||||
|
usage = "<upper text to display>"
|
||||||
},
|
},
|
||||||
|
|
||||||
lowerTextString = {
|
lowerTextString = {
|
||||||
@ -280,6 +282,7 @@ function IceBarElement.prototype:GetOptions()
|
|||||||
self.moduleSettings.lowerText = v
|
self.moduleSettings.lowerText = v
|
||||||
self:Redraw()
|
self:Redraw()
|
||||||
end,
|
end,
|
||||||
|
usage = "<lower text to display>"
|
||||||
},
|
},
|
||||||
|
|
||||||
textVerticalOffset = {
|
textVerticalOffset = {
|
||||||
|
@ -7,6 +7,8 @@ IceHUD.Location = "Interface\\AddOns\\IceHUD"
|
|||||||
IceHUD.options =
|
IceHUD.options =
|
||||||
{
|
{
|
||||||
type = 'group',
|
type = 'group',
|
||||||
|
name = "IceHUD",
|
||||||
|
desc = "IceHUD",
|
||||||
args =
|
args =
|
||||||
{
|
{
|
||||||
headerGeneral = {
|
headerGeneral = {
|
||||||
@ -497,7 +499,10 @@ function IceHUD:OnEnable()
|
|||||||
self.options.args.colors.args = self.IceCore:GetColorOptions()
|
self.options.args.colors.args = self.IceCore:GetColorOptions()
|
||||||
|
|
||||||
waterfall:Register("IceHUD", 'aceOptions', IceHUD.options)
|
waterfall:Register("IceHUD", 'aceOptions', IceHUD.options)
|
||||||
|
|
||||||
|
-- Parnic - added /icehudcl to make rock config pick this up
|
||||||
|
self:RegisterChatCommand({"/icehudcl"}, IceHUD.options)
|
||||||
self:RegisterChatCommand({ "/icehud" }, IceHUD.slashMenu)
|
self:RegisterChatCommand({ "/icehud" }, IceHUD.slashMenu)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -110,12 +110,22 @@ function CastBar.prototype:GetOptions()
|
|||||||
order = 43
|
order = 43
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Parnic - this exists solely for the console/rock config to work...animating cast bars doesn't make sense
|
||||||
opts["shouldAnimate"] =
|
opts["shouldAnimate"] =
|
||||||
{
|
{
|
||||||
}
|
type = 'toggle',
|
||||||
|
name = '|c' .. self.configColor .. 'Animate amount changes|r',
|
||||||
opts["desiredLerpTime"] =
|
desc = 'Whether or not to animate the bar falloffs/gains',
|
||||||
{
|
get = function()
|
||||||
|
return self.moduleSettings.shouldAnimate
|
||||||
|
end,
|
||||||
|
set = function(value)
|
||||||
|
self.moduleSettings.shouldAnimate = value
|
||||||
|
self:Redraw()
|
||||||
|
end,
|
||||||
|
disabled = function()
|
||||||
|
return true
|
||||||
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
opts["textSettings"] =
|
opts["textSettings"] =
|
||||||
|
@ -56,12 +56,22 @@ end
|
|||||||
function TargetCast.prototype:GetOptions()
|
function TargetCast.prototype:GetOptions()
|
||||||
local opts = TargetCast.super.prototype.GetOptions(self)
|
local opts = TargetCast.super.prototype.GetOptions(self)
|
||||||
|
|
||||||
|
-- Parnic - this exists solely for the console/rock config to work...animating cast bars doesn't make sense
|
||||||
opts["shouldAnimate"] =
|
opts["shouldAnimate"] =
|
||||||
{
|
{
|
||||||
}
|
type = 'toggle',
|
||||||
|
name = '|c' .. self.configColor .. 'Animate amount changes|r',
|
||||||
opts["desiredLerpTime"] =
|
desc = 'Whether or not to animate the bar falloffs/gains',
|
||||||
{
|
get = function()
|
||||||
|
return self.moduleSettings.shouldAnimate
|
||||||
|
end,
|
||||||
|
set = function(value)
|
||||||
|
self.moduleSettings.shouldAnimate = value
|
||||||
|
self:Redraw()
|
||||||
|
end,
|
||||||
|
disabled = function()
|
||||||
|
return true
|
||||||
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
return opts
|
return opts
|
||||||
|
Reference in New Issue
Block a user