Skip to content

Commit

Permalink
Add journal functionality to Cataclysm and re-add achievement functio…
Browse files Browse the repository at this point in the history
…nality to Cataclysm and Retail
  • Loading branch information
Nicholas Anderson committed Oct 30, 2024
1 parent 5b3eca7 commit 8ff432c
Show file tree
Hide file tree
Showing 6 changed files with 785 additions and 787 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 3.1.0 - October 29, 2024

### Added

- Retail and Cataclysm: Re-enabled the functionality of opening the achievement frame by clicking on an achievement in Atlas
- Cataclysm: Like Retail, there are buttons that will take you to the Journal instance entry (Cataclysm instances only) or the Journal instance map (all instances)
- Cataclysm: Like Retail, clicking on a boss name will open its encounter in the Journal (Cataclysm instances only)

### Changed

- Retail: Update TOC to 11.0.5
- Cataclysm: Update TOC to 4.4.1

## 3.0.0 - October 17, 2024

### Added
Expand Down
16 changes: 10 additions & 6 deletions Core/Atlas.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ local WoWClassicEra, WoWClassic, WoWRetail
local wowversion = select(4, GetBuildInfo())
if wowversion < 20000 then
WoWClassicEra = true
elseif wowversion > 30000 and wowversion < 90000 then
elseif wowversion > 20000 and wowversion < 90000 then
WoWClassic = true
elseif wowversion > 90000 then
WoWRetail = true
Expand Down Expand Up @@ -242,9 +242,7 @@ local function bossButtonCleanUp(button)
end

local function bossButtonUpdate(button, encounterID, instanceID, b_iconImage, moduleData)
if (WoWClassicEra or WoWClassic) then
return
end
if (WoWClassicEra) then return end

local rolesByFlag = {
[0] = "TANK",
Expand Down Expand Up @@ -1303,11 +1301,17 @@ function Atlas_MapRefresh(mapID)
AtlasFrame.AdventureJournal.instanceID = base.JournalInstanceID
AtlasFrameLarge.AdventureJournal.instanceID = base.JournalInstanceID
AtlasFrameSmall.AdventureJournal.instanceID = base.JournalInstanceID
if WoWRetail then
-- Classic only has Cataclysm encounters available
if ((WoWClassic and base.Module == "Atlas_Cataclysm") or WoWRetail) then
AtlasFrameAdventureJournalButton:Show()
AtlasFrameLargeAdventureJournalButton:Show()
AtlasFrameSmallAdventureJournalButton:Show()
Atlas_SetEJBackground(base.JournalInstanceID)
else
AtlasFrameAdventureJournalButton:Hide()
AtlasFrameLargeAdventureJournalButton:Hide()
AtlasFrameSmallAdventureJournalButton:Hide()
Atlas_SetEJBackground()
end
else
AtlasFrameAdventureJournalButton:Hide()
Expand All @@ -1321,7 +1325,7 @@ function Atlas_MapRefresh(mapID)
AtlasFrame.AdventureJournalMap.mapID = base.WorldMapID
AtlasFrameLarge.AdventureJournalMap.mapID = base.WorldMapID
AtlasFrameSmall.AdventureJournalMap.mapID = base.WorldMapID
if WoWRetail then
if (WoWClassic or WoWRetail) then
AtlasFrameAdventureJournalMapButton:Show()
AtlasFrameLargeAdventureJournalMapButton:Show()
AtlasFrameSmallAdventureJournalMapButton:Show()
Expand Down
2 changes: 1 addition & 1 deletion Core/AtlasFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ local WoWClassicEra, WoWClassic, WoWRetail
local wowversion = select(4, GetBuildInfo())
if wowversion < 20000 then
WoWClassicEra = true
elseif wowversion > 30000 and wowversion < 90000 then
elseif wowversion > 20000 and wowversion < 90000 then
WoWClassic = true
elseif wowversion > 90000 then
WoWRetail = true
Expand Down
Loading

0 comments on commit 8ff432c

Please sign in to comment.