mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- moved text alignment options into the "text settings" options subset...durr
This commit is contained in:
@ -131,46 +131,6 @@ function IceBarElement.prototype:GetOptions()
|
|||||||
order = 32
|
order = 32
|
||||||
}
|
}
|
||||||
|
|
||||||
opts["textVerticalOffset"] =
|
|
||||||
{
|
|
||||||
type = 'range',
|
|
||||||
name = '|c' .. self.configColor .. 'Text Vertical Offset|r',
|
|
||||||
desc = 'Offset of the text from the bar vertically (negative is farther below)',
|
|
||||||
min = -250,
|
|
||||||
max = 350,
|
|
||||||
step = 1,
|
|
||||||
get = function()
|
|
||||||
return self.moduleSettings.textVerticalOffset
|
|
||||||
end,
|
|
||||||
set = function(v)
|
|
||||||
self.moduleSettings.textVerticalOffset = v
|
|
||||||
self:Redraw()
|
|
||||||
end,
|
|
||||||
disabled = function()
|
|
||||||
return not self.moduleSettings.enabled
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
opts["textHorizontalOffset"] =
|
|
||||||
{
|
|
||||||
type = 'range',
|
|
||||||
name = '|c' .. self.configColor .. 'Text Horizontal Offset|r',
|
|
||||||
desc = 'Offset of the text from the bar horizontally',
|
|
||||||
min = -50,
|
|
||||||
max = 50,
|
|
||||||
step = 1,
|
|
||||||
get = function()
|
|
||||||
return self.moduleSettings.textHorizontalOffset
|
|
||||||
end,
|
|
||||||
set = function(v)
|
|
||||||
self.moduleSettings.textHorizontalOffset = v
|
|
||||||
self:Redraw()
|
|
||||||
end,
|
|
||||||
disabled = function()
|
|
||||||
return not self.moduleSettings.enabled
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
opts["textSettings"] =
|
opts["textSettings"] =
|
||||||
{
|
{
|
||||||
type = 'group',
|
type = 'group',
|
||||||
@ -278,6 +238,44 @@ function IceBarElement.prototype:GetOptions()
|
|||||||
self.moduleSettings.lowerText = v
|
self.moduleSettings.lowerText = v
|
||||||
self:Redraw()
|
self:Redraw()
|
||||||
end,
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
|
textVerticalOffset = {
|
||||||
|
type = 'range',
|
||||||
|
name = '|c' .. self.configColor .. 'Text Vertical Offset|r',
|
||||||
|
desc = 'Offset of the text from the bar vertically (negative is farther below)',
|
||||||
|
min = -250,
|
||||||
|
max = 350,
|
||||||
|
step = 1,
|
||||||
|
get = function()
|
||||||
|
return self.moduleSettings.textVerticalOffset
|
||||||
|
end,
|
||||||
|
set = function(v)
|
||||||
|
self.moduleSettings.textVerticalOffset = v
|
||||||
|
self:Redraw()
|
||||||
|
end,
|
||||||
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end
|
||||||
|
},
|
||||||
|
|
||||||
|
textHorizontalOffset = {
|
||||||
|
type = 'range',
|
||||||
|
name = '|c' .. self.configColor .. 'Text Horizontal Offset|r',
|
||||||
|
desc = 'Offset of the text from the bar horizontally',
|
||||||
|
min = -50,
|
||||||
|
max = 50,
|
||||||
|
step = 1,
|
||||||
|
get = function()
|
||||||
|
return self.moduleSettings.textHorizontalOffset
|
||||||
|
end,
|
||||||
|
set = function(v)
|
||||||
|
self.moduleSettings.textHorizontalOffset = v
|
||||||
|
self:Redraw()
|
||||||
|
end,
|
||||||
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user