from retail

This commit is contained in:
Bunny67
2020-08-15 02:05:37 +03:00
parent afc15017e4
commit 046886e367
3 changed files with 19 additions and 11 deletions
+1 -1
View File
@@ -1229,7 +1229,7 @@ end
function WeakAuras.MatchInfo(data, children, target)
-- match the parent/single aura (if no children)
local oldParent = target or findMatch(data)
local oldParent = target or findMatch(data, children)
if not oldParent then return nil end
-- setup
local info = {
+11 -2
View File
@@ -725,14 +725,23 @@ local function addControlsForChange(args, order, data, conditionVariable, condit
end
local hasTextFormatOption
local hidden = function()
return WeakAuras.IsCollapsed("format_option", "conditions", i .. "#" .. j , true)
end
local setHidden = function(hidden)
WeakAuras.SetCollapsed("format_option", "conditions", i .. "#" .. j, hidden)
end
if data.controlledChildren then
for id, reference in pairs(conditions[i].changes[j].references) do
local input = reference.value and reference.value.message
hasTextFormatOption = WeakAuras.AddTextFormatOption(input, true, formatGet, addOption)
hasTextFormatOption = WeakAuras.AddTextFormatOption(input, true, formatGet, addOption, hidden, setHidden)
end
else
local input = type(conditions[i].changes[j].value) == "table" and conditions[i].changes[j].value["message"]
hasTextFormatOption = WeakAuras.AddTextFormatOption(input, true, formatGet, addOption)
hasTextFormatOption = WeakAuras.AddTextFormatOption(input, true, formatGet, addOption, hidden, setHidden)
end
if hasTextFormatOption then
+2 -3
View File
@@ -1652,10 +1652,9 @@ function WeakAuras.AddTextFormatOption(input, withHeader, get, addOption, hidden
if (WeakAuras.format_types[selectedFormat]) then
WeakAuras.format_types[selectedFormat].AddOptions(symbol, hidden, addOption, get)
end
end
end
seenSymbols[symbol] = true
end
end
end)
if not next(seenSymbols) and withHeader then