from retail

This commit is contained in:
NoM0Re
2025-01-17 15:35:11 +01:00
parent db45573d1c
commit efa2dae58a
16 changed files with 122 additions and 63 deletions
+6 -6
View File
@@ -35,7 +35,7 @@ local default = {
cooldownEdge = false
};
WeakAuras.regionPrototype.AddAlphaToDefault(default);
Private.regionPrototype.AddAlphaToDefault(default);
local screenWidth, screenHeight = math.ceil(GetScreenWidth() / 20) * 20, math.ceil(GetScreenHeight() / 20) * 20;
@@ -101,7 +101,7 @@ local properties = {
}
};
WeakAuras.regionPrototype.AddProperties(properties, default);
Private.regionPrototype.AddProperties(properties, default);
local function GetProperties(data)
local result = CopyTable(properties)
@@ -140,7 +140,7 @@ end
local function AnchorSubRegion(self, subRegion, anchorType, selfPoint, anchorPoint, anchorXOffset, anchorYOffset)
if anchorType == "area" then
WeakAuras.regionPrototype.AnchorSubRegion(selfPoint == "region" and self or self.icon, subRegion, anchorType, selfPoint, anchorPoint, anchorXOffset, anchorYOffset)
Private.regionPrototype.AnchorSubRegion(selfPoint == "region" and self or self.icon, subRegion, anchorType, selfPoint, anchorPoint, anchorXOffset, anchorYOffset)
else
subRegion:ClearAllPoints()
anchorPoint = anchorPoint or "CENTER"
@@ -335,7 +335,7 @@ local function create(parent, data)
end
end
WeakAuras.regionPrototype.create(region);
Private.regionPrototype.create(region);
region.AnchorSubRegion = AnchorSubRegion
@@ -347,7 +347,7 @@ local function modify(parent, region, data)
region.stacks = nil
region.text2 = nil
WeakAuras.regionPrototype.modify(parent, region, data);
Private.regionPrototype.modify(parent, region, data);
local button, icon, cooldown = region.button, region.icon, region.cooldown;
@@ -674,7 +674,7 @@ local function modify(parent, region, data)
end
end
WeakAuras.regionPrototype.modifyFinish(parent, region, data);
Private.regionPrototype.modifyFinish(parent, region, data);
--- WORKAROUND
-- This fixes a issue with barmodels not appearing on icons if the