from retail
This commit is contained in:
@@ -27,7 +27,7 @@ local default = {
|
||||
|
||||
shadowColor = { 0, 0, 0, 1},
|
||||
shadowXOffset = 1,
|
||||
shadowYOffset = -1,
|
||||
shadowYOffset = -1
|
||||
};
|
||||
|
||||
local properties = {
|
||||
@@ -55,6 +55,7 @@ end
|
||||
|
||||
local function create(parent)
|
||||
local region = CreateFrame("FRAME", nil, parent);
|
||||
region.regionType = "text"
|
||||
region:SetMovable(true);
|
||||
|
||||
local text = region:CreateFontString(nil, "OVERLAY");
|
||||
@@ -62,7 +63,6 @@ local function create(parent)
|
||||
text:SetWordWrap(true);
|
||||
text:SetNonSpaceWrap(true);
|
||||
|
||||
region.values = {};
|
||||
region.duration = 0;
|
||||
region.expirationTime = math.huge;
|
||||
|
||||
@@ -268,7 +268,11 @@ local function modify(parent, region, data)
|
||||
WeakAuras.regionPrototype.modifyFinish(parent, region, data);
|
||||
end
|
||||
|
||||
WeakAuras.RegisterRegionType("text", create, modify, default, GetProperties);
|
||||
local function validate(data)
|
||||
Private.EnforceSubregionExists(data, "subbackground")
|
||||
end
|
||||
|
||||
WeakAuras.RegisterRegionType("text", create, modify, default, GetProperties, validate);
|
||||
|
||||
-- Fallback region type
|
||||
|
||||
|
||||
Reference in New Issue
Block a user