mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- removed Deformat as it's no longer necessary
- removed FuBarPlugin from the toc since it's not used any more
This commit is contained in:
3
.pkgmeta
3
.pkgmeta
@ -30,9 +30,6 @@ externals:
|
|||||||
libs/AceConsole-3.0:
|
libs/AceConsole-3.0:
|
||||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceConsole-3.0
|
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceConsole-3.0
|
||||||
tag: latest
|
tag: latest
|
||||||
libs/Deformat-2.0:
|
|
||||||
url: svn://svn.wowace.com/wow/deformat/mainline/trunk/Deformat-2.0
|
|
||||||
tag: latest
|
|
||||||
libs/LibRangeCheck-2.0:
|
libs/LibRangeCheck-2.0:
|
||||||
url: svn://svn.wowace.com/wow/librangecheck-2-0/mainline/trunk/LibRangeCheck-2.0
|
url: svn://svn.wowace.com/wow/librangecheck-2-0/mainline/trunk/LibRangeCheck-2.0
|
||||||
libs/LibSharedMedia-3.0:
|
libs/LibSharedMedia-3.0:
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local AceOO = AceLibrary("AceOO-2.0")
|
||||||
local deformat = AceLibrary("Deformat-2.0")
|
|
||||||
|
|
||||||
local SPELLINTERRUPTOTHERSELF = SPELLINTERRUPTOTHERSELF
|
local SPELLINTERRUPTOTHERSELF = SPELLINTERRUPTOTHERSELF
|
||||||
local SPELLFAILCASTSELF = SPELLFAILCASTSELF
|
local SPELLFAILCASTSELF = SPELLFAILCASTSELF
|
||||||
@ -42,13 +41,10 @@ function IceCastBar.prototype:Enable(core)
|
|||||||
self:RegisterEvent("UNIT_SPELLCAST_SENT", "SpellCastSent") -- "player", spell, rank, target
|
self:RegisterEvent("UNIT_SPELLCAST_SENT", "SpellCastSent") -- "player", spell, rank, target
|
||||||
self:RegisterEvent("UNIT_SPELLCAST_START", "SpellCastStart") -- unit, spell, rank
|
self:RegisterEvent("UNIT_SPELLCAST_START", "SpellCastStart") -- unit, spell, rank
|
||||||
self:RegisterEvent("UNIT_SPELLCAST_STOP", "SpellCastStop") -- unit, spell, rank
|
self:RegisterEvent("UNIT_SPELLCAST_STOP", "SpellCastStop") -- unit, spell, rank
|
||||||
|
|
||||||
self:RegisterEvent("UNIT_SPELLCAST_FAILED", "SpellCastFailed") -- unit, spell, rank
|
self:RegisterEvent("UNIT_SPELLCAST_FAILED", "SpellCastFailed") -- unit, spell, rank
|
||||||
self:RegisterEvent("UNIT_SPELLCAST_INTERRUPTED", "SpellCastInterrupted") -- unit, spell, rank
|
self:RegisterEvent("UNIT_SPELLCAST_INTERRUPTED", "SpellCastInterrupted") -- unit, spell, rank
|
||||||
|
|
||||||
self:RegisterEvent("CHAT_MSG_SPELL_HOSTILEPLAYER_DAMAGE", "CheckChatInterrupt")
|
|
||||||
self:RegisterEvent("CHAT_MSG_SPELL_CREATURE_VS_SELF_DAMAGE", "CheckChatInterrupt")
|
|
||||||
|
|
||||||
self:RegisterEvent("UNIT_SPELLCAST_DELAYED", "SpellCastDelayed") -- unit, spell, rank
|
self:RegisterEvent("UNIT_SPELLCAST_DELAYED", "SpellCastDelayed") -- unit, spell, rank
|
||||||
self:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED", "SpellCastSucceeded") -- "player", spell, rank
|
self:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED", "SpellCastSucceeded") -- "player", spell, rank
|
||||||
|
|
||||||
@ -109,13 +105,13 @@ function IceCastBar.prototype:GetOptions()
|
|||||||
end,
|
end,
|
||||||
order = 39.999
|
order = 39.999
|
||||||
}
|
}
|
||||||
|
|
||||||
opts["headerIcons"] = {
|
opts["headerIcons"] = {
|
||||||
type = 'header',
|
type = 'header',
|
||||||
name = 'Icons',
|
name = 'Icons',
|
||||||
order = 50
|
order = 50
|
||||||
}
|
}
|
||||||
|
|
||||||
opts["displayAuraIcon"] = {
|
opts["displayAuraIcon"] = {
|
||||||
type = 'toggle',
|
type = 'toggle',
|
||||||
name = "Display aura icon",
|
name = "Display aura icon",
|
||||||
@ -138,7 +134,7 @@ function IceCastBar.prototype:GetOptions()
|
|||||||
end,
|
end,
|
||||||
order = 51,
|
order = 51,
|
||||||
}
|
}
|
||||||
|
|
||||||
opts["auraIconXOffset"] = {
|
opts["auraIconXOffset"] = {
|
||||||
type = 'range',
|
type = 'range',
|
||||||
min = -250,
|
min = -250,
|
||||||
@ -178,7 +174,7 @@ function IceCastBar.prototype:GetOptions()
|
|||||||
end,
|
end,
|
||||||
order = 53,
|
order = 53,
|
||||||
}
|
}
|
||||||
|
|
||||||
opts["auraIconScale"] = {
|
opts["auraIconScale"] = {
|
||||||
type = 'range',
|
type = 'range',
|
||||||
min = 0.1,
|
min = 0.1,
|
||||||
@ -277,7 +273,7 @@ function IceCastBar.prototype:OnUpdate()
|
|||||||
if (remainingTime < 0) then
|
if (remainingTime < 0) then
|
||||||
self:StopBar()
|
self:StopBar()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- sanity check to make sure the bar doesn't over/underfill
|
-- sanity check to make sure the bar doesn't over/underfill
|
||||||
scale = scale > 1 and 1 or scale
|
scale = scale > 1 and 1 or scale
|
||||||
scale = scale < 0 and 0 or scale
|
scale = scale < 0 and 0 or scale
|
||||||
@ -362,16 +358,16 @@ function IceCastBar.prototype:StartBar(action, message)
|
|||||||
self.action = action
|
self.action = action
|
||||||
self.actionStartTime = GetTime()
|
self.actionStartTime = GetTime()
|
||||||
self.actionMessage = message
|
self.actionMessage = message
|
||||||
|
|
||||||
if (startTime and endTime) then
|
if (startTime and endTime) then
|
||||||
self.actionDuration = (endTime - startTime) / 1000
|
self.actionDuration = (endTime - startTime) / 1000
|
||||||
|
|
||||||
-- set start time here in case we start to monitor a cast that is underway already
|
-- set start time here in case we start to monitor a cast that is underway already
|
||||||
self.actionStartTime = startTime / 1000
|
self.actionStartTime = startTime / 1000
|
||||||
else
|
else
|
||||||
self.actionDuration = 1 -- instants/failures
|
self.actionDuration = 1 -- instants/failures
|
||||||
end
|
end
|
||||||
|
|
||||||
if not (message) then
|
if not (message) then
|
||||||
self.actionMessage = spell .. (self.moduleSettings.showSpellRank and self:GetShortRank(rank) or "")
|
self.actionMessage = spell .. (self.moduleSettings.showSpellRank and self:GetShortRank(rank) or "")
|
||||||
end
|
end
|
||||||
@ -425,7 +421,7 @@ function IceCastBar.prototype:SpellCastStart(event, unit, spell, rank)
|
|||||||
if (unit ~= self.unit) then return end
|
if (unit ~= self.unit) then return end
|
||||||
IceHUD:Debug("SpellCastStart", unit, spell, rank)
|
IceHUD:Debug("SpellCastStart", unit, spell, rank)
|
||||||
--UnitCastingInfo(unit)
|
--UnitCastingInfo(unit)
|
||||||
|
|
||||||
self:StartBar(IceCastBar.Actions.Cast)
|
self:StartBar(IceCastBar.Actions.Cast)
|
||||||
self.current = spell
|
self.current = spell
|
||||||
end
|
end
|
||||||
@ -433,12 +429,12 @@ end
|
|||||||
function IceCastBar.prototype:SpellCastStop(event, unit, spell, rank)
|
function IceCastBar.prototype:SpellCastStop(event, unit, spell, rank)
|
||||||
if (unit ~= self.unit) then return end
|
if (unit ~= self.unit) then return end
|
||||||
IceHUD:Debug("SpellCastStop", unit, spell, self.current)
|
IceHUD:Debug("SpellCastStop", unit, spell, self.current)
|
||||||
|
|
||||||
-- ignore if not coming from current spell
|
-- ignore if not coming from current spell
|
||||||
if (self.current and spell and self.current ~= spell) then
|
if (self.current and spell and self.current ~= spell) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if (self.action ~= IceCastBar.Actions.Success and
|
if (self.action ~= IceCastBar.Actions.Success and
|
||||||
self.action ~= IceCastBar.Actions.Failure and
|
self.action ~= IceCastBar.Actions.Failure and
|
||||||
self.action ~= IceCastBar.Actions.Channel)
|
self.action ~= IceCastBar.Actions.Channel)
|
||||||
@ -457,14 +453,14 @@ function IceCastBar.prototype:SpellCastFailed(event, unit, spell, rank)
|
|||||||
if (self.current and spell and self.current ~= spell) then
|
if (self.current and spell and self.current ~= spell) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- channeled spells will call ChannelStop, not cast failed
|
-- channeled spells will call ChannelStop, not cast failed
|
||||||
if self.action == IceCastBar.Actions.Channel then
|
if self.action == IceCastBar.Actions.Channel then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
self.current = nil
|
self.current = nil
|
||||||
|
|
||||||
-- determine if we want to show failed casts
|
-- determine if we want to show failed casts
|
||||||
if (self.moduleSettings.flashFailures == "Never") then
|
if (self.moduleSettings.flashFailures == "Never") then
|
||||||
return
|
return
|
||||||
@ -473,24 +469,10 @@ function IceCastBar.prototype:SpellCastFailed(event, unit, spell, rank)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
self:StartBar(IceCastBar.Actions.Failure, "Failed")
|
self:StartBar(IceCastBar.Actions.Failure, "Failed")
|
||||||
end
|
end
|
||||||
|
|
||||||
function IceCastBar.prototype:CheckChatInterrupt(event, msg)
|
|
||||||
local player, spell = deformat(msg, SPELLINTERRUPTOTHERSELF)
|
|
||||||
IceHUD:Debug("CheckChatInterrupt", msg, self.current)
|
|
||||||
|
|
||||||
if not player then
|
|
||||||
player, spell = deformat(msg, SPELLFAILCASTSELF)
|
|
||||||
end
|
|
||||||
|
|
||||||
if player then
|
|
||||||
self.current = nil
|
|
||||||
self:StartBar(IceCastBar.Actions.Failure, "Interrupted")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function IceCastBar.prototype:SpellCastInterrupted(event, unit, spell, rank)
|
function IceCastBar.prototype:SpellCastInterrupted(event, unit, spell, rank)
|
||||||
if (unit ~= self.unit) then return end
|
if (unit ~= self.unit) then return end
|
||||||
IceHUD:Debug("SpellCastInterrupted", unit, self.current)
|
IceHUD:Debug("SpellCastInterrupted", unit, self.current)
|
||||||
@ -499,18 +481,18 @@ function IceCastBar.prototype:SpellCastInterrupted(event, unit, spell, rank)
|
|||||||
if (self.current and spell and self.current ~= spell) then
|
if (self.current and spell and self.current ~= spell) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
self.current = nil
|
self.current = nil
|
||||||
|
|
||||||
self:StartBar(IceCastBar.Actions.Failure, "Interrupted")
|
self:StartBar(IceCastBar.Actions.Failure, "Interrupted")
|
||||||
end
|
end
|
||||||
|
|
||||||
function IceCastBar.prototype:SpellCastDelayed(event, unit, delay)
|
function IceCastBar.prototype:SpellCastDelayed(event, unit, delay)
|
||||||
if (unit ~= self.unit) then return end
|
if (unit ~= self.unit) then return end
|
||||||
--IceHUD:Debug("SpellCastDelayed", unit, UnitCastingInfo(unit))
|
--IceHUD:Debug("SpellCastDelayed", unit, UnitCastingInfo(unit))
|
||||||
|
|
||||||
local spell, rank, displayName, icon, startTime, endTime, isTradeSkill = UnitCastingInfo(self.unit)
|
local spell, rank, displayName, icon, startTime, endTime, isTradeSkill = UnitCastingInfo(self.unit)
|
||||||
|
|
||||||
if (endTime and self.actionStartTime) then
|
if (endTime and self.actionStartTime) then
|
||||||
-- apparently this check is needed, got nils during a horrible lag spike
|
-- apparently this check is needed, got nils during a horrible lag spike
|
||||||
self.actionDuration = endTime/1000 - self.actionStartTime
|
self.actionDuration = endTime/1000 - self.actionStartTime
|
||||||
@ -521,12 +503,12 @@ end
|
|||||||
function IceCastBar.prototype:SpellCastSucceeded(event, unit, spell, rank)
|
function IceCastBar.prototype:SpellCastSucceeded(event, unit, spell, rank)
|
||||||
if (unit ~= self.unit) then return end
|
if (unit ~= self.unit) then return end
|
||||||
--IceHUD:Debug("SpellCastSucceeded", unit, spell, rank)
|
--IceHUD:Debug("SpellCastSucceeded", unit, spell, rank)
|
||||||
|
|
||||||
-- never show on channeled (why on earth does this event even fire when channeling starts?)
|
-- never show on channeled (why on earth does this event even fire when channeling starts?)
|
||||||
if (self.action == IceCastBar.Actions.Channel) then
|
if (self.action == IceCastBar.Actions.Channel) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- ignore if not coming from current spell
|
-- ignore if not coming from current spell
|
||||||
if (self.current and self.current ~= spell) then
|
if (self.current and self.current ~= spell) then
|
||||||
return
|
return
|
||||||
@ -537,7 +519,7 @@ function IceCastBar.prototype:SpellCastSucceeded(event, unit, spell, rank)
|
|||||||
self:StartBar(IceCastBar.Actions.Success, spell.. self:GetShortRank(rank))
|
self:StartBar(IceCastBar.Actions.Success, spell.. self:GetShortRank(rank))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- determine if we want to show instant casts
|
-- determine if we want to show instant casts
|
||||||
if (self.moduleSettings.flashInstants == "Never") then
|
if (self.moduleSettings.flashInstants == "Never") then
|
||||||
return
|
return
|
||||||
@ -546,7 +528,7 @@ function IceCastBar.prototype:SpellCastSucceeded(event, unit, spell, rank)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
self:StartBar(IceCastBar.Actions.Success, spell.. self:GetShortRank(rank))
|
self:StartBar(IceCastBar.Actions.Success, spell.. self:GetShortRank(rank))
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -559,14 +541,14 @@ end
|
|||||||
function IceCastBar.prototype:SpellCastChannelStart(event, unit)
|
function IceCastBar.prototype:SpellCastChannelStart(event, unit)
|
||||||
if (unit ~= self.unit) then return end
|
if (unit ~= self.unit) then return end
|
||||||
--IceHUD:Debug("SpellCastChannelStart", unit)
|
--IceHUD:Debug("SpellCastChannelStart", unit)
|
||||||
|
|
||||||
self:StartBar(IceCastBar.Actions.Channel)
|
self:StartBar(IceCastBar.Actions.Channel)
|
||||||
end
|
end
|
||||||
|
|
||||||
function IceCastBar.prototype:SpellCastChannelUpdate(event, unit)
|
function IceCastBar.prototype:SpellCastChannelUpdate(event, unit)
|
||||||
if (unit ~= self.unit or not self.actionStartTime) then return end
|
if (unit ~= self.unit or not self.actionStartTime) then return end
|
||||||
--IceHUD:Debug("SpellCastChannelUpdate", unit, UnitChannelInfo(unit))
|
--IceHUD:Debug("SpellCastChannelUpdate", unit, UnitChannelInfo(unit))
|
||||||
|
|
||||||
local spell, rank, displayName, icon, startTime, endTime = UnitChannelInfo(unit)
|
local spell, rank, displayName, icon, startTime, endTime = UnitChannelInfo(unit)
|
||||||
self.actionDuration = endTime/1000 - self.actionStartTime
|
self.actionDuration = endTime/1000 - self.actionStartTime
|
||||||
end
|
end
|
||||||
@ -574,7 +556,7 @@ end
|
|||||||
function IceCastBar.prototype:SpellCastChannelStop(event, unit)
|
function IceCastBar.prototype:SpellCastChannelStop(event, unit)
|
||||||
if (unit ~= self.unit) then return end
|
if (unit ~= self.unit) then return end
|
||||||
--IceHUD:Debug("SpellCastChannelStop", unit)
|
--IceHUD:Debug("SpellCastChannelStop", unit)
|
||||||
|
|
||||||
self:StopBar()
|
self:StopBar()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
## Notes: Another HUD addon
|
## Notes: Another HUD addon
|
||||||
## Version: @project-version@ (Revision: @project-revision@)
|
## Version: @project-version@ (Revision: @project-revision@)
|
||||||
## SavedVariables: IceCoreDB
|
## SavedVariables: IceCoreDB
|
||||||
## OptionalDeps: Ace2, Ace3, LibSharedMedia-3.0, Deformat, LibDogTag-3.0, LibDogTag-Unit-3.0, FuBarPlugin-2.0, LibRangeCheck-2.0, LibHealComm-4.0
|
## OptionalDeps: Ace2, Ace3, LibSharedMedia-3.0, LibDogTag-3.0, LibDogTag-Unit-3.0, LibRangeCheck-2.0, LibHealComm-4.0
|
||||||
## X-Category: HUDs
|
## X-Category: HUDs
|
||||||
## X-Website: http://www.wowace.com/projects/ice-hud/
|
## X-Website: http://www.wowace.com/projects/ice-hud/
|
||||||
## X-Compatible-With: 40000
|
## X-Compatible-With: 40000
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
<Include file="libs\LibDogTag-Unit-3.0\lib.xml"/>
|
<Include file="libs\LibDogTag-Unit-3.0\lib.xml"/>
|
||||||
<Script file="libs\LibRangeCheck-2.0\LibRangeCheck-2.0.lua"/>
|
<Script file="libs\LibRangeCheck-2.0\LibRangeCheck-2.0.lua"/>
|
||||||
<Include file="libs\LibSharedMedia-3.0\lib.xml"/>
|
<Include file="libs\LibSharedMedia-3.0\lib.xml"/>
|
||||||
<Script file="libs\Deformat-2.0\Deformat-2.0.lua"/>
|
|
||||||
<Script file="LibDataBroker-1.1.lua"/>
|
<Script file="LibDataBroker-1.1.lua"/>
|
||||||
<Script file="libs\LibDBIcon-1.0\LibDBIcon-1.0.lua"/>
|
<Script file="libs\LibDBIcon-1.0\LibDBIcon-1.0.lua"/>
|
||||||
</Ui>
|
</Ui>
|
||||||
|
Reference in New Issue
Block a user