from retail

This commit is contained in:
NoM0Re
2025-01-05 15:08:50 +01:00
parent 95db2e326e
commit 8375cfa0a7
115 changed files with 332 additions and 261 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() then return end
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local WeakAuras = WeakAuras
@@ -79,7 +79,7 @@ local controlPointFunctions = {
}
local function createControlPoint(self)
local controlPoint = CreateFrame("FRAME", nil, self.parent)
local controlPoint = CreateFrame("Frame", nil, self.parent)
WeakAuras.Mixin(controlPoint, controlPointFunctions)
controlPoint:SetWidth(16)
@@ -103,14 +103,14 @@ local function releaseControlPoint(self, controlPoint)
end
local function create(parent)
local region = CreateFrame("FRAME", nil, parent)
local region = CreateFrame("Frame", nil, parent)
region.regionType = "dynamicgroup"
region:SetSize(16, 16)
region:SetMovable(true)
region.sortedChildren = {}
region.controlledChildren = {}
region.updatedChildren = {}
local background = CreateFrame("frame", nil, region)
local background = CreateFrame("Frame", nil, region)
region.background = background
region.selfPoint = "TOPLEFT"
region.controlPoints = CreateObjectPool(createControlPoint, releaseControlPoint)