from retail
This commit is contained in:
@@ -3839,11 +3839,9 @@ end
|
||||
|
||||
function GenericTrigger.GetAdditionalProperties(data, triggernum)
|
||||
local trigger = data.triggers[triggernum].trigger
|
||||
local ret = "";
|
||||
local ret = {""};
|
||||
local prototype = GenericTrigger.GetPrototype(trigger)
|
||||
if prototype then
|
||||
local found = false;
|
||||
local additional = ""
|
||||
for _, v in pairs(prototype.args) do
|
||||
local enable = true
|
||||
if(type(v.enable) == "function") then
|
||||
@@ -3853,16 +3851,11 @@ function GenericTrigger.GetAdditionalProperties(data, triggernum)
|
||||
end
|
||||
|
||||
if (enable and v.store and v.name and v.display and v.conditionType ~= "bool") then
|
||||
found = true;
|
||||
additional = additional .. "|cFFFFCC00%".. triggernum .. "." .. v.name .. "|r - " .. v.display .. "\n";
|
||||
table.insert(ret, "|cFFFFCC00%".. triggernum .. "." .. v.name .. "|r - " .. v.display .. "\n")
|
||||
end
|
||||
end
|
||||
if prototype.countEvents then
|
||||
found = true;
|
||||
additional = additional .. "|cFFFFCC00%".. triggernum .. ".count|r - " .. L["Count"] .. "\n";
|
||||
end
|
||||
if (found) then
|
||||
ret = ret .. additional;
|
||||
table.insert(ret, "|cFFFFCC00%".. triggernum .. ".count|r - " .. L["Count"] .. "\n")
|
||||
end
|
||||
else
|
||||
if (trigger.custom_type == "stateupdate") then
|
||||
@@ -3871,7 +3864,7 @@ function GenericTrigger.GetAdditionalProperties(data, triggernum)
|
||||
for var, varData in pairs(variables) do
|
||||
if (type(varData) == "table") then
|
||||
if varData.display then
|
||||
ret = ret .. "|cFFFFCC00%".. triggernum .. "." .. var .. "|r - " .. varData.display .. "\n"
|
||||
table.insert(ret, "|cFFFFCC00%".. triggernum .. "." .. var .. "|r - " .. varData.display .. "\n")
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -3879,7 +3872,7 @@ function GenericTrigger.GetAdditionalProperties(data, triggernum)
|
||||
end
|
||||
end
|
||||
|
||||
return ret;
|
||||
return table.concat(ret);
|
||||
end
|
||||
|
||||
function GenericTrigger.GetProgressSources(data, triggernum, values)
|
||||
|
||||
Reference in New Issue
Block a user