mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
590638a156 | |||
e6bd39352c | |||
a4060dff6f | |||
268a6c6fbc | |||
b75112db79 | |||
42e76dde72 | |||
43aa303887 | |||
30ec3750c1
|
|||
73891bca4b
|
|||
66f4492fa7 |
@ -1,9 +1,9 @@
|
|||||||
## Interface: 110000
|
## Interface: 110007
|
||||||
## Interface-Retail: 110000
|
## Interface-Retail: 110007
|
||||||
## Interface-Classic: 11503
|
## Interface-Classic: 11505
|
||||||
## Interface-BCC: 20504
|
## Interface-BCC: 20504
|
||||||
## Interface-Wrath: 30403
|
## Interface-Wrath: 30403
|
||||||
## Interface-Cata: 40400
|
## Interface-Cata: 40401
|
||||||
## Author: Parnic, originally created by Iceroth
|
## Author: Parnic, originally created by Iceroth
|
||||||
## Name: IceHUD
|
## Name: IceHUD
|
||||||
## Title: IceHUD |cff7fff7f-Ace3-|r
|
## Title: IceHUD |cff7fff7f-Ace3-|r
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
## Interface: 110000
|
## Interface: 110007
|
||||||
## Interface-Retail: 110000
|
## Interface-Retail: 110007
|
||||||
## Interface-Classic: 11503
|
## Interface-Classic: 11505
|
||||||
## Interface-BCC: 20504
|
## Interface-BCC: 20504
|
||||||
## Interface-Wrath: 30403
|
## Interface-Wrath: 30403
|
||||||
## Interface-Cata: 40400
|
## Interface-Cata: 40401
|
||||||
## Title: IceHUD |cff7fff7f-Options-|r
|
## Title: IceHUD |cff7fff7f-Options-|r
|
||||||
## Author: Parnic
|
## Author: Parnic
|
||||||
## Version: @project-version@
|
## Version: @project-version@
|
||||||
|
35
changelog.md
35
changelog.md
@ -1,5 +1,40 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
v1.15.10:
|
||||||
|
|
||||||
|
- Fix Chi not updating properly when the player's maximum amount of Chi points changes (e.g. via Ascension talent).
|
||||||
|
- Update TOCs
|
||||||
|
|
||||||
|
v1.15.9:
|
||||||
|
|
||||||
|
- Update Cataclysm Classic TOC to 4.4.1
|
||||||
|
- Update Classic-era TOC to 1.15.4
|
||||||
|
- Update TWW TOC to 11.0.5
|
||||||
|
|
||||||
|
v1.15.8:
|
||||||
|
|
||||||
|
- Fix reported error with custom cooldown bars set to "when ready" mode due to deprecation in 11.x (wowace issue #368)
|
||||||
|
|
||||||
|
v1.15.7:
|
||||||
|
|
||||||
|
- Fix cooldown display for overridden spells (such as Evoker spells where Font of Magic replaces the base spell with an override with the same name).
|
||||||
|
|
||||||
|
v1.15.6:
|
||||||
|
|
||||||
|
- Package new version of LibDogTag-Unit to fix an error with some units on 11.0.2
|
||||||
|
|
||||||
|
v1.15.5:
|
||||||
|
|
||||||
|
- Fix error when using an invalid spell with a custom bar on 11.x
|
||||||
|
|
||||||
|
v1.15.4:
|
||||||
|
|
||||||
|
- Update TOC for TWW
|
||||||
|
|
||||||
|
v1.15.3:
|
||||||
|
|
||||||
|
- Fix custom cooldown bars not working in 11.x (wowace issue #363)
|
||||||
|
|
||||||
v1.15.2:
|
v1.15.2:
|
||||||
|
|
||||||
- Re-enable right-click context menus on 11.x.
|
- Re-enable right-click context menus on 11.x.
|
||||||
|
@ -20,8 +20,14 @@ end
|
|||||||
local GetSpellInfo = GetSpellInfo
|
local GetSpellInfo = GetSpellInfo
|
||||||
if not GetSpellInfo and C_Spell and C_Spell.GetSpellInfo then
|
if not GetSpellInfo and C_Spell and C_Spell.GetSpellInfo then
|
||||||
GetSpellInfo = function(id)
|
GetSpellInfo = function(id)
|
||||||
|
if not id then
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
local info = C_Spell.GetSpellInfo(id)
|
local info = C_Spell.GetSpellInfo(id)
|
||||||
return info.name, nil, info.iconID
|
if info then
|
||||||
|
return info.name, nil, info.iconID
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -30,8 +30,14 @@ end
|
|||||||
local GetSpellInfo = GetSpellInfo
|
local GetSpellInfo = GetSpellInfo
|
||||||
if not GetSpellInfo and C_Spell and C_Spell.GetSpellInfo then
|
if not GetSpellInfo and C_Spell and C_Spell.GetSpellInfo then
|
||||||
GetSpellInfo = function(id)
|
GetSpellInfo = function(id)
|
||||||
|
if not id then
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
local info = C_Spell.GetSpellInfo(id)
|
local info = C_Spell.GetSpellInfo(id)
|
||||||
return info.name, nil, info.iconID
|
if info then
|
||||||
|
return info.name, nil, info.iconID, info.spellID
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -55,6 +61,11 @@ if not IsUsableSpell and C_Spell then
|
|||||||
IsUsableSpell = C_Spell.IsSpellUsable
|
IsUsableSpell = C_Spell.IsSpellUsable
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local SpellHasRange = SpellHasRange
|
||||||
|
if not SpellHasRange and C_Spell then
|
||||||
|
SpellHasRange = C_Spell.SpellHasRange
|
||||||
|
end
|
||||||
|
|
||||||
IceCustomCDBar.prototype.cooldownDuration = 0
|
IceCustomCDBar.prototype.cooldownDuration = 0
|
||||||
IceCustomCDBar.prototype.cooldownEndTime = 0
|
IceCustomCDBar.prototype.cooldownEndTime = 0
|
||||||
IceCustomCDBar.prototype.coolingDown = false
|
IceCustomCDBar.prototype.coolingDown = false
|
||||||
@ -630,17 +641,27 @@ end
|
|||||||
|
|
||||||
-- 'Protected' methods --------------------------------------------------------
|
-- 'Protected' methods --------------------------------------------------------
|
||||||
|
|
||||||
|
function IceCustomCDBar.prototype:GetCooldownDurationOverride(spellID)
|
||||||
|
if spellID and FindSpellOverrideByID then
|
||||||
|
local override = FindSpellOverrideByID(spellID)
|
||||||
|
if override and override ~= spellID then
|
||||||
|
return self:GetCooldownDuration(override)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function IceCustomCDBar.prototype:GetCooldownDuration(buffName)
|
function IceCustomCDBar.prototype:GetCooldownDuration(buffName)
|
||||||
buffName = self:GetSpellNameOrId(buffName)
|
local spellID
|
||||||
|
buffName, spellID = self:GetSpellNameOrId(buffName)
|
||||||
|
|
||||||
local now = GetTime()
|
local now = GetTime()
|
||||||
local localRemaining = nil
|
local localRemaining = nil
|
||||||
local localStart, localDuration, hasCooldown = GetSpellCooldown(buffName)
|
local localStart, localDuration, hasCooldown = GetSpellCooldown(buffName)
|
||||||
|
|
||||||
if (hasCooldown == 1) then
|
if hasCooldown then
|
||||||
-- the item has a potential cooldown
|
-- the item has a potential cooldown
|
||||||
if (localDuration <= 1.5) then
|
if localDuration <= 1.5 then
|
||||||
return nil, nil
|
return self:GetCooldownDurationOverride(spellID)
|
||||||
end
|
end
|
||||||
|
|
||||||
localRemaining = localDuration + (localStart - now)
|
localRemaining = localDuration + (localStart - now)
|
||||||
@ -651,7 +672,7 @@ function IceCustomCDBar.prototype:GetCooldownDuration(buffName)
|
|||||||
|
|
||||||
return localDuration, localRemaining
|
return localDuration, localRemaining
|
||||||
else
|
else
|
||||||
return nil, nil
|
return self:GetCooldownDurationOverride(spellID)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -734,7 +755,7 @@ function IceCustomCDBar.prototype:UpdateItemUnitInventoryChanged(event, unit)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function IceCustomCDBar.prototype:UpdateCustomBarEvent(event, unit)
|
function IceCustomCDBar.prototype:UpdateCustomBarEvent(event, unit)
|
||||||
if unit ~= self.unit then
|
if unit and unit ~= self.unit then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if not self.moduleSettings.cooldownType or self.moduleSettings.cooldownType == COOLDOWN_TYPE_SPELL then
|
if not self.moduleSettings.cooldownType or self.moduleSettings.cooldownType == COOLDOWN_TYPE_SPELL then
|
||||||
@ -862,7 +883,8 @@ function IceCustomCDBar.prototype:IsReady()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function IceCustomCDBar.prototype:GetSpellNameOrId(spellName)
|
function IceCustomCDBar.prototype:GetSpellNameOrId(spellName)
|
||||||
return spellName
|
local id = select(4, GetSpellInfo(spellName))
|
||||||
|
return spellName, id
|
||||||
end
|
end
|
||||||
|
|
||||||
function IceCustomCDBar.prototype:Show(bShouldShow, bForceHide)
|
function IceCustomCDBar.prototype:Show(bShouldShow, bForceHide)
|
||||||
|
@ -10,8 +10,14 @@ local DefaultAuraIcon = "Interface\\Icons\\Spell_Frost_Frost"
|
|||||||
local GetSpellInfo = GetSpellInfo
|
local GetSpellInfo = GetSpellInfo
|
||||||
if not GetSpellInfo and C_Spell and C_Spell.GetSpellInfo then
|
if not GetSpellInfo and C_Spell and C_Spell.GetSpellInfo then
|
||||||
GetSpellInfo = function(id)
|
GetSpellInfo = function(id)
|
||||||
|
if not id then
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
local info = C_Spell.GetSpellInfo(id)
|
local info = C_Spell.GetSpellInfo(id)
|
||||||
return info.name, nil, info.iconID
|
if info then
|
||||||
|
return info.name, nil, info.iconID
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -9,8 +9,14 @@ end
|
|||||||
local GetSpellInfo = GetSpellInfo
|
local GetSpellInfo = GetSpellInfo
|
||||||
if not GetSpellInfo and C_Spell and C_Spell.GetSpellInfo then
|
if not GetSpellInfo and C_Spell and C_Spell.GetSpellInfo then
|
||||||
GetSpellInfo = function(id)
|
GetSpellInfo = function(id)
|
||||||
|
if not id then
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
local info = C_Spell.GetSpellInfo(id)
|
local info = C_Spell.GetSpellInfo(id)
|
||||||
return info.name, nil, info.iconID, info.castTime
|
if info then
|
||||||
|
return info.name, nil, info.iconID, info.castTime
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -40,6 +40,13 @@ function HarmonyPower.prototype:Enable(core)
|
|||||||
HarmonyPower.super.prototype.Enable(self, core)
|
HarmonyPower.super.prototype.Enable(self, core)
|
||||||
|
|
||||||
self:RegisterEvent("UNIT_POWER_FREQUENT", "UpdateRunePower")
|
self:RegisterEvent("UNIT_POWER_FREQUENT", "UpdateRunePower")
|
||||||
|
if IceHUD.EventExistsUnitMaxPower then
|
||||||
|
self:RegisterEvent("UNIT_MAXPOWER", "PlayerChiUpdate")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function HarmonyPower.prototype:PlayerChiUpdate()
|
||||||
|
self:Redraw()
|
||||||
end
|
end
|
||||||
|
|
||||||
function HarmonyPower.prototype:UpdateRunePower(event, arg1, arg2)
|
function HarmonyPower.prototype:UpdateRunePower(event, arg1, arg2)
|
||||||
|
@ -1,5 +1,40 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
v1.15.10:
|
||||||
|
|
||||||
|
- Fix Chi not updating properly when the player's maximum amount of Chi points changes (e.g. via Ascension talent).
|
||||||
|
- Update TOCs
|
||||||
|
|
||||||
|
v1.15.9:
|
||||||
|
|
||||||
|
- Update Cataclysm Classic TOC to 4.4.1
|
||||||
|
- Update Classic-era TOC to 1.15.4
|
||||||
|
- Update TWW TOC to 11.0.5
|
||||||
|
|
||||||
|
v1.15.8:
|
||||||
|
|
||||||
|
- Fix reported error with custom cooldown bars set to "when ready" mode due to deprecation in 11.x (wowace issue #368)
|
||||||
|
|
||||||
|
v1.15.7:
|
||||||
|
|
||||||
|
- Fix cooldown display for overridden spells (such as Evoker spells where Font of Magic replaces the base spell with an override with the same name).
|
||||||
|
|
||||||
|
v1.15.6:
|
||||||
|
|
||||||
|
- Package new version of LibDogTag-Unit to fix an error with some units on 11.0.2
|
||||||
|
|
||||||
|
v1.15.5:
|
||||||
|
|
||||||
|
- Fix error when using an invalid spell with a custom bar on 11.x
|
||||||
|
|
||||||
|
v1.15.4:
|
||||||
|
|
||||||
|
- Update TOC for TWW
|
||||||
|
|
||||||
|
v1.15.3:
|
||||||
|
|
||||||
|
- Fix custom cooldown bars not working in 11.x (wowace issue #363)
|
||||||
|
|
||||||
v1.15.2:
|
v1.15.2:
|
||||||
|
|
||||||
- Re-enable right-click context menus on 11.x.
|
- Re-enable right-click context menus on 11.x.
|
||||||
|
Reference in New Issue
Block a user