circuit_component_add_port

Helper component that handles users adding/removing ports from a circuit component.
Vars | |
| add_action | The action to add a port on |
|---|---|
| is_output | Whether we are adding output ports or not |
| maximum_amount | The maximum amount of ports allowed |
| minimum_amount | The minimum amount of ports required |
| order | The order of the new ports |
| port_list | The list to add the ports to when created |
| port_type | The type of port |
| prefix | The prefix of the new ports |
| remove_action | The action to remove a port on |
Procs | |
| add_port | Take the port type of the first stored list element, useful if the types of the ports change |
Var Details
add_action

The action to add a port on
is_output

Whether we are adding output ports or not
maximum_amount

The maximum amount of ports allowed
minimum_amount

The minimum amount of ports required
order

The order of the new ports
port_list

The list to add the ports to when created
port_type

The type of port
prefix

The prefix of the new ports
remove_action

The action to remove a port on
Proc Details
add_port
Take the port type of the first stored list element, useful if the types of the ports change