Skip to content

Commit

Permalink
Support Cataclysm Classic
Browse files Browse the repository at this point in the history
  • Loading branch information
parnic committed May 1, 2024
1 parent 12c509b commit 038ea16
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,9 @@ jobs:
uses: BigWigsMods/packager@v2
with:
args: -g wrath -w 0

- name: Package and release for Cataclysm
uses: BigWigsMods/packager@v2
with:
args: -g cata -w 0

6 changes: 5 additions & 1 deletion IceHUD.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ if GetClassicExpansionLevel then
IceHUD.WowClassic = GetClassicExpansionLevel() == 0
IceHUD.WowClassicBC = GetClassicExpansionLevel() == 1
IceHUD.WowClassicWrath = GetClassicExpansionLevel() == 2
IceHUD.WowClassicCataclysm = GetClassicExpansionLevel() == 3
else
IceHUD.WowClassic = WOW_PROJECT_ID and WOW_PROJECT_ID == WOW_PROJECT_CLASSIC
IceHUD.WowClassicBC = false
IceHUD.WowClassicWrath = false
IceHUD.WowClassicCataclysm = false
if WOW_PROJECT_ID and WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC then
if not LE_EXPANSION_LEVEL_CURRENT or LE_EXPANSION_LEVEL_CURRENT == LE_EXPANSION_BURNING_CRUSADE then
IceHUD.WowClassicBC = true
Expand All @@ -32,6 +34,8 @@ else
end
elseif WOW_PROJECT_WRATH_CLASSIC and WOW_PROJECT_ID == WOW_PROJECT_WRATH_CLASSIC then
IceHUD.WowClassicWrath = true
elseif WOW_PROJECT_CATACLYSM_CLASSIC and WOW_PROJECT_ID == WOW_PROJECT_CATACLYSM_CLASSIC then
IceHUD.WowClassicCataclysm = true
end
end

Expand All @@ -52,7 +56,7 @@ IceHUD.PerTargetComboPoints = IceHUD.WowVer < 60000
IceHUD.CanTrackOtherUnitBuffs = not IceHUD.WowClassic or IceHUD.WowVer >= 11500
IceHUD.CanTrackGCD = not IceHUD.WowClassic or IceHUD.WowVer >= 11500
IceHUD.GetSpellInfoReturnsFunnel = IceHUD.WowMain and IceHUD.WowVer < 60000
IceHUD.CanHookDestroyTotem = IceHUD.WowClassic or IceHUD.WowClassicBC or IceHUD.WowClassicWrath
IceHUD.CanHookDestroyTotem = IceHUD.WowClassic or IceHUD.WowClassicBC or IceHUD.WowClassicWrath or IceHUD.WowClassicCataclysm
IceHUD.ShouldUpdateTargetHealthEveryTick = (IceHUD.WowClassic or IceHUD.WowClassicBC) and GetCVarBool("predictedHealth")
IceHUD.UsesUIPanelButtonTemplate = IceHUD.WowVer >= 50000 or not IceHUD.WowMain
IceHUD.EventExistsSpellcastInterruptible = IceHUD.WowVer >= 30200 and not IceHUD.WowClassicWrath
Expand Down
1 change: 1 addition & 0 deletions IceHUD.toc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Interface-Classic: 11502
## Interface-BCC: 20504
## Interface-Wrath: 30403
## Interface-Cata: 40400
## Author: Parnic, originally created by Iceroth
## Name: IceHUD
## Title: IceHUD |cff7fff7f-Ace3-|r
Expand Down
1 change: 1 addition & 0 deletions IceHUD_Options/IceHUD_Options.toc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Interface-Classic: 11502
## Interface-BCC: 20504
## Interface-Wrath: 30403
## Interface-Cata: 40400
## Title: IceHUD |cff7fff7f-Options-|r
## Author: Parnic
## Version: @project-version@
Expand Down
4 changes: 2 additions & 2 deletions modules/TargetOfTarget.lua
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ function TargetOfTarget.prototype:CreateToTFrame()

self.frame.totName:SetHeight(self.moduleSettings.moduleHeight)
self.frame.totName:SetJustifyH("LEFT")
self.frame.totName:SetJustifyV("CENTER")
self.frame.totName:SetJustifyV("MIDDLE")

self.frame.totName:SetPoint("LEFT", self.frame, "LEFT", 0, -1)
self.frame.totName:Show()
Expand All @@ -422,7 +422,7 @@ function TargetOfTarget.prototype:CreateToTHPFrame()

self.frame.totHealth:SetHeight(self.moduleSettings.moduleHeight)
self.frame.totHealth:SetJustifyH("RIGHT")
self.frame.totHealth:SetJustifyV("CENTER")
self.frame.totHealth:SetJustifyV("MIDDLE")

self.frame.totHealth:SetPoint("RIGHT", self.frame, "RIGHT", 0, 0)
self.frame.totHealth:Show()
Expand Down

0 comments on commit 038ea16

Please sign in to comment.