from retail
This commit is contained in:
@@ -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 SharedMedia = LibStub("LibSharedMedia-3.0");
|
||||
@@ -1004,19 +1004,19 @@ end
|
||||
-- Called when first creating a new region/display
|
||||
local function create(parent)
|
||||
-- Create overall region (containing everything else)
|
||||
local region = CreateFrame("FRAME", nil, parent);
|
||||
local region = CreateFrame("Frame", nil, parent);
|
||||
region.regionType = "aurabar"
|
||||
region:SetMovable(true);
|
||||
region:SetResizable(true);
|
||||
region:SetMinResize(1, 1);
|
||||
|
||||
-- Create statusbar (inherit prototype)
|
||||
local bar = CreateFrame("FRAME", nil, region);
|
||||
local bar = CreateFrame("Frame", nil, region);
|
||||
WeakAuras.Mixin(bar, SmoothStatusBarMixin);
|
||||
local fg = bar:CreateTexture(nil, "BORDER");
|
||||
local bg = bar:CreateTexture(nil, "BACKGROUND");
|
||||
bg:SetAllPoints();
|
||||
local fgFrame = CreateFrame("FRAME", nil, bar)
|
||||
local fgFrame = CreateFrame("Frame", nil, bar)
|
||||
local spark = bar:CreateTexture(nil, "ARTWORK");
|
||||
bar.fg = fg;
|
||||
bar.fgFrame = fgFrame
|
||||
@@ -1031,7 +1031,7 @@ local function create(parent)
|
||||
region.bar = bar;
|
||||
|
||||
-- Create icon
|
||||
local iconFrame = CreateFrame("FRAME", nil, region);
|
||||
local iconFrame = CreateFrame("Frame", nil, region);
|
||||
region.iconFrame = iconFrame;
|
||||
local icon = iconFrame:CreateTexture(nil, "OVERLAY");
|
||||
region.icon = icon;
|
||||
@@ -1187,7 +1187,7 @@ local function modify(parent, region, data)
|
||||
if tooltipType and data.useTooltip then
|
||||
-- Create and enable tooltip-hover frame
|
||||
if not region.tooltipFrame then
|
||||
region.tooltipFrame = CreateFrame("frame", nil, region);
|
||||
region.tooltipFrame = CreateFrame("Frame", nil, region);
|
||||
region.tooltipFrame:SetAllPoints(icon);
|
||||
region.tooltipFrame:SetScript("OnEnter", function()
|
||||
Private.ShowMouseoverTooltip(region, region.tooltipFrame);
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 SharedMedia = LibStub("LibSharedMedia-3.0");
|
||||
@@ -25,14 +25,14 @@ local default = {
|
||||
-- Called when first creating a new region/display
|
||||
local function create(parent)
|
||||
-- Main region
|
||||
local region = CreateFrame("FRAME", nil, parent);
|
||||
local region = CreateFrame("Frame", nil, parent);
|
||||
region.regionType = "group"
|
||||
region:SetMovable(true);
|
||||
region:SetWidth(2);
|
||||
region:SetHeight(2);
|
||||
|
||||
-- Border region
|
||||
local border = CreateFrame("frame", nil, region);
|
||||
local border = CreateFrame("Frame", nil, region);
|
||||
region.border = border;
|
||||
|
||||
WeakAuras.regionPrototype.create(region);
|
||||
|
||||
@@ -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 SharedMedia = LibStub("LibSharedMedia-3.0");
|
||||
@@ -143,7 +143,7 @@ local function AnchorSubRegion(self, subRegion, anchorType, selfPoint, anchorPoi
|
||||
local anchorRegion = self.icon
|
||||
if anchorPoint:sub(1, 6) == "INNER_" then
|
||||
if not self.inner then
|
||||
self.inner = CreateFrame("FRAME", nil, self)
|
||||
self.inner = CreateFrame("Frame", nil, self)
|
||||
self.inner:SetPoint("CENTER")
|
||||
self.UpdateInnerOuterSize()
|
||||
end
|
||||
@@ -151,7 +151,7 @@ local function AnchorSubRegion(self, subRegion, anchorType, selfPoint, anchorPoi
|
||||
anchorPoint = anchorPoint:sub(7)
|
||||
elseif anchorPoint:sub(1, 6) == "OUTER_" then
|
||||
if not self.outer then
|
||||
self.outer = CreateFrame("FRAME", nil, self)
|
||||
self.outer = CreateFrame("Frame", nil, self)
|
||||
self.outer:SetPoint("CENTER")
|
||||
self.UpdateInnerOuterSize()
|
||||
end
|
||||
@@ -243,7 +243,7 @@ end
|
||||
local function create(parent, data)
|
||||
local font = "GameFontHighlight";
|
||||
|
||||
local region = CreateFrame("FRAME", nil, parent);
|
||||
local region = CreateFrame("Frame", nil, parent);
|
||||
region.regionType = "icon"
|
||||
region:SetMovable(true);
|
||||
region:SetResizable(true);
|
||||
@@ -312,7 +312,7 @@ local function create(parent, data)
|
||||
end
|
||||
region.frameId = frameId;
|
||||
|
||||
local cooldown = CreateFrame("COOLDOWN", "WeakAurasCooldown"..frameId, region, "CooldownFrameTemplate");
|
||||
local cooldown = CreateFrame("Cooldown", "WeakAurasCooldown"..frameId, region, "CooldownFrameTemplate");
|
||||
region.cooldown = cooldown;
|
||||
cooldown:SetAllPoints(icon);
|
||||
|
||||
@@ -428,7 +428,7 @@ local function modify(parent, region, data)
|
||||
local tooltipType = Private.CanHaveTooltip(data);
|
||||
if(tooltipType and data.useTooltip) then
|
||||
if not region.tooltipFrame then
|
||||
region.tooltipFrame = CreateFrame("frame", nil, region);
|
||||
region.tooltipFrame = CreateFrame("Frame", nil, region);
|
||||
region.tooltipFrame:SetAllPoints(region);
|
||||
region.tooltipFrame:SetScript("OnEnter", function()
|
||||
Private.ShowMouseoverTooltip(region, region);
|
||||
|
||||
@@ -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 SharedMedia = LibStub("LibSharedMedia-3.0");
|
||||
@@ -69,14 +69,14 @@ local regionFunctions = {
|
||||
-- Called when first creating a new region/display
|
||||
local function create(parent)
|
||||
-- Main region
|
||||
local region = CreateFrame("FRAME", nil, UIParent);
|
||||
local region = CreateFrame("Frame", nil, UIParent);
|
||||
region.regionType = "model"
|
||||
region:SetMovable(true);
|
||||
region:SetResizable(true);
|
||||
region:SetMinResize(1, 1);
|
||||
|
||||
-- Border region
|
||||
local border = CreateFrame("frame", nil, region);
|
||||
local border = CreateFrame("Frame", nil, region);
|
||||
region.border = border;
|
||||
|
||||
WeakAuras.regionPrototype.create(region);
|
||||
|
||||
@@ -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 L = WeakAuras.L;
|
||||
@@ -424,7 +424,7 @@ WeakAuras.createSpinner = createSpinner;
|
||||
local function create(parent)
|
||||
local font = "GameFontHighlight";
|
||||
|
||||
local region = CreateFrame("FRAME", nil, parent);
|
||||
local region = CreateFrame("Frame", nil, parent);
|
||||
region.regionType = "progresstexture"
|
||||
region:SetMovable(true);
|
||||
region:SetResizable(true);
|
||||
|
||||
@@ -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;
|
||||
@@ -624,7 +624,7 @@ end
|
||||
|
||||
local regionsForFrameTick = {}
|
||||
|
||||
local frameForFrameTick = CreateFrame("FRAME");
|
||||
local frameForFrameTick = CreateFrame("Frame");
|
||||
|
||||
WeakAuras.frames["Frame Tick Frame"] = frameForFrameTick
|
||||
|
||||
|
||||
@@ -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 texture_types = WeakAuras.StopMotion.texture_types;
|
||||
@@ -90,7 +90,7 @@ local properties = {
|
||||
WeakAuras.regionPrototype.AddProperties(properties, default);
|
||||
|
||||
local function create(parent)
|
||||
local frame = CreateFrame("FRAME", nil, UIParent);
|
||||
local frame = CreateFrame("Frame", nil, UIParent);
|
||||
frame.regionType = "stopmotion"
|
||||
frame:SetMovable(true);
|
||||
frame:SetResizable(true);
|
||||
|
||||
@@ -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 SharedMedia = LibStub("LibSharedMedia-3.0");
|
||||
@@ -54,7 +54,7 @@ local function GetProperties(data)
|
||||
end
|
||||
|
||||
local function create(parent)
|
||||
local region = CreateFrame("FRAME", nil, parent);
|
||||
local region = CreateFrame("Frame", nil, parent);
|
||||
region.regionType = "text"
|
||||
region:SetMovable(true);
|
||||
|
||||
@@ -98,7 +98,7 @@ local function modify(parent, region, data)
|
||||
local tooltipType = Private.CanHaveTooltip(data);
|
||||
if(tooltipType and data.useTooltip) then
|
||||
if not region.tooltipFrame then
|
||||
region.tooltipFrame = CreateFrame("frame", nil, region);
|
||||
region.tooltipFrame = CreateFrame("Frame", nil, region);
|
||||
region.tooltipFrame:SetAllPoints(region);
|
||||
region.tooltipFrame:SetScript("OnEnter", function()
|
||||
Private.ShowMouseoverTooltip(region, region);
|
||||
|
||||
@@ -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 L = WeakAuras.L;
|
||||
@@ -68,7 +68,7 @@ local properties = {
|
||||
WeakAuras.regionPrototype.AddProperties(properties, default);
|
||||
|
||||
local function create(parent)
|
||||
local region = CreateFrame("FRAME", nil, UIParent);
|
||||
local region = CreateFrame("Frame", nil, UIParent);
|
||||
region.regionType = "texture"
|
||||
region:SetMovable(true);
|
||||
region:SetResizable(true);
|
||||
|
||||
Reference in New Issue
Block a user