Skip to content

Commit 7164659

Browse files
Added new ToC file for era, and added version compatibility check
1 parent e7ab66a commit 7164659

File tree

4 files changed

+61
-1
lines changed

4 files changed

+61
-1
lines changed

SwedgeTimer.toc

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Interface: 30401
22
## Title: SwedgeTimer
3-
## Notes: General purpose swing timer addon for WotLK Classic.
3+
## Notes: Feature-rich and accurate swing-timer addon for Classic Era and WotLK Classic.
44
## Author: Swedge
55
## Version: "@project-version@"
66
## DefaultState: enabled
@@ -10,6 +10,8 @@
1010
## X-WoWI-ID: 26295
1111
## X-Curse-Project-ID: 621214
1212

13+
init.lua
14+
1315
Libs\LibStub\LibStub.lua
1416
Libs\CallbackHandler-1.0\CallbackHandler-1.0.xml
1517
Libs\LibWindow-1.1\LibWindow-1.1\LibWindow-1.1.lua

SwedgeTimer_Vanilla.toc

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
## Interface: 11500
2+
## Title: SwedgeTimer
3+
## Notes: Feature-rich and accurate swing-timer addon for Classic Era and WotLK Classic.
4+
## Author: Swedge
5+
## Version: "@project-version@"
6+
## DefaultState: enabled
7+
## OptDeps: Ace3, LibSharedMedia-3.0, LibStub
8+
## SavedVariables: SwedgeTimerDB
9+
## X-Wago-ID: 9rN4dMND
10+
## X-WoWI-ID: 26295
11+
## X-Curse-Project-ID: 621214
12+
13+
init.lua
14+
15+
Libs\LibStub\LibStub.lua
16+
Libs\CallbackHandler-1.0\CallbackHandler-1.0.xml
17+
Libs\LibWindow-1.1\LibWindow-1.1\LibWindow-1.1.lua
18+
Libs\LibSharedMedia-3.0\lib.xml
19+
Libs\LibRangeCheck-2.0\LibRangeCheck-2.0\LibRangeCheck-2.0.lua
20+
Libs\LibCustomGlow-1.0\LibCustomGlow-1.0.lua
21+
LibLatencyMonitor.lua
22+
LibGlobalCooldown.lua
23+
LibClassicSwingTimerAPI.lua
24+
25+
Libs\AceAddon-3.0\AceAddon-3.0.xml
26+
Libs\AceDB-3.0\AceDB-3.0.xml
27+
Libs\AceDBOptions-3.0\AceDBOptions-3.0.xml
28+
Libs\AceConsole-3.0\AceConsole-3.0.xml
29+
Libs\AceGUI-3.0\AceGUI-3.0.xml
30+
Libs\AceEvent-3.0\AceEVent-3.0.xml
31+
Libs\AceGUI-3.0-SharedMediaWidgets\widget.xml
32+
Libs\AceConfig-3.0\AceConfig-3.0.xml
33+
34+
utils.lua
35+
main.lua
36+
bars.lua
37+
config_presets.lua
38+
option_table_presets.lua
39+
option_tables.lua
40+
config.lua
41+
42+
classes\druid.lua
43+
classes\hunter.lua
44+
classes\paladin.lua
45+
classes\warrior.lua

init.lua

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
local addon_name, st = ...
2+
local isClassic = WOW_PROJECT_ID == WOW_PROJECT_CLASSIC
3+
local isWrath = WOW_PROJECT_ID == WOW_PROJECT_WRATH_CLASSIC and LE_EXPANSION_LEVEL_CURRENT == LE_EXPANSION_WRATH_OF_THE_LICH_KING
4+
5+
st.is_version_supported = true
6+
if not (isWrath or isClassic) then
7+
st.is_version_supported = false
8+
end

main.lua

+5
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,11 @@ end
230230
--=========================================================================================
231231
function ST:OnInitialize()
232232

233+
if st.is_version_supported == false then
234+
self:Print("WARNING: SwedgeTimer does not support this version of World of Warcraft!"
235+
.." You may experience malfunctions.")
236+
end
237+
233238
-- Get player class first
234239
self.player_class_pretty, self.player_class = UnitClass("player")
235240

0 commit comments

Comments
 (0)