from retail

This commit is contained in:
Bunny67
2021-01-01 18:04:43 +03:00
parent a850db8ab5
commit 9c5f676808
6 changed files with 32 additions and 19 deletions
@@ -469,9 +469,8 @@ local function createOptions(parentData, data, index, subIndex)
end
if parentData.controlledChildren then
for _, childId in pairs(parentData.controlledChildren) do
for childIndex, childId in pairs(parentData.controlledChildren) do
local parentChildData = WeakAuras.GetData(childId)
if parentChildData.subRegions then
local childData = parentChildData.subRegions[index]
if childData then
@@ -479,7 +478,7 @@ local function createOptions(parentData, data, index, subIndex)
return childData["text_text_format_" .. key]
end
local input = childData["text_text"]
OptionsPrivate.AddTextFormatOption(input, true, get, addOption, hidden, setHidden)
OptionsPrivate.AddTextFormatOption(input, true, get, addOption, hidden, setHidden, childIndex, #parentData.controlledChildren)
end
end
end