from retail
This commit is contained in:
@@ -374,8 +374,17 @@ end
|
||||
|
||||
local function CreateHiddenAll(subOption)
|
||||
return function(data, info)
|
||||
local mainOptions = OptionsPrivate.EnsureOptions(data, subOption)
|
||||
for i=1,#info do
|
||||
mainOptions = mainOptions.args[info[i]];
|
||||
end
|
||||
|
||||
if(#data.controlledChildren == 0) then
|
||||
return true;
|
||||
if mainOptions.hiddenAllIfAnyHidden then
|
||||
return false
|
||||
else
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
for child in OptionsPrivate.Private.TraverseLeafs(data) do
|
||||
@@ -387,13 +396,24 @@ local function CreateHiddenAll(subOption)
|
||||
childOptionTable[i] = childOption;
|
||||
end
|
||||
if (childOption) then
|
||||
if (not hiddenChild(childOptionTable, info)) then
|
||||
return false;
|
||||
local childHidden = hiddenChild(childOptionTable, info)
|
||||
if mainOptions.hiddenAllIfAnyHidden then
|
||||
if childHidden then
|
||||
return true
|
||||
end
|
||||
else
|
||||
if not childHidden then
|
||||
return false
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return true;
|
||||
if mainOptions.hiddenAllIfAnyHidden then
|
||||
return false
|
||||
else
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -385,7 +385,7 @@ local function createOptions(id, data)
|
||||
},
|
||||
};
|
||||
|
||||
options = WeakAuras.regionPrototype.AddAdjustedDurationOptions(options, data, 36.5);
|
||||
options = OptionsPrivate.Private.regionPrototype.AddAdjustedDurationOptions(options, data, 36.5);
|
||||
|
||||
local overlayInfo = OptionsPrivate.Private.GetOverlayInfo(data);
|
||||
if (overlayInfo and next(overlayInfo)) then
|
||||
|
||||
@@ -288,7 +288,7 @@ local function createOptions(id, data)
|
||||
name = "",
|
||||
},
|
||||
};
|
||||
options = WeakAuras.regionPrototype.AddAdjustedDurationOptions(options, data, 57);
|
||||
options = OptionsPrivate.Private.regionPrototype.AddAdjustedDurationOptions(options, data, 57);
|
||||
|
||||
local overlayInfo = OptionsPrivate.Private.GetOverlayInfo(data);
|
||||
if (overlayInfo and next(overlayInfo)) then
|
||||
|
||||
Reference in New Issue
Block a user