Retrieves a list possible values for a named property. Used for the "list" type. The returned list should support localisation by using string-table entries where appropriate.
C#
public string[] GetPropertyElementList(string propertyID)
{
if (propertyID == "mode")
{
StringTable strTable = GetAsset().GetStringTable();
string[] result = new string[10];
int i;
for (i = 1; i < 10; ++i)
result[i] = strTable.GetString("property_list_mode_" + i);
return result;
}
return inherited(propertyID);
}
Display More