from retail
This commit is contained in:
@@ -4,21 +4,21 @@ local AddonName, Private = ...
|
||||
local WeakAuras = WeakAuras;
|
||||
local L = WeakAuras.L;
|
||||
|
||||
WeakAuras.regionPrototype = {};
|
||||
Private.regionPrototype = {};
|
||||
|
||||
-- Alpha
|
||||
function WeakAuras.regionPrototype.AddAlphaToDefault(default)
|
||||
function Private.regionPrototype.AddAlphaToDefault(default)
|
||||
default.alpha = 1.0;
|
||||
end
|
||||
|
||||
-- Adjusted Duration
|
||||
|
||||
function WeakAuras.regionPrototype.AddAdjustedDurationToDefault(default)
|
||||
function Private.regionPrototype.AddAdjustedDurationToDefault(default)
|
||||
default.useAdjustededMax = false;
|
||||
default.useAdjustededMin = false;
|
||||
end
|
||||
|
||||
function WeakAuras.regionPrototype.AddAdjustedDurationOptions(options, data, order)
|
||||
function Private.regionPrototype.AddAdjustedDurationOptions(options, data, order)
|
||||
options.useAdjustededMin = {
|
||||
type = "toggle",
|
||||
width = WeakAuras.normalWidth,
|
||||
@@ -100,7 +100,7 @@ function Private.GetAnchorsForData(parentData, type)
|
||||
end
|
||||
|
||||
-- Sound / Chat Message / Custom Code
|
||||
function WeakAuras.regionPrototype.AddProperties(properties, defaultsForRegion)
|
||||
function Private.regionPrototype.AddProperties(properties, defaultsForRegion)
|
||||
properties["sound"] = {
|
||||
display = L["Sound"],
|
||||
action = "SoundPlay",
|
||||
@@ -452,9 +452,9 @@ local function AnchorSubRegion(self, subRegion, anchorType, selfPoint, anchorPoi
|
||||
end
|
||||
end
|
||||
|
||||
WeakAuras.regionPrototype.AnchorSubRegion = AnchorSubRegion
|
||||
Private.regionPrototype.AnchorSubRegion = AnchorSubRegion
|
||||
|
||||
function WeakAuras.regionPrototype.create(region)
|
||||
function Private.regionPrototype.create(region)
|
||||
local defaultsForRegion = Private.regionTypes[region.regionType] and Private.regionTypes[region.regionType].default;
|
||||
region.SoundPlay = SoundPlay;
|
||||
region.SoundRepeatStop = SoundRepeatStop;
|
||||
@@ -500,7 +500,7 @@ end
|
||||
|
||||
-- SetDurationInfo
|
||||
|
||||
function WeakAuras.regionPrototype.modify(parent, region, data)
|
||||
function Private.regionPrototype.modify(parent, region, data)
|
||||
region.state = nil
|
||||
region.states = nil
|
||||
region.subRegionEvents:ClearSubscribers()
|
||||
@@ -587,7 +587,7 @@ function WeakAuras.regionPrototype.modify(parent, region, data)
|
||||
end, true)
|
||||
end
|
||||
|
||||
function WeakAuras.regionPrototype.modifyFinish(parent, region, data)
|
||||
function Private.regionPrototype.modifyFinish(parent, region, data)
|
||||
-- Sync subRegions
|
||||
if region.subRegions then
|
||||
for index, subRegion in pairs(region.subRegions) do
|
||||
@@ -674,7 +674,7 @@ local function TimerTickForSetDuration(self)
|
||||
self:SetTime(max - adjustMin, self.expirationTime - adjustMin, self.inverse);
|
||||
end
|
||||
|
||||
function WeakAuras.regionPrototype.AddSetDurationInfo(region)
|
||||
function Private.regionPrototype.AddSetDurationInfo(region)
|
||||
if (region.SetValue and region.SetTime) then
|
||||
region.generatedSetDurationInfo = true;
|
||||
|
||||
@@ -704,7 +704,7 @@ function WeakAuras.regionPrototype.AddSetDurationInfo(region)
|
||||
end
|
||||
|
||||
-- Expand/Collapse function
|
||||
function WeakAuras.regionPrototype.AddExpandFunction(data, region, cloneId, parent, parentRegionType)
|
||||
function Private.regionPrototype.AddExpandFunction(data, region, cloneId, parent, parentRegionType)
|
||||
local uid = data.uid
|
||||
local id = data.id
|
||||
local inDynamicGroup = parentRegionType == "dynamicgroup";
|
||||
|
||||
Reference in New Issue
Block a user