mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
Fixes and patches
This commit is contained in:
@ -46,28 +46,9 @@ function IceCastBar.prototype:Enable(core)
|
|||||||
self:RegisterEvent("UNIT_SPELLCAST_CHANNEL_STOP", "SpellCastChannelStop") -- unit
|
self:RegisterEvent("UNIT_SPELLCAST_CHANNEL_STOP", "SpellCastChannelStop") -- unit
|
||||||
|
|
||||||
self.frame:Hide()
|
self.frame:Hide()
|
||||||
|
|
||||||
-- remove blizz cast bar
|
|
||||||
CastingBarFrame:UnregisterAllEvents()
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function IceCastBar.prototype:Disable(core)
|
|
||||||
IceCastBar.super.prototype.Disable(self, core)
|
|
||||||
|
|
||||||
-- restore blizz cast bar
|
|
||||||
CastingBarFrame:RegisterEvent("SPELLCAST_START");
|
|
||||||
CastingBarFrame:RegisterEvent("SPELLCAST_STOP");
|
|
||||||
CastingBarFrame:RegisterEvent("SPELLCAST_FAILED");
|
|
||||||
CastingBarFrame:RegisterEvent("SPELLCAST_INTERRUPTED");
|
|
||||||
CastingBarFrame:RegisterEvent("SPELLCAST_DELAYED");
|
|
||||||
CastingBarFrame:RegisterEvent("SPELLCAST_CHANNEL_START");
|
|
||||||
CastingBarFrame:RegisterEvent("SPELLCAST_CHANNEL_UPDATE");
|
|
||||||
CastingBarFrame:RegisterEvent("SPELLCAST_CHANNEL_STOP");
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- 'Protected' methods --------------------------------------------------------
|
-- 'Protected' methods --------------------------------------------------------
|
||||||
|
|
||||||
-- OVERRIDE
|
-- OVERRIDE
|
||||||
@ -275,7 +256,11 @@ function IceCastBar.prototype:SpellCastDelayed(unit, delay)
|
|||||||
--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)
|
||||||
self.actionDuration = endTime/1000 - self.actionStartTime
|
|
||||||
|
if (endTime and self.actionStartTime) then
|
||||||
|
-- apparently this check is needed, got nils during a horrible lag spike
|
||||||
|
self.actionDuration = endTime/1000 - self.actionStartTime
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -477,7 +477,6 @@ StaticPopupDialogs["ICEHUD_RESET"] =
|
|||||||
whileDead = 1,
|
whileDead = 1,
|
||||||
hideOnEscape = 1,
|
hideOnEscape = 1,
|
||||||
OnAccept = function()
|
OnAccept = function()
|
||||||
print("hellooo")
|
|
||||||
IceHUD.IceCore:ResetSettings()
|
IceHUD.IceCore:ResetSettings()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
@ -489,8 +488,6 @@ function IceHUD:OnInitialize()
|
|||||||
self:Debug("IceHUD:OnInitialize()")
|
self:Debug("IceHUD:OnInitialize()")
|
||||||
|
|
||||||
self.IceCore = IceCore:new()
|
self.IceCore = IceCore:new()
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
## Name: IceHUD
|
## Name: IceHUD
|
||||||
## Title: IceHUD |cff7fff7f -Ace2-|r
|
## Title: IceHUD |cff7fff7f -Ace2-|r
|
||||||
## Notes: Another HUD addon
|
## Notes: Another HUD addon
|
||||||
## Version: 0.8 ($Revision$)
|
## Version: 0.8.1 ($Revision$)
|
||||||
## SavedVariables: IceCoreDB
|
## SavedVariables: IceCoreDB
|
||||||
## OptionalDeps: Ace2, DewdropLib, DruidBar, SoleManax, MobHealth
|
## OptionalDeps: Ace2, DewdropLib, DruidBar, SoleManax, MobHealth
|
||||||
## X-Embeds: Ace2, DewdropLib
|
## X-Embeds: Ace2, DewdropLib
|
||||||
@ -22,7 +22,6 @@ libs\AceConsole-2.0\AceConsole-2.0.lua
|
|||||||
libs\AceAddon-2.0\AceAddon-2.0.lua
|
libs\AceAddon-2.0\AceAddon-2.0.lua
|
||||||
libs\Dewdrop-2.0\Dewdrop-2.0.lua
|
libs\Dewdrop-2.0\Dewdrop-2.0.lua
|
||||||
|
|
||||||
|
|
||||||
# IceHUD core functionality
|
# IceHUD core functionality
|
||||||
IceCore.lua
|
IceCore.lua
|
||||||
IceHUD.lua
|
IceHUD.lua
|
||||||
@ -31,7 +30,9 @@ IceBarElement.lua
|
|||||||
IceUnitBar.lua
|
IceUnitBar.lua
|
||||||
IceCastBar.lua
|
IceCastBar.lua
|
||||||
|
|
||||||
|
|
||||||
# IceHUD modules
|
# IceHUD modules
|
||||||
|
# - Feel free to comment these out if you like
|
||||||
modules\PlayerHealth.lua
|
modules\PlayerHealth.lua
|
||||||
modules\PlayerMana.lua
|
modules\PlayerMana.lua
|
||||||
modules\TargetHealth.lua
|
modules\TargetHealth.lua
|
||||||
|
@ -63,6 +63,34 @@ function CastBar.prototype:GetOptions()
|
|||||||
return opts
|
return opts
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
function CastBar.prototype:Enable(core)
|
||||||
|
CastBar.super.prototype.Enable(self, core)
|
||||||
|
|
||||||
|
-- remove blizz cast bar
|
||||||
|
CastingBarFrame:UnregisterAllEvents()
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
function CastBar.prototype:Disable(core)
|
||||||
|
CastBar.super.prototype.Disable(self, core)
|
||||||
|
|
||||||
|
-- restore blizz cast bar
|
||||||
|
CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_SENT");
|
||||||
|
CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_START");
|
||||||
|
CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_STOP");
|
||||||
|
|
||||||
|
CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_FAILED");
|
||||||
|
CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_INTERRUPTED");
|
||||||
|
CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_DELAYED");
|
||||||
|
CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED");
|
||||||
|
|
||||||
|
CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_CHANNEL_START");
|
||||||
|
CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_CHANNEL_UPDATE");
|
||||||
|
CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_CHANNEL_STOP");
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
@ -48,6 +48,8 @@ function TargetCast.prototype:TargetChanged(unit)
|
|||||||
self:StartBar(IceCastBar.Actions.Channel)
|
self:StartBar(IceCastBar.Actions.Channel)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
self:StopBar()
|
||||||
end
|
end
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
@ -412,7 +412,7 @@ function TargetInfo.prototype:CreateBuffFrame(redraw)
|
|||||||
self.frame.buffFrame:SetHeight(1)
|
self.frame.buffFrame:SetHeight(1)
|
||||||
|
|
||||||
self.frame.buffFrame:ClearAllPoints()
|
self.frame.buffFrame:ClearAllPoints()
|
||||||
self.frame.buffFrame:SetPoint("TOPRIGHT", self.frame, "TOPLEFT", -5, 0)
|
self.frame.buffFrame:SetPoint("TOPRIGHT", self.frame, "TOPLEFT", -10, 0)
|
||||||
self.frame.buffFrame:Show()
|
self.frame.buffFrame:Show()
|
||||||
|
|
||||||
self.frame.buffFrame.buffs = {}
|
self.frame.buffFrame.buffs = {}
|
||||||
@ -433,7 +433,7 @@ function TargetInfo.prototype:CreateDebuffFrame(redraw)
|
|||||||
self.frame.debuffFrame:SetHeight(1)
|
self.frame.debuffFrame:SetHeight(1)
|
||||||
|
|
||||||
self.frame.debuffFrame:ClearAllPoints()
|
self.frame.debuffFrame:ClearAllPoints()
|
||||||
self.frame.debuffFrame:SetPoint("TOPLEFT", self.frame, "TOPRIGHT", 5, 0)
|
self.frame.debuffFrame:SetPoint("TOPLEFT", self.frame, "TOPRIGHT", 10, 0)
|
||||||
self.frame.debuffFrame:Show()
|
self.frame.debuffFrame:Show()
|
||||||
|
|
||||||
self.frame.debuffFrame.buffs = {}
|
self.frame.debuffFrame.buffs = {}
|
||||||
|
@ -401,9 +401,12 @@ function TargetOfTarget.prototype:BuffOnEnter(type)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
GameTooltip:SetOwner(this, "ANCHOR_BOTTOMRIGHT")
|
if (this.unit and this.id) then
|
||||||
GameTooltip:SetUnitDebuff(this.unit, this.id)
|
GameTooltip:SetOwner(this, "ANCHOR_BOTTOMRIGHT")
|
||||||
|
GameTooltip:SetUnitDebuff(this.unit, this.id)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
-- load us up
|
-- load us up
|
||||||
IceHUD_Module_TargetOfTarget = TargetOfTarget:new()
|
IceHUD_Module_TargetOfTarget = TargetOfTarget:new()
|
||||||
|
Reference in New Issue
Block a user