ProtoFlux:Create Undo Batch

From Resonite Wiki
Revision as of 21:30, 15 April 2024 by AmasterAmaster (talk | contribs) (Created a page for the Create Undo Batch node.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.