forked from Reloe/NorthernSkyRaidTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNorthernSkyRaidTools.lua
More file actions
46 lines (40 loc) · 1.44 KB
/
NorthernSkyRaidTools.lua
File metadata and controls
46 lines (40 loc) · 1.44 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
local _, NSI = ... -- Internal namespace
_G["NSAPI"] = {}
NSI.specs = {}
NSI.LCG = LibStub("LibCustomGlow-1.0")
NSI.LGF = LibStub("LibGetFrame-1.0")
NSI.NSRTFrame = CreateFrame("Frame", nil, UIParent)
NSI.NSRTFrame:SetAllPoints(UIParent)
NSI.NSRTFrame:SetFrameStrata("BACKGROUND")
local LDB = LibStub("LibDataBroker-1.1")
local LDBIcon = LDB and LibStub("LibDBIcon-1.0")
function NSI:InitLDB()
if LDB then
local databroker = LDB:NewDataObject("NSRT", {
type = "launcher",
label = "Northern Sky Raid Tools",
icon = [[Interface\AddOns\NorthernSkyRaidTools\Media\NSLogo]],
showInCompartment = true,
OnClick = function(self, button)
if button == "LeftButton" then
NSI.NSUI:ToggleOptions()
end
end,
OnTooltipShow = function(tooltip)
tooltip:AddLine("Northern Sky Raid Tools", 0, 1, 1)
tooltip:AddLine("|cFFCFCFCFLeft click|r: Show/Hide Options Window")
end
})
if (databroker and not LDBIcon:IsRegistered("NSRT")) then
LDBIcon:Register("NSRT", databroker, NSRT.Settings["Minimap"])
LDBIcon:AddButtonToCompartment("NSRT")
end
self.databroker = databroker
end
end
NSI.EncounterAlertStart = {}
NSI.EncounterAlertStop = {}
NSI.ShowWarningAlert = {}
NSI.ShowBossWhisperAlert = {}
NSI.AddAssignments = {}
NSI.DetectPhaseChange = {}