- added user-submitted ArcHUD-like textures and preset

- modified cast lag and threat pull indicators to use a custom color instead of being an alpha'd version of the background
- fixed a bug where runic power would use the "not full" aggro setting when it was empty (it should behave like rage and treat "not full" as empty)
This commit is contained in:
Parnic
2008-10-14 20:05:03 +00:00
parent a904bab61a
commit c18653cae7
7 changed files with 16 additions and 5 deletions

View File

@ -525,5 +525,13 @@ function IceCore.prototype:LoadPresets()
barBlendMode = "ADD", barBlendMode = "ADD",
barBgBlendMode = "BLEND", barBgBlendMode = "BLEND",
} }
self.presets["ArcHUD"] = {
barTexture = "ArcHUD",
barWidth = 160,
barHeight = 300,
barProportion = 0.15,
barSpace = 3,
}
end end

View File

@ -286,7 +286,7 @@ IceHUD.options =
set = function(value) set = function(value)
IceHUD.IceCore:SetBarPreset(value) IceHUD.IceCore:SetBarPreset(value)
end, end,
validate = { "Bar", "HiBar", "RoundBar", "ColorBar", "RivetBar", "RivetBar2", "CleanCurves", "GlowArc", "BloodGlaives" }, validate = { "Bar", "HiBar", "RoundBar", "ColorBar", "RivetBar", "RivetBar2", "CleanCurves", "GlowArc", "BloodGlaives", "ArcHUD" },
order = 9 order = 9
}, },
@ -308,7 +308,7 @@ IceHUD.options =
set = function(value) set = function(value)
IceHUD.IceCore:SetBarTexture(value) IceHUD.IceCore:SetBarTexture(value)
end, end,
validate = { "Bar", "HiBar", "RoundBar", "ColorBar", "RivetBar", "RivetBar2", "CleanCurves", "GlowArc", "BloodGlaives", "FangRune", "RuneBar", "RuneColor" }, validate = { "Bar", "HiBar", "RoundBar", "ColorBar", "RivetBar", "RivetBar2", "CleanCurves", "GlowArc", "BloodGlaives", "FangRune", "RuneBar", "RuneColor", "ArcHUD" },
order = 11 order = 11
}, },

View File

@ -10,6 +10,8 @@ CastBar.prototype.spellCastSent = nil
function CastBar.prototype:init() function CastBar.prototype:init()
CastBar.super.prototype.init(self, "CastBar") CastBar.super.prototype.init(self, "CastBar")
self:SetDefaultColor("CastLag", 255, 0, 0)
self.unit = "player" self.unit = "player"
end end
@ -344,7 +346,7 @@ function CastBar.prototype:CreateLagBar()
self.lagBar:SetStatusBarTexture(self.lagBar.bar) self.lagBar:SetStatusBarTexture(self.lagBar.bar)
local r, g, b = self.settings.backgroundColor.r, self.settings.backgroundColor.g, self.settings.backgroundColor.b local r, g, b = self:GetColor("CastLag")
if (self.settings.backgroundToggle) then if (self.settings.backgroundToggle) then
r, g, b = self:GetColor("CastCasting") r, g, b = self:GetColor("CastCasting")
end end

View File

@ -144,7 +144,7 @@ end
-- OVERRIDE -- OVERRIDE
function PlayerMana.prototype:UseTargetAlpha(scale) function PlayerMana.prototype:UseTargetAlpha(scale)
if (self.manaType == 1) then if (self.manaType == 1 or self.manaType == 6) then
return (scale and (scale > 0)) return (scale and (scale > 0))
else else
return PlayerMana.super.prototype.UseTargetAlpha(self, scale) return PlayerMana.super.prototype.UseTargetAlpha(self, scale)

View File

@ -22,6 +22,7 @@ function IHUD_Threat.prototype:init()
self:SetDefaultColor("ThreatHigh", 204, 0, 153) self:SetDefaultColor("ThreatHigh", 204, 0, 153)
self:SetDefaultColor("ThreatDanger", 255, 0, 0) self:SetDefaultColor("ThreatDanger", 255, 0, 0)
self:SetDefaultColor("ThreatCustom", 255, 255, 0) self:SetDefaultColor("ThreatCustom", 255, 255, 0)
self:SetDefaultColor("ThreatPullAggro", 255, 0, 0)
self:OnCoreLoad() self:OnCoreLoad()
end end
@ -126,7 +127,7 @@ function IHUD_Threat.prototype:CreateAggroBar()
self.aggroBar:SetStatusBarTexture(self.aggroBar.bar) self.aggroBar:SetStatusBarTexture(self.aggroBar.bar)
local r, g, b = self.settings.backgroundColor.r, self.settings.backgroundColor.g, self.settings.backgroundColor.b local r, g, b = self:GetColor("ThreatPullAggro")
if (self.settings.backgroundToggle) then if (self.settings.backgroundToggle) then
r, g, b = self:GetColor("CastCasting") r, g, b = self:GetColor("CastCasting")
end end

BIN
textures/ArcHUD.blp Normal file

Binary file not shown.

BIN
textures/ArcHUDBG.blp Normal file

Binary file not shown.