-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLibInit.lua
32 lines (32 loc) · 1007 Bytes
/
LibInit.lua
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
-- Development Utilities
-- This file intentionally blank for non internal release
--@do-not-package@
local core=LibStub("LibInit"):NewAddon('LibinitCoreUtils',"AceConsole-3.0") --#Core
AlarDbg=true
C_AddOns.LoadAddOn("Blizzard_DebugTools")
C_AddOns.LoadAddOn("LibDebug")
if LibDebug then
LibDebug()
else
core:Print("Missing LibDebug",LibDebug)
end
function core:OnInitialized()
self:RegisterChatCommand("mark","Mark")
end
local lastframe
local AXI
function core:Mark(args,chatFrame)
local point,frame=self:GetArgs(args,2)
if (not frame) then frame=lastframe end
if (not frame) then self:Print("Error: no frame") return end
self:Print("Anchoring to ",frame:GetName(),point)
if (not AXI) then AXI=CreateFrame("Frame","AXI",UIParent,"GarrisonAbilityCounterTemplate") end
if (not point) then AXI:Hide() return end
AXI:ClearAllPoints()
AXI:SetPoint(point,frame)
AXI.Border:SetVertexColor(1,0,0)
AXI:SetFrameLevel(999)
AXI:Show()
end
core:Print("Loaded Libinit Core Utils")
--@end-do-not-package@