mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- fixed an error when adjusting the status icon's position while it's not visible on the screen
This commit is contained in:
@ -590,7 +590,7 @@ function PlayerHealth.prototype:Resting()
|
|||||||
self.frame.statusIcon = self:DestroyTexFrame(self.frame.statusIcon)
|
self.frame.statusIcon = self:DestroyTexFrame(self.frame.statusIcon)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if not self.combat and self.frame.statusIcon then
|
if not self.combat and not configMode and self.frame.statusIcon then
|
||||||
self.frame.statusIcon = self:DestroyTexFrame(self.frame.statusIcon)
|
self.frame.statusIcon = self:DestroyTexFrame(self.frame.statusIcon)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -767,12 +767,20 @@ end
|
|||||||
|
|
||||||
|
|
||||||
function PlayerHealth.prototype:SetTexLoc(texframe, xpos, ypos, anchorFrom, anchorTo)
|
function PlayerHealth.prototype:SetTexLoc(texframe, xpos, ypos, anchorFrom, anchorTo)
|
||||||
|
if not texframe then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
texframe:ClearAllPoints()
|
texframe:ClearAllPoints()
|
||||||
texframe:SetPoint(anchorFrom and anchorFrom or "TOPLEFT", self.frame, anchorTo and anchorTo or "TOPLEFT", xpos, ypos)
|
texframe:SetPoint(anchorFrom and anchorFrom or "TOPLEFT", self.frame, anchorTo and anchorTo or "TOPLEFT", xpos, ypos)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function PlayerHealth.prototype:SetTexScale(texframe, width, height, scale)
|
function PlayerHealth.prototype:SetTexScale(texframe, width, height, scale)
|
||||||
|
if not texframe then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
texframe:SetWidth(width * scale)
|
texframe:SetWidth(width * scale)
|
||||||
texframe:SetHeight(height * scale)
|
texframe:SetHeight(height * scale)
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user