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',
|
||||
name = '|c' .. self.configColor .. 'Animation Duration|r',
|
||||
desc = 'How long the animation should take to play',
|
||||
min = 0,
|
||||
max = 2,
|
||||
step = 0.05,
|
||||
@ -260,6 +261,7 @@ function IceBarElement.prototype:GetOptions()
|
||||
self.moduleSettings.upperText = v
|
||||
self:Redraw()
|
||||
end,
|
||||
usage = "<upper text to display>"
|
||||
},
|
||||
|
||||
lowerTextString = {
|
||||
@ -280,6 +282,7 @@ function IceBarElement.prototype:GetOptions()
|
||||
self.moduleSettings.lowerText = v
|
||||
self:Redraw()
|
||||
end,
|
||||
usage = "<lower text to display>"
|
||||
},
|
||||
|
||||
textVerticalOffset = {
|
||||
|
@ -7,6 +7,8 @@ IceHUD.Location = "Interface\\AddOns\\IceHUD"
|
||||
IceHUD.options =
|
||||
{
|
||||
type = 'group',
|
||||
name = "IceHUD",
|
||||
desc = "IceHUD",
|
||||
args =
|
||||
{
|
||||
headerGeneral = {
|
||||
@ -498,6 +500,9 @@ function IceHUD:OnEnable()
|
||||
|
||||
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)
|
||||
end
|
||||
|
||||
|
||||
|
@ -110,12 +110,22 @@ function CastBar.prototype:GetOptions()
|
||||
order = 43
|
||||
}
|
||||
|
||||
-- Parnic - this exists solely for the console/rock config to work...animating cast bars doesn't make sense
|
||||
opts["shouldAnimate"] =
|
||||
{
|
||||
}
|
||||
|
||||
opts["desiredLerpTime"] =
|
||||
{
|
||||
type = 'toggle',
|
||||
name = '|c' .. self.configColor .. 'Animate amount changes|r',
|
||||
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"] =
|
||||
|
@ -56,12 +56,22 @@ end
|
||||
function TargetCast.prototype:GetOptions()
|
||||
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["desiredLerpTime"] =
|
||||
{
|
||||
type = 'toggle',
|
||||
name = '|c' .. self.configColor .. 'Animate amount changes|r',
|
||||
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
|
||||
|
Reference in New Issue
Block a user