mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- fixed markers not updating when a bar's inverse mode is changed
- fixed markers not rotating with a bar when the rotation option is set at runtime
This commit is contained in:
@ -525,6 +525,7 @@ do
|
||||
else
|
||||
self:ResetRotation()
|
||||
end
|
||||
self:Redraw()
|
||||
end,
|
||||
disabled = function()
|
||||
return not self:IsEnabled()
|
||||
@ -914,6 +915,8 @@ function IceBarElement.prototype:Redraw()
|
||||
self:CreateFrame()
|
||||
|
||||
self.frame:SetAlpha(self.alpha)
|
||||
|
||||
self:RepositionMarkers()
|
||||
end
|
||||
|
||||
|
||||
@ -1468,6 +1471,12 @@ function IceBarElement.prototype:NotifyBarOverrideChanged()
|
||||
end
|
||||
end
|
||||
|
||||
function IceBarElement.prototype:RepositionMarkers()
|
||||
for idx=1,#self.Markers do
|
||||
self:PositionMarker(idx, self.moduleSettings.markers[idx].position)
|
||||
end
|
||||
end
|
||||
|
||||
function IceBarElement.prototype:AddNewMarker(inPosition, inColor, inHeight)
|
||||
if not self.moduleSettings.markers then
|
||||
self.moduleSettings.markers = {}
|
||||
|
Reference in New Issue
Block a user