initial commit

This commit is contained in:
Gitea
2020-11-13 14:27:50 -05:00
commit e2015fd9bb
581 changed files with 101308 additions and 0 deletions

23
Modules/Blizzard/GM.lua Normal file
View File

@@ -0,0 +1,23 @@
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local B = E:GetModule('Blizzard')
local _G = _G
local hooksecurefunc = hooksecurefunc
local function SetPosition(frame, _, anchor)
if anchor and (anchor == _G.UIParent) then
frame:ClearAllPoints()
frame:Point('TOPLEFT', _G.GMMover, 0, 0)
end
end
function B:PositionGMFrames()
local TicketStatusFrame = _G.TicketStatusFrame
TicketStatusFrame:ClearAllPoints()
TicketStatusFrame:Point('TOPLEFT', E.UIParent, 'TOPLEFT', 250, -5)
E:CreateMover(TicketStatusFrame, 'GMMover', L["GM Ticket Frame"])
--Blizzard repositions this frame now in UIParent_UpdateTopFramePositions
hooksecurefunc(TicketStatusFrame, 'SetPoint', SetPosition)
end