Update GetConditionalIDList to new array delegate syntax

qteditor
Sven Eberhardt 2016-08-06 15:24:03 -04:00
parent c78a98d4b3
commit 714ff028c8
1 changed files with 3 additions and 3 deletions

View File

@ -62,10 +62,10 @@ public func EvaluatePlayers(proplist mask)
}
// Return an ID-List EditorProp with only IDs available that meet the condition
public func GetConditionalIDList(string condition, string name, proplist default_id)
public func GetConditionalIDList(string condition, string name, proplist default_id, string help)
{
var counted_id = { Type = "proplist", Display = "{{count}}x{{id}}", DefaultValue = { count=1, id=default_id }, Name = Format("$Entry$", name), EditorProps = {
var counted_id = { Type = "proplist", Display = "{{count}}x{{id}}", Name = Format("$Entry$", name), EditorProps = {
count = { Type = "int", Min = 1 },
id = { Type = "def", Filter=condition } } };
return { Name = name, Type = "array", Display = 3, Elements = counted_id };
return { Name = name, Type = "array", Display = 3, DefaultValue = { count=1, id=default_id }, Elements = counted_id, EditorHelp = help };
}