mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
- un-anchored pet health/mana text values to the bottom of the frame. now that vertical offsets are available, we can use them instead of anchoring/using setpoint
- bumped up the default position of the pet mana/health values to get them out of the way of nearby bars - changed pet health/mana dogtags to display on the uppertext block instead of the lowertext block so it behaves and alphas like all other bars
This commit is contained in:
@ -24,14 +24,16 @@ function PetHealth.prototype:GetDefaultSettings()
|
|||||||
settings["side"] = IceCore.Side.Left
|
settings["side"] = IceCore.Side.Left
|
||||||
settings["offset"] = -1
|
settings["offset"] = -1
|
||||||
settings.scale = 0.7
|
settings.scale = 0.7
|
||||||
settings["upperText"] = ""
|
settings["textVerticalOffset"] = 4
|
||||||
settings["lowerText"] = "[PercentHP:Round]"
|
settings["upperText"] = "[PercentHP:Round]"
|
||||||
|
settings["lowerText"] = ""
|
||||||
|
|
||||||
return settings
|
return settings
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
-- OVERRIDE
|
-- OVERRIDE
|
||||||
|
--[[
|
||||||
function PetHealth.prototype:CreateFrame()
|
function PetHealth.prototype:CreateFrame()
|
||||||
PetHealth.super.prototype.CreateFrame(self)
|
PetHealth.super.prototype.CreateFrame(self)
|
||||||
|
|
||||||
@ -45,7 +47,7 @@ function PetHealth.prototype:CreateFrame()
|
|||||||
self.frame.bottomUpperText:ClearAllPoints()
|
self.frame.bottomUpperText:ClearAllPoints()
|
||||||
self.frame.bottomUpperText:SetPoint(point, relativeTo, relativePoint, 0, 0)
|
self.frame.bottomUpperText:SetPoint(point, relativeTo, relativePoint, 0, 0)
|
||||||
end
|
end
|
||||||
|
]]
|
||||||
|
|
||||||
function PetHealth.prototype:Enable(core)
|
function PetHealth.prototype:Enable(core)
|
||||||
PetHealth.super.prototype.Enable(self, core)
|
PetHealth.super.prototype.Enable(self, core)
|
||||||
|
@ -22,14 +22,16 @@ function PetMana.prototype:GetDefaultSettings()
|
|||||||
settings["side"] = IceCore.Side.Right
|
settings["side"] = IceCore.Side.Right
|
||||||
settings["offset"] = -1
|
settings["offset"] = -1
|
||||||
settings.scale = 0.7
|
settings.scale = 0.7
|
||||||
settings["upperText"] = ""
|
settings["textVerticalOffset"] = 4
|
||||||
settings["lowerText"] = "[PercentMP:Round]"
|
settings["upperText"] = "[PercentMP:Round]"
|
||||||
|
settings["lowerText"] = ""
|
||||||
|
|
||||||
return settings
|
return settings
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
-- OVERRIDE
|
-- OVERRIDE
|
||||||
|
--[[
|
||||||
function PetMana.prototype:CreateFrame()
|
function PetMana.prototype:CreateFrame()
|
||||||
PetMana.super.prototype.CreateFrame(self)
|
PetMana.super.prototype.CreateFrame(self)
|
||||||
|
|
||||||
@ -43,7 +45,7 @@ function PetMana.prototype:CreateFrame()
|
|||||||
self.frame.bottomUpperText:ClearAllPoints()
|
self.frame.bottomUpperText:ClearAllPoints()
|
||||||
self.frame.bottomUpperText:SetPoint(point, relativeTo, relativePoint, 0, 0)
|
self.frame.bottomUpperText:SetPoint(point, relativeTo, relativePoint, 0, 0)
|
||||||
end
|
end
|
||||||
|
]]
|
||||||
|
|
||||||
function PetMana.prototype:Enable(core)
|
function PetMana.prototype:Enable(core)
|
||||||
PetMana.super.prototype.Enable(self, core)
|
PetMana.super.prototype.Enable(self, core)
|
||||||
|
Reference in New Issue
Block a user