-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathiPMythicTimer.lua
More file actions
62 lines (48 loc) · 1.76 KB
/
iPMythicTimer.lua
File metadata and controls
62 lines (48 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
local AddonName, Addon = ...
local function toggleOptions()
Addon:ShowOptions()
end
----------------------------------------------------------------
-- Tooltip komplett deaktiviert (Retail Secure Changes)
-- Keine TooltipDataProcessor Nutzung mehr!
----------------------------------------------------------------
----------------------------------------------------------------
-- DEBUG
----------------------------------------------------------------
local debugLines = {}
local function PrintDebug()
local text = table.concat(debugLines, "\n")
if not Addon.fDebug:IsShown() then
Addon.fDebug:Show()
end
Addon.fDebug.textarea:SetText(text)
end
function Addon:ClearDebug()
wipe(debugLines)
PrintDebug()
end
function Addon:AddDebug(text)
if #debugLines >= 17 then
table.remove(debugLines, 1)
end
table.insert(debugLines, text)
PrintDebug()
end
----------------------------------------------------------------
-- ADDON START
----------------------------------------------------------------
function Addon:StartAddon()
SLASH_IPMTOPTS1 = "/ipmt"
SLASH_IPMTDEBUG1 = "/ipmt_debug"
SlashCmdList["IPMTOPTS"] = toggleOptions
SlashCmdList["IPMTDEBUG"] = PrintDebug
Addon.fMain:RegisterEvent("ADDON_LOADED")
Addon.fMain:RegisterEvent("CHALLENGE_MODE_DEATH_COUNT_UPDATED")
Addon.fMain:RegisterEvent("CHALLENGE_MODE_COMPLETED")
Addon.fMain:RegisterEvent("CHALLENGE_MODE_RESET")
Addon.fMain:RegisterEvent("PLAYER_ENTERING_WORLD")
Addon.fMain:RegisterEvent("CHALLENGE_MODE_KEYSTONE_RECEPTABLE_OPEN")
Addon.fMain:RegisterEvent("VARIABLES_LOADED")
DEFAULT_CHAT_FRAME:AddMessage(Addon.localization.STARTINFO)
end
Addon:StartAddon()