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
|
else
|
||||||
self:ResetRotation()
|
self:ResetRotation()
|
||||||
end
|
end
|
||||||
|
self:Redraw()
|
||||||
end,
|
end,
|
||||||
disabled = function()
|
disabled = function()
|
||||||
return not self:IsEnabled()
|
return not self:IsEnabled()
|
||||||
@ -914,6 +915,8 @@ function IceBarElement.prototype:Redraw()
|
|||||||
self:CreateFrame()
|
self:CreateFrame()
|
||||||
|
|
||||||
self.frame:SetAlpha(self.alpha)
|
self.frame:SetAlpha(self.alpha)
|
||||||
|
|
||||||
|
self:RepositionMarkers()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -1468,6 +1471,12 @@ function IceBarElement.prototype:NotifyBarOverrideChanged()
|
|||||||
end
|
end
|
||||||
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)
|
function IceBarElement.prototype:AddNewMarker(inPosition, inColor, inHeight)
|
||||||
if not self.moduleSettings.markers then
|
if not self.moduleSettings.markers then
|
||||||
self.moduleSettings.markers = {}
|
self.moduleSettings.markers = {}
|
||||||
|
Reference in New Issue
Block a user