ModularList
ReferencesAn array of input or output parameters of a ModularComponent which maintains the hidden/shown states of the optional parameters.
Constructors
ModularList
#Properties
Categories
#Enumerate over all parameter categories. Parameters are grouped if they're optional and share the same __Category custom value.
OptionalParameters
#Enumerate over all optional parameters. An optional parameter must have a TRUE value in the CustomValues stored under ModularComponent.__Optional.
Indexers
Methods
Hide
#Hide the parameter at the given index. This is only possible if the parameter is optional. Any wires currently connected to the parameter are severed (with the disconnections added to the undo list) and the connection data is cached in the parameter's CustomValues so that the wires can be reinstated when the parameter is shown again.
public void Hide()
index,
Index of the parameter to hide.
undo = null
Optional undo list. Wire disconnection actions and the visibility/cache state change action are added here.
IndexOf
#IsOptional
#IsVisible
#Gets whether the parameter with the given index is visible.
ResolveCategory
#ResolveColour
#ResolveIcon
#ResolveName
#Show
#Show the parameter at the given index. If the parameter has a cached list of wires recorded from a previous hide operation, those wires are reinstated where possible. Any wires successfully reconnected are appended to the undo list.
public void Show()
index,
Index of the parameter to show.
undo = null
Optional undo list. Wire reconnection actions and the visibility/cache state change action are added here.