Skip to content

Commit

Permalink
Initial updates for 10.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
siweia committed May 22, 2023
1 parent 1bac3c2 commit f5b2d26
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions AuroraClassic/Config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ C.defaultThemes = {}
C.themes = {}

-- Data
DB.isNewPatch = select(4, GetBuildInfo()) >= 100007 -- 10.0.7
DB.isPatch10_1 = select(4, GetBuildInfo()) >= 100100 -- 10.1.0
DB.isNewPatch = select(4, GetBuildInfo()) >= 100105 -- 10.1.5
DB.MyClass = select(2, UnitClass("player"))
DB.ClassColors = {}

Expand Down
4 changes: 4 additions & 0 deletions AuroraClassic/FrameXML/LootFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ tinsert(C.defaultThemes, function()
BONUS_ROLL_CURRENT_COUNT = BONUS_ROLL_CURRENT_COUNT:gsub(from, to)

-- Loot Roll Frame
if not DB.isNewPatch then

hooksecurefunc("GroupLootFrame_OpenNewFrame", function()
for i = 1, NUM_GROUP_LOOT_FRAMES do
local frame = _G["GroupLootFrame"..i]
Expand Down Expand Up @@ -123,6 +125,8 @@ tinsert(C.defaultThemes, function()
end
end)

end

-- Bossbanner
hooksecurefunc("BossBanner_ConfigureLootFrame", function(lootFrame)
local iconHitBox = lootFrame.IconHitBox
Expand Down
3 changes: 3 additions & 0 deletions AuroraClassic/FrameXML/ObjectiveTracker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@ tinsert(C.defaultThemes, function()
for _, header in pairs(headers) do
reskinHeader(header)
end
if DB.isNewPatch then
reskinHeader(ADVENTURE_TRACKER_MODULE.Header)
end

-- Minimize Button
local mainMinimize = ObjectiveTrackerFrame.HeaderMenu.MinimizeButton
Expand Down

0 comments on commit f5b2d26

Please sign in to comment.