ProtoFlux:Create Undo Batch: Difference between revisions

From Resonite Wiki
Added link. Style.
Clean up page
 
Line 14: Line 14:
|}}
|}}


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).
The '''Create Undo Batch''' node Begins an undo batch, executes the Create call, then ends the undo batch all in one frame.
 
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.


== Inputs ==
== Inputs ==
Line 22: Line 20:
=== * ([[Impulses|Call]]) ===  
=== * ([[Impulses|Call]]) ===  


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


=== Description ([[String]]) ===
=== Description ([[String]]) ===
Line 32: Line 30:
=== Create ([[Impulses|Call]]) ===
=== Create ([[Impulses|Call]]) ===


Fires to create the upcoming undo batch.
The impulse created when the undo batch is started but not ended.


=== OnCreated ([[Impulses|Continuation]]) ===
=== OnCreated ([[Impulses|Continuation]]) ===


Fires then the undo batch has created completely.
The impulse created after the undo batch is ended.


[[Category:ProtoFlux:Undo]]
[[Category:ProtoFlux:Undo]]

Latest revision as of 16:55, 5 April 2025

Create Undo Batch
*
Create
Description
OnCreated
Undo

The Create Undo Batch node Begins an undo batch, executes the Create call, then ends the undo batch all in one frame.

Inputs

* (Call)

Calls an impulse to create an undo batch.

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)

The impulse created when the undo batch is started but not ended.

OnCreated (Continuation)

The impulse created after the undo batch is ended.