-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.lua
More file actions
47 lines (40 loc) · 1.29 KB
/
init.lua
File metadata and controls
47 lines (40 loc) · 1.29 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
if C_AddOns.IsAddOnLoaded("Angleur") then
AngleurUnderlight_AngLoaded = true
end
SLASH_ANGLEURUNDERLIGHTRESET1 = "/undangres"
SlashCmdList["ANGLEURUNDERLIGHTRESET"] = function()
AngleurUnderlight_FirstInstall = nil
print("Reset first install variable for: Angleur_Underlight")
end
if AngleurUnderlight_AngLoaded then return end
SLASH_ANGLEURUNDERLIGHTSHOW1 = "/undang"
SlashCmdList["ANGLEURUNDERLIGHTSHOW"] = function()
Angleur_Underlight_NoAngleurFrame:Show()
end
function Angleur_BetaPrint(text, ...)
-- do nothing
end
function Angleur_BetaDump(dump)
-- do nothing
end
function Angleur_SingleDelayer(delay, timeElapsed, elapsedThreshhold, delayFrame, cycleFunk, endFunk)
delayFrame:SetScript("OnUpdate", function(self, elapsed)
timeElapsed = timeElapsed + elapsed
if timeElapsed > elapsedThreshhold then
if cycleFunk then
if cycleFunk() == true then
--print("Breaking delayer")
self:SetScript("OnUpdate", nil)
return
end
end
delay = delay - timeElapsed
timeElapsed = 0
end
if delay <= 0 then
self:SetScript("OnUpdate", nil)
endFunk()
return
end
end)
end