- 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:
Parnic
2010-11-05 04:35:05 +00:00
parent 4f4c892306
commit b5dd925ca4

View File

@ -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 = {}