mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
a201aa5149 | |||
34d3060df3 | |||
9e7b34d43c | |||
2d4d32fa1f |
@ -413,30 +413,30 @@ end
|
||||
-- NORMAL SPELLS --
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
function IceCastBar.prototype:SpellCastSent(event, unit, spell, rank, target)
|
||||
function IceCastBar.prototype:SpellCastSent(event, unit, spell, rank, target, lineId)
|
||||
if (unit ~= self.unit) then return end
|
||||
IceHUD:Debug("SpellCastSent", unit, spell, rank, target)
|
||||
IceHUD:Debug("SpellCastSent", unit, spell, rank, target, lineId)
|
||||
end
|
||||
|
||||
function IceCastBar.prototype:SpellCastChanged(event, arg1)
|
||||
IceHUD:Debug("SpellCastChanged", arg1)
|
||||
end
|
||||
|
||||
function IceCastBar.prototype:SpellCastStart(event, unit, spell, rank)
|
||||
function IceCastBar.prototype:SpellCastStart(event, unit, spell, rank, lineId, spellId)
|
||||
if (unit ~= self.unit) then return end
|
||||
IceHUD:Debug("SpellCastStart", unit, spell, rank)
|
||||
IceHUD:Debug("SpellCastStart", unit, spell, rank, lineId, spellId)
|
||||
--UnitCastingInfo(unit)
|
||||
|
||||
self:StartBar(IceCastBar.Actions.Cast)
|
||||
self.current = spell
|
||||
self.current = lineId
|
||||
end
|
||||
|
||||
function IceCastBar.prototype:SpellCastStop(event, unit, spell, rank)
|
||||
function IceCastBar.prototype:SpellCastStop(event, unit, spell, rank, lineId, spellId)
|
||||
if (unit ~= self.unit) then return end
|
||||
IceHUD:Debug("SpellCastStop", unit, spell, self.current)
|
||||
IceHUD:Debug("SpellCastStop", unit, spell, self.current, rank, lineId, spellId)
|
||||
|
||||
-- ignore if not coming from current spell
|
||||
if (self.current and spell and self.current ~= spell) then
|
||||
if (self.current and lineId and self.current ~= lineId) then
|
||||
return
|
||||
end
|
||||
|
||||
@ -450,12 +450,12 @@ function IceCastBar.prototype:SpellCastStop(event, unit, spell, rank)
|
||||
end
|
||||
|
||||
|
||||
function IceCastBar.prototype:SpellCastFailed(event, unit, spell, rank)
|
||||
function IceCastBar.prototype:SpellCastFailed(event, unit, spell, rank, lineId, spellId)
|
||||
if (unit ~= self.unit) then return end
|
||||
IceHUD:Debug("SpellCastFailed", unit, self.current)
|
||||
IceHUD:Debug("SpellCastFailed", unit, self.current, lineId, spellId)
|
||||
|
||||
-- ignore if not coming from current spell
|
||||
if (self.current and spell and self.current ~= spell) then
|
||||
if (self.current and lineId and self.current ~= lineId) then
|
||||
return
|
||||
end
|
||||
|
||||
@ -478,12 +478,12 @@ function IceCastBar.prototype:SpellCastFailed(event, unit, spell, rank)
|
||||
self:StartBar(IceCastBar.Actions.Failure, "Failed")
|
||||
end
|
||||
|
||||
function IceCastBar.prototype:SpellCastInterrupted(event, unit, spell, rank)
|
||||
function IceCastBar.prototype:SpellCastInterrupted(event, unit, spell, rank, lineId, spellId)
|
||||
if (unit ~= self.unit) then return end
|
||||
IceHUD:Debug("SpellCastInterrupted", unit, self.current)
|
||||
IceHUD:Debug("SpellCastInterrupted", unit, self.current, lineId, spellId)
|
||||
|
||||
-- ignore if not coming from current spell
|
||||
if (self.current and spell and self.current ~= spell) then
|
||||
if (self.current and lineId and self.current ~= lineId) then
|
||||
return
|
||||
end
|
||||
|
||||
@ -505,7 +505,7 @@ function IceCastBar.prototype:SpellCastDelayed(event, unit, delay)
|
||||
end
|
||||
|
||||
|
||||
function IceCastBar.prototype:SpellCastSucceeded(event, unit, spell, rank)
|
||||
function IceCastBar.prototype:SpellCastSucceeded(event, unit, spell, rank, lineId, spellId)
|
||||
if (unit ~= self.unit) then return end
|
||||
--IceHUD:Debug("SpellCastSucceeded", unit, spell, rank)
|
||||
|
||||
@ -515,7 +515,7 @@ function IceCastBar.prototype:SpellCastSucceeded(event, unit, spell, rank)
|
||||
end
|
||||
|
||||
-- ignore if not coming from current spell
|
||||
if (self.current and self.current ~= spell) then
|
||||
if (self.current and self.current ~= lineId) then
|
||||
return
|
||||
end
|
||||
|
||||
|
@ -404,14 +404,14 @@ end
|
||||
|
||||
|
||||
-- OVERRIDE
|
||||
function CastBar.prototype:SpellCastSent(event, unit, spell, rank, target)
|
||||
CastBar.super.prototype.SpellCastSent(self, event, unit, spell, rank, target)
|
||||
function CastBar.prototype:SpellCastSent(event, unit, spell, rank, target, lineId)
|
||||
CastBar.super.prototype.SpellCastSent(self, event, unit, spell, rank, target, lineId)
|
||||
if (unit ~= self.unit) then return end
|
||||
|
||||
if IceHUD.WowVer < 70000 then
|
||||
self.spellCastSent = GetTime()
|
||||
end
|
||||
self.sentSpell = spell
|
||||
self.sentSpell = lineId
|
||||
end
|
||||
|
||||
-- OVERRIDE
|
||||
@ -423,15 +423,15 @@ function CastBar.prototype:SpellCastChanged(event, arg1)
|
||||
end
|
||||
|
||||
-- OVERRIDE
|
||||
function CastBar.prototype:SpellCastStart(event, unit, spell, rank)
|
||||
CastBar.super.prototype.SpellCastStart(self, event, unit, spell, rank)
|
||||
function CastBar.prototype:SpellCastStart(event, unit, spell, rank, lineId, spellId)
|
||||
CastBar.super.prototype.SpellCastStart(self, event, unit, spell, rank, lineId, spellId)
|
||||
if (unit ~= self.unit) then return end
|
||||
|
||||
if not self:IsVisible() or not self.actionDuration then
|
||||
return
|
||||
end
|
||||
|
||||
if self.sentSpell ~= spell then
|
||||
if self.sentSpell ~= lineId then
|
||||
self.spellCastSent = nil
|
||||
end
|
||||
|
||||
|
@ -684,11 +684,6 @@ function IceClassPowerCounter.prototype:SetDisplayMode()
|
||||
for i=1, self.numRunes do
|
||||
self:SetupRuneTexture(i)
|
||||
self.frame.graphical[i]:Show()
|
||||
if self.moduleSettings.inactiveDisplayMode == "Darkened" then
|
||||
self.frame.graphical[i].runebg:Show()
|
||||
else
|
||||
self.frame.graphical[i].runebg:Hide()
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -723,8 +718,6 @@ function IceClassPowerCounter.prototype:CreateRune(i)
|
||||
|
||||
self.frame.graphical[i].rune = self.frame.graphical[i]:CreateTexture(nil, "ARTWORK")
|
||||
self.frame.graphical[i].rune:SetVertexColor(0, 0, 0)
|
||||
self.frame.graphical[i].runebg = self.frame.graphical[i]:CreateTexture(nil, "BACKGROUND")
|
||||
self.frame.graphical[i].runebg:SetVertexColor(0, 0, 0)
|
||||
self:SetupRuneTexture(i)
|
||||
|
||||
self.frame.graphical[i].shine = self.frame.graphical[i]:CreateTexture(nil, "OVERLAY")
|
||||
@ -749,14 +742,10 @@ function IceClassPowerCounter.prototype:CreateRune(i)
|
||||
self.frame.graphical[i]:SetHeight(self.runeHeight)
|
||||
self.frame.graphical[i].rune:SetWidth(self.runeWidth)
|
||||
self.frame.graphical[i].rune:SetHeight(self.runeHeight)
|
||||
self.frame.graphical[i].runebg:SetWidth(self.runeWidth)
|
||||
self.frame.graphical[i].runebg:SetHeight(self.runeHeight)
|
||||
if self.currentGrowMode == self.growModes["width"] then
|
||||
self.frame.graphical[i].rune:SetPoint("LEFT", self.frame.graphical[i], "LEFT")
|
||||
self.frame.graphical[i].runebg:SetPoint("LEFT", self.frame.graphical[i], "LEFT")
|
||||
else
|
||||
self.frame.graphical[i].rune:SetPoint("BOTTOM", self.frame.graphical[i], "BOTTOM")
|
||||
self.frame.graphical[i].runebg:SetPoint("BOTTOM", self.frame.graphical[i], "BOTTOM")
|
||||
end
|
||||
end
|
||||
|
||||
@ -774,7 +763,6 @@ function IceClassPowerCounter.prototype:SetupRuneTexture(rune)
|
||||
|
||||
-- make sure any texture aside from the special one is square and has the proper coordinates
|
||||
self.frame.graphical[rune].rune:SetTexCoord(a, b, c, d)
|
||||
self.frame.graphical[rune].runebg:SetTexCoord(a, b, c, d)
|
||||
self.frame.graphical[rune]:SetWidth(width)
|
||||
self.frame:SetWidth(width*self.numRunes)
|
||||
local runeAdjust = rune - (self.numRunes / 2) - 0.5
|
||||
@ -784,8 +772,8 @@ function IceClassPowerCounter.prototype:SetupRuneTexture(rune)
|
||||
self.frame.graphical[rune]:SetPoint("CENTER", 0, -1 * (runeAdjust * (self.runeHeight-5) + runeAdjust + (runeAdjust * self.moduleSettings.runeGap)))
|
||||
end
|
||||
|
||||
local tex = self:GetRuneTexture(rune)
|
||||
if self:GetRuneMode() == "Graphical" then
|
||||
local tex = self:GetRuneTexture(rune)
|
||||
if tex then
|
||||
self.frame.graphical[rune].rune:SetTexture(tex)
|
||||
else
|
||||
@ -800,11 +788,6 @@ function IceClassPowerCounter.prototype:SetupRuneTexture(rune)
|
||||
elseif self:GetRuneMode() == "Graphical Clean Circle" then
|
||||
self.frame.graphical[rune].rune:SetTexture(IceElement.TexturePath .. "ComboCleanCurves")
|
||||
end
|
||||
if tex then
|
||||
self.frame.graphical[rune].runebg:SetTexture(tex)
|
||||
else
|
||||
self.frame.graphical[rune].runebg:SetAtlas(self.frame.graphical[rune].rune:GetAtlas())
|
||||
end
|
||||
end
|
||||
|
||||
function IceClassPowerCounter.prototype:GetAlphaAdd()
|
||||
|
@ -80,6 +80,6 @@ end
|
||||
-- Load for tanks only
|
||||
local _, unitClass = UnitClass("player")
|
||||
if ((unitClass == "DEATHKNIGHT" or unitClass == "DRUID" or unitClass == "PALADIN" or unitClass == "WARRIOR" or unitClass == "MONK")
|
||||
and IceHUD.WowVer >= 60000) then
|
||||
and IceHUD.WowVer >= 60000 and IceHUD.WowVer < 70000) then
|
||||
IceHUD.Resolve = Resolve:new()
|
||||
end
|
||||
|
@ -196,7 +196,7 @@ end
|
||||
function SliceAndDice.prototype:ResetRotation()
|
||||
SliceAndDice.super.prototype.ResetRotation(self)
|
||||
|
||||
if self.durationFrame.anim then
|
||||
if self.durationFrame and self.durationFrame.anim then
|
||||
self.durationFrame.anim:Stop()
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user