Skip to content

Commit aec20db

Browse files
committed
Multi-toc for Classic
1 parent 8e242c2 commit aec20db

20 files changed

+86
-14
lines changed

.github/workflows/build-classic.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,3 @@ jobs:
2828

2929
- name: Package Classic
3030
uses: BigWigsMods/packager@master
31-
with:
32-
args: -g classic
33-
34-
- name: Package BCC
35-
uses: BigWigsMods/packager@master
36-
with:
37-
args: -g bcc

.luacheckrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ globals = {
9292
"DISABLE",
9393
"ENABLE",
9494
"LARGE_NUMBER_SEPERATOR",
95+
"WOW_PROJECT_WRATH",
9596
"WOW_PROJECT_BURNING_CRUSADE_CLASSIC",
9697
"WOW_PROJECT_CLASSIC",
98+
"WOW_PROJECT_MAINLINE",
9799
"WOW_PROJECT_ID",
98100
}

Code/AnimationStyles.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
local _, ns = ...
22
local Parrot = ns.addon
3+
if not Parrot then return end
4+
35
local module = Parrot:NewModule("AnimationStyles")
46

57
local animationStyles = {}

Code/CombatEvents.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
local _, ns = ...
22
local Parrot = ns.addon
3+
if not Parrot then return end
4+
35
local module = Parrot:NewModule("CombatEvents", "AceEvent-3.0", "AceTimer-3.0")
46
local L = LibStub("AceLocale-3.0"):GetLocale("Parrot")
57

Code/Display.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
local _, ns = ...
22
local Parrot = ns.addon
3+
if not Parrot then return end
4+
35
local module = Parrot:NewModule("Display")
46
local L = LibStub("AceLocale-3.0"):GetLocale("Parrot")
57

Code/Parrot.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ local L = LibStub("AceLocale-3.0"):GetLocale("Parrot")
66
local AceConfig = LibStub("AceConfig-3.0")
77
local AceConfigDialog = LibStub("AceConfigDialog-3.0")
88

9+
Parrot.wow_classic_era = WOW_PROJECT_ID == WOW_PROJECT_CLASSIC
10+
Parrot.wow_classic = WOW_PROJECT_ID == WOW_PROJECT_WRATH
11+
912
-- Debug
1013
local debug = function() end
1114
--@debug@

Code/ScrollAreas.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
local _, ns = ...
22
local Parrot = ns.addon
3+
if not Parrot then return end
4+
35
local module = Parrot:NewModule("ScrollAreas", "AceTimer-3.0")
46
local L = LibStub("AceLocale-3.0"):GetLocale("Parrot")
57

8+
69
local Parrot_AnimationStyles = Parrot:GetModule("AnimationStyles")
710

811
local db = nil

Code/Suppressions.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
local _, ns = ...
22
local Parrot = ns.addon
3+
if not Parrot then return end
4+
35
local module = Parrot:NewModule("Suppressions")
46
local L = LibStub("AceLocale-3.0"):GetLocale("Parrot")
57

Code/TriggerConditions.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
local _, ns = ...
22
local Parrot = ns.addon
3+
if not Parrot then return end
4+
35
local module = Parrot:NewModule("TriggerConditions", "AceEvent-3.0")
46

57
local Parrot_Triggers

Code/Triggers.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
local _, ns = ...
22
local Parrot = ns.addon
3+
if not Parrot then return end
4+
35
local module = Parrot:NewModule("Triggers", "AceEvent-3.0", "AceTimer-3.0")
46
local L = LibStub("AceLocale-3.0"):GetLocale("Parrot")
57

0 commit comments

Comments
 (0)