mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
Added names for "main" frames
This commit is contained in:
@ -7,7 +7,7 @@ IceBarElement.BackgroundAlpha = 0.25
|
|||||||
|
|
||||||
IceBarElement.TexturePath = IceHUD.Location .. "\\textures\\"
|
IceBarElement.TexturePath = IceHUD.Location .. "\\textures\\"
|
||||||
IceBarElement.BackgroundTexture = IceHUD.Location .. "\\textures\\HiBarBG"
|
IceBarElement.BackgroundTexture = IceHUD.Location .. "\\textures\\HiBarBG"
|
||||||
IceBarElement.BarProportion = 0.35
|
IceBarElement.BarProportion = 0.36
|
||||||
IceBarElement.BarTextureWidth = 128
|
IceBarElement.BarTextureWidth = 128
|
||||||
|
|
||||||
IceBarElement.prototype.barFrame = nil
|
IceBarElement.prototype.barFrame = nil
|
||||||
@ -129,7 +129,7 @@ end
|
|||||||
-- Creates background for the bar
|
-- Creates background for the bar
|
||||||
function IceBarElement.prototype:CreateBackground()
|
function IceBarElement.prototype:CreateBackground()
|
||||||
if not (self.frame) then
|
if not (self.frame) then
|
||||||
self.frame = CreateFrame("StatusBar", nil, self.parent)
|
self.frame = CreateFrame("StatusBar", "IceHUD_"..self.name, self.parent)
|
||||||
end
|
end
|
||||||
|
|
||||||
self.frame:SetFrameStrata("BACKGROUND")
|
self.frame:SetFrameStrata("BACKGROUND")
|
||||||
|
@ -125,7 +125,7 @@ end
|
|||||||
-- This should be overwritten by inheriting classes
|
-- This should be overwritten by inheriting classes
|
||||||
function IceElement.prototype:CreateFrame()
|
function IceElement.prototype:CreateFrame()
|
||||||
if not (self.frame) then
|
if not (self.frame) then
|
||||||
self.frame = CreateFrame("Frame", nil, self.parent)
|
self.frame = CreateFrame("Frame", "IceHUD_"..self.name, self.parent)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -131,6 +131,9 @@ function TargetHealth.prototype:MobHealth(event)
|
|||||||
|
|
||||||
-- we are getting valid values from the server, no need for MobHealth2
|
-- we are getting valid values from the server, no need for MobHealth2
|
||||||
if (self.maxHealth ~= 100) then
|
if (self.maxHealth ~= 100) then
|
||||||
|
self.mobHealth = nil
|
||||||
|
self.mobMaxHealth = nil
|
||||||
|
self:UpdateHealthText(false)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user