Interface Event
Interface event emitted by Blackprint
Interface event can be listened after the node was initialized.
To register a callback for an event you need to call iface.on('event.name', function(...Arguments){ })
Event Name
Arguments
Description
cable.connect
(Port, OtherPort, Cable)
Trigger when a cable was connected to a port, isOwner is boolean indicating if it was created from current node
cable.disconnect
(Port, OtherPort, Cable)
Trigger when a cable was disconnected from a port
cable.created
(Port, OtherPort, Cable)
Trigger when a cable was created from a port
port.menu *
(Port, DropDowns})
Trigger when port menu is going to be created
node.menu *
(DropDowns)
Trigger when node menu is going to be created
*
Arguments on the table above with {...}
is a single object.
DropDowns
is an array, and you can push a callback or nested menu inside it.
Last updated