mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-31 16:06:57 +00:00
The polling lurker frame is gone. HookAddon gates on C_AddOns.DoesAddOnExist, waits for PLAYER_LOGIN with EventUtil.ContinueOnPlayerLogin, then runs on EventUtil.ContinueOnAddOnLoaded. Addons loaded at startup still hook only after every pfUI module and skin exists and after the addon's own VARIABLES_LOADED setup. Load-on-demand addons still hook on their ADDON_LOADED. The "or variable" form is gone. Callers that passed a global now pass the addon that defines it: TheoryCraft, SuperMacro, DPSMate and Turtle_GroupUI. DPSMate names its windows from its settings, so its hook now checks for DPSMate_DPSMate itself, as the variable lookup used to. eqcompare's Guda check uses HookAddon too.
27 lines
854 B
Lua
27 lines
854 B
Lua
pfUI:RegisterSkin("Battlefield Minimap", function ()
|
|
local rawborder, border = GetBorderSize()
|
|
|
|
HookAddon("Blizzard_BattlefieldMinimap", function()
|
|
StripTextures(BattlefieldMinimap)
|
|
CreateBackdrop(BattlefieldMinimap, nil, nil, 0)
|
|
CreateBackdropShadow(BattlefieldMinimap)
|
|
|
|
BattlefieldMinimap:SetSize(220, 146)
|
|
|
|
SkinCloseButton(BattlefieldMinimapCloseButton, BattlefieldMinimap, 0, 0)
|
|
|
|
SkinTab(BattlefieldMinimapTab)
|
|
BattlefieldMinimapTabText:ClearAllPoints()
|
|
BattlefieldMinimapTabText:SetPoint("CENTER", 0, 0)
|
|
|
|
BattlefieldMinimap:HookScript("OnShow", function()
|
|
BattlefieldMinimapTab:Hide()
|
|
end)
|
|
|
|
hooksecurefunc("BattlefieldMinimap_ShowOpacity", function()
|
|
OpacityFrame:ClearAllPoints()
|
|
OpacityFrame:SetPoint("TOPRIGHT", "BattlefieldMinimap", "TOPLEFT", -2*border, 0)
|
|
end)
|
|
end)
|
|
end)
|