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
+5 -1
View File
@@ -770,9 +770,13 @@ local function addControlsForChange(args, order, data, conditionVariable, condit
end
if data.controlledChildren then
local ordered = {}
for id, reference in pairs(conditions[i].changes[j].references) do
tinsert(ordered, reference)
end
for index, reference in ipairs(ordered) do
local input = reference.value and reference.value.message
hasTextFormatOption = OptionsPrivate.AddTextFormatOption(input, true, formatGet, addOption, hidden, setHidden)
hasTextFormatOption = OptionsPrivate.AddTextFormatOption(input, true, formatGet, addOption, hidden, setHidden, index, #ordered)
end
else
local input = type(conditions[i].changes[j].value) == "table" and conditions[i].changes[j].value["message"]