mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- increased maximum horizontal text offsets for all bars
- added 'force justify text' options to the player cast bar like most other bars already had
This commit is contained in:
@ -503,8 +503,8 @@ end
|
|||||||
type = 'range',
|
type = 'range',
|
||||||
name = '|c' .. self.configColor .. 'Text Horizontal Offset|r',
|
name = '|c' .. self.configColor .. 'Text Horizontal Offset|r',
|
||||||
desc = 'Offset of the text from the bar horizontally',
|
desc = 'Offset of the text from the bar horizontally',
|
||||||
min = -150,
|
min = -350,
|
||||||
max = 150,
|
max = 350,
|
||||||
step = 1,
|
step = 1,
|
||||||
get = function()
|
get = function()
|
||||||
return self.moduleSettings.textHorizontalOffset
|
return self.moduleSettings.textHorizontalOffset
|
||||||
|
@ -259,8 +259,8 @@ function CastBar.prototype:GetOptions()
|
|||||||
type = 'range',
|
type = 'range',
|
||||||
name = '|c' .. self.configColor .. 'Text Horizontal Offset|r',
|
name = '|c' .. self.configColor .. 'Text Horizontal Offset|r',
|
||||||
desc = 'Offset of the text from the bar horizontally',
|
desc = 'Offset of the text from the bar horizontally',
|
||||||
min = -50,
|
min = -350,
|
||||||
max = 50,
|
max = 350,
|
||||||
step = 1,
|
step = 1,
|
||||||
get = function()
|
get = function()
|
||||||
return self.moduleSettings.textHorizontalOffset
|
return self.moduleSettings.textHorizontalOffset
|
||||||
@ -272,6 +272,23 @@ function CastBar.prototype:GetOptions()
|
|||||||
disabled = function()
|
disabled = function()
|
||||||
return not self.moduleSettings.enabled
|
return not self.moduleSettings.enabled
|
||||||
end
|
end
|
||||||
|
},
|
||||||
|
|
||||||
|
forceJustifyText = {
|
||||||
|
type = 'text',
|
||||||
|
name = 'Force Text Justification',
|
||||||
|
desc = 'This sets the alignment for the text on this bar',
|
||||||
|
get = function()
|
||||||
|
return self.moduleSettings.forceJustifyText
|
||||||
|
end,
|
||||||
|
set = function(value)
|
||||||
|
self.moduleSettings.forceJustifyText = value
|
||||||
|
self:Redraw()
|
||||||
|
end,
|
||||||
|
validate = { NONE = "None", LEFT = "Left", RIGHT = "Right" },
|
||||||
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user