Trainz Object HTML Element
<trainz-object> tags define special browser objects which the user can interact with.
These include a graphic dial, a text entry box or a browser frame and a range of parameters can be applied.
public bool FilterPropertyElementList(string propertyID, GSObject[] listObjects, string[] listNames)
{
if (propertyID == "object-list")
{
bool bDidChangeAnything = false;
// Remove any already added objects from the list
int i;
for (i = 0; i < listObjects.size(); )
{
if (IsAlreadyInList(cast<GameObject>(listObjects[i])))
{
listObjects[i,i+1] = null;
listNames[i,i+1] = null;
bDidChangeAnything = true;
}
else
{
++i;
}
}
return bDidChangeAnything;
}
return inherited(propertyID, listObjects, listNames);
}
Display More