mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
- added a header to the properties that are specific to the custom bar so that the options are easier to parse visually
- grouped all custom bar settings together so they're easier to see - made sure that custom bar settings are disabled when the module is disabled
This commit is contained in:
@ -78,6 +78,12 @@ function IceCustomBar.prototype:GetOptions()
|
|||||||
opts.shouldAnimate.hidden = true
|
opts.shouldAnimate.hidden = true
|
||||||
opts.desiredLerpTime.hidden = true
|
opts.desiredLerpTime.hidden = true
|
||||||
|
|
||||||
|
opts["customHeader"] = {
|
||||||
|
type = 'header',
|
||||||
|
name = "Custom bar settings",
|
||||||
|
order = 20.1,
|
||||||
|
}
|
||||||
|
|
||||||
opts["deleteme"] = {
|
opts["deleteme"] = {
|
||||||
type = 'execute',
|
type = 'execute',
|
||||||
name = 'Delete me',
|
name = 'Delete me',
|
||||||
@ -88,7 +94,7 @@ function IceCustomBar.prototype:GetOptions()
|
|||||||
dialog.data = self
|
dialog.data = self
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
order = 20.1
|
order = 20.2,
|
||||||
}
|
}
|
||||||
|
|
||||||
opts["name"] = {
|
opts["name"] = {
|
||||||
@ -101,7 +107,10 @@ function IceCustomBar.prototype:GetOptions()
|
|||||||
set = function(v)
|
set = function(v)
|
||||||
IceHUD.IceCore:RenameDynamicModule(self, v)
|
IceHUD.IceCore:RenameDynamicModule(self, v)
|
||||||
end,
|
end,
|
||||||
order = 20.2
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
|
order = 20.3,
|
||||||
}
|
}
|
||||||
|
|
||||||
opts["unitToTrack"] = {
|
opts["unitToTrack"] = {
|
||||||
@ -117,7 +126,10 @@ function IceCustomBar.prototype:GetOptions()
|
|||||||
self.unit = v
|
self.unit = v
|
||||||
self:Redraw()
|
self:Redraw()
|
||||||
end,
|
end,
|
||||||
order = 40
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
|
order = 20.4,
|
||||||
}
|
}
|
||||||
|
|
||||||
opts["buffOrDebuff"] = {
|
opts["buffOrDebuff"] = {
|
||||||
@ -132,7 +144,10 @@ function IceCustomBar.prototype:GetOptions()
|
|||||||
self.moduleSettings.buffOrDebuff = v
|
self.moduleSettings.buffOrDebuff = v
|
||||||
self:Redraw()
|
self:Redraw()
|
||||||
end,
|
end,
|
||||||
order = 41,
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
|
order = 20.5,
|
||||||
}
|
}
|
||||||
|
|
||||||
opts["buffToTrack"] = {
|
opts["buffToTrack"] = {
|
||||||
@ -149,7 +164,10 @@ function IceCustomBar.prototype:GetOptions()
|
|||||||
self.moduleSettings.buffToTrack = v
|
self.moduleSettings.buffToTrack = v
|
||||||
self:Redraw()
|
self:Redraw()
|
||||||
end,
|
end,
|
||||||
order = 42,
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
|
order = 20.6,
|
||||||
}
|
}
|
||||||
|
|
||||||
opts["trackOnlyMine"] = {
|
opts["trackOnlyMine"] = {
|
||||||
@ -163,7 +181,10 @@ function IceCustomBar.prototype:GetOptions()
|
|||||||
self.moduleSettings.trackOnlyMine = v
|
self.moduleSettings.trackOnlyMine = v
|
||||||
self:Redraw()
|
self:Redraw()
|
||||||
end,
|
end,
|
||||||
order = 43
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
|
order = 20.7,
|
||||||
}
|
}
|
||||||
|
|
||||||
opts["barColor"] = {
|
opts["barColor"] = {
|
||||||
@ -179,7 +200,10 @@ function IceCustomBar.prototype:GetOptions()
|
|||||||
self.moduleSettings.barColor.b = b
|
self.moduleSettings.barColor.b = b
|
||||||
self.barFrame:SetStatusBarColor(self:GetBarColor())
|
self.barFrame:SetStatusBarColor(self:GetBarColor())
|
||||||
end,
|
end,
|
||||||
order = 44,
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
|
order = 20.8,
|
||||||
}
|
}
|
||||||
|
|
||||||
return opts
|
return opts
|
||||||
|
Reference in New Issue
Block a user