ProtoFlux:Create Undo Batch: Difference between revisions

From Resonite Wiki
Created a page for the Create Undo Batch node.
 
Added link. Style.
Line 14: Line 14:
|}}
|}}


The <code>Create Undo Batch</code> node wraps the entire concept of an undo batch as an event. What this means is that you can put this at the start after a [[ProtoFlux:Begin Undo Batch|Begin Undo Batch]] node, and let it create the remaining undo batch actions you give it, then from the Continuation, you can do something special using flux (For example, letting the user know that an undo is ready to be used).
The '''Create Undo Batch''' node wraps the entire concept of an [[Undo|undo]] batch as an event. What this means is that you can put this at the start after a [[ProtoFlux:Begin Undo Batch|Begin Undo Batch]] node, and let it create the remaining undo batch actions you give it, then from the Continuation, you can do something special using flux (For example, letting the user know that an undo is ready to be used).


when this node is paired with an [[ProtoFlux:Begin Undo Batch|Undo Batch]], it's description if has one, will be ignored, and will be part of the [[ProtoFlux:Begin Undo Batch|Undo Batch]]'s undo step instead.
when this node is paired with an [[ProtoFlux:Begin Undo Batch|Undo Batch]], it's description if has one, will be ignored, and will be part of the [[ProtoFlux:Begin Undo Batch|Undo Batch]]'s undo step instead.

Revision as of 13:37, 5 March 2025

Create Undo Batch
*
Create
Description
OnCreated
Undo

The Create Undo Batch node wraps the entire concept of an undo batch as an event. What this means is that you can put this at the start after a Begin Undo Batch node, and let it create the remaining undo batch actions you give it, then from the Continuation, you can do something special using flux (For example, letting the user know that an undo is ready to be used).

when this node is paired with an Undo Batch, it's description if has one, will be ignored, and will be part of the Undo Batch's undo step instead.

Inputs

* (Call)

Calls an impulse to create an undo batch notification, wrapping it together as an event for "OnCreated" to fire later.

Description (String)

The description for this undo batch. The description will be automatically prepended with "Undo" in bigger text in the context menu.

Outputs

Create (Call)

Fires to create the upcoming undo batch.

OnCreated (Continuation)

Fires then the undo batch has created completely.