mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- Fix for the alpha problem in graphical combo point display (thanks Kurathor)
- Scaling for every bar - Horizontal position adjustment for you dual screen freaks
This commit is contained in:
@ -38,6 +38,7 @@ function IceBarElement.prototype:GetDefaultSettings()
|
||||
|
||||
settings["side"] = IceCore.Side.Left
|
||||
settings["offset"] = 1
|
||||
settings["scale"] = 1
|
||||
settings["barFontSize"] = 12
|
||||
settings["lockTextAlpha"] = true
|
||||
settings["textVisible"] = {upper = true, lower = true}
|
||||
@ -99,6 +100,28 @@ function IceBarElement.prototype:GetOptions()
|
||||
order = 31
|
||||
}
|
||||
|
||||
opts["scale"] =
|
||||
{
|
||||
type = 'range',
|
||||
name = '|c' .. self.configColor .. 'Scale|r',
|
||||
desc = 'Scale of the bar',
|
||||
min = 0.1,
|
||||
max = 2,
|
||||
step = 0.05,
|
||||
isPercent = true,
|
||||
get = function()
|
||||
return self.moduleSettings.scale
|
||||
end,
|
||||
set = function(value)
|
||||
self.moduleSettings.scale = value
|
||||
self:Redraw()
|
||||
end,
|
||||
disabled = function()
|
||||
return not self.moduleSettings.enabled
|
||||
end,
|
||||
order = 32
|
||||
}
|
||||
|
||||
opts["textSettings"] =
|
||||
{
|
||||
type = 'group',
|
||||
|
Reference in New Issue
Block a user