from retail
This commit is contained in:
+12
-12
@@ -30,7 +30,7 @@ LibStub("AceTimer-3.0"):Embed(WeakAurasTimers)
|
||||
|
||||
Private.watched_trigger_events = {}
|
||||
|
||||
-- The worlds simplest callback system
|
||||
-- The worlds simplest callback system.
|
||||
-- That supports 1:N, but no deregistration and breaks if registrating in a callback
|
||||
Private.callbacks = {}
|
||||
Private.callbacks.events = {}
|
||||
@@ -141,7 +141,7 @@ function SlashCmdList.WEAKAURAS(input)
|
||||
end
|
||||
end
|
||||
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
function Private.ToggleMinimap()
|
||||
WeakAurasSaved.minimap.hide = not WeakAurasSaved.minimap.hide
|
||||
@@ -913,7 +913,7 @@ local function tooltip_draw()
|
||||
tooltip:Show();
|
||||
end
|
||||
|
||||
local colorFrame = CreateFrame("frame");
|
||||
local colorFrame = CreateFrame("Frame");
|
||||
WeakAuras.frames["LDB Icon Recoloring"] = colorFrame;
|
||||
|
||||
local colorElapsed = 0;
|
||||
@@ -921,7 +921,7 @@ local colorDelay = 2;
|
||||
local r, g, b = 0.8, 0, 1;
|
||||
local r2, g2, b2 = random(2)-1, random(2)-1, random(2)-1;
|
||||
|
||||
local tooltip_update_frame = CreateFrame("FRAME");
|
||||
local tooltip_update_frame = CreateFrame("Frame");
|
||||
WeakAuras.frames["LDB Tooltip Updater"] = tooltip_update_frame;
|
||||
|
||||
-- function copied from LibDBIcon-1.0.lua
|
||||
@@ -1102,12 +1102,12 @@ function Private.Login(initialTime, takeNewSnapshots)
|
||||
end
|
||||
end
|
||||
|
||||
local WeakAurasFrame = CreateFrame("FRAME", "WeakAurasFrame", UIParent);
|
||||
local WeakAurasFrame = CreateFrame("Frame", "WeakAurasFrame", UIParent);
|
||||
WeakAuras.frames["WeakAuras Main Frame"] = WeakAurasFrame;
|
||||
WeakAurasFrame:SetAllPoints(UIParent);
|
||||
WeakAurasFrame:SetFrameStrata("BACKGROUND");
|
||||
|
||||
local loadedFrame = CreateFrame("FRAME");
|
||||
local loadedFrame = CreateFrame("Frame");
|
||||
WeakAuras.frames["Addon Initialization Handler"] = loadedFrame;
|
||||
loadedFrame:RegisterEvent("ADDON_LOADED");
|
||||
loadedFrame:RegisterEvent("PLAYER_LOGIN");
|
||||
@@ -1446,7 +1446,7 @@ function Private.ScanForLoads(toCheck, event, arg1, ...)
|
||||
scanForLoadsImpl(toCheck, event, arg1, ...)
|
||||
end
|
||||
|
||||
local loadFrame = CreateFrame("FRAME");
|
||||
local loadFrame = CreateFrame("Frame");
|
||||
WeakAuras.loadFrame = loadFrame;
|
||||
WeakAuras.frames["Display Load Handling"] = loadFrame;
|
||||
|
||||
@@ -1473,7 +1473,7 @@ loadFrame:RegisterEvent("PLAYER_UNGHOST")
|
||||
loadFrame:RegisterEvent("PLAYER_FLAGS_CHANGED")
|
||||
loadFrame:RegisterEvent("PARTY_LEADER_CHANGED")
|
||||
|
||||
local unitLoadFrame = CreateFrame("FRAME");
|
||||
local unitLoadFrame = CreateFrame("Frame");
|
||||
WeakAuras.unitLoadFrame = unitLoadFrame;
|
||||
WeakAuras.frames["Display Load Handling 2"] = unitLoadFrame;
|
||||
|
||||
@@ -3564,7 +3564,7 @@ end
|
||||
local dynFrame = {};
|
||||
do
|
||||
-- Internal data
|
||||
dynFrame.frame = CreateFrame("frame");
|
||||
dynFrame.frame = CreateFrame("Frame");
|
||||
dynFrame.update = {};
|
||||
dynFrame.size = 0;
|
||||
|
||||
@@ -4474,12 +4474,12 @@ local function ensureMouseFrame()
|
||||
if (mouseFrame) then
|
||||
return;
|
||||
end
|
||||
mouseFrame = CreateFrame("FRAME", "WeakAurasAttachToMouseFrame", UIParent);
|
||||
mouseFrame = CreateFrame("Frame", "WeakAurasAttachToMouseFrame", UIParent);
|
||||
mouseFrame.attachedVisibleFrames = {};
|
||||
mouseFrame:SetWidth(1);
|
||||
mouseFrame:SetHeight(1);
|
||||
|
||||
local moverFrame = CreateFrame("FRAME", "WeakAurasMousePointerFrame", mouseFrame);
|
||||
local moverFrame = CreateFrame("Frame", "WeakAurasMousePointerFrame", mouseFrame);
|
||||
mouseFrame.moverFrame = moverFrame;
|
||||
moverFrame:SetPoint("TOPLEFT", mouseFrame, "CENTER");
|
||||
moverFrame:SetWidth(32);
|
||||
@@ -4794,7 +4794,7 @@ local function postponeAnchor(id)
|
||||
end
|
||||
end
|
||||
|
||||
local HiddenFrames = CreateFrame("FRAME", "WeakAurasHiddenFrames")
|
||||
local HiddenFrames = CreateFrame("Frame", "WeakAurasHiddenFrames")
|
||||
HiddenFrames:Hide()
|
||||
WeakAuras.HiddenFrames = HiddenFrames
|
||||
|
||||
|
||||
Reference in New Issue
Block a user