added link to impulses |
fix types, add file link |
||
Line 4: | Line 4: | ||
|Inputs= | |Inputs= | ||
[ | [ | ||
{"Name":"*", "Type":" | {"Name":"*", "Type":"Call"} | ||
] | ] | ||
|Outputs= | |Outputs= | ||
Line 27: | Line 27: | ||
== Examples == | == Examples == | ||
<gallery widths=480px heights=480px> | |||
File:ProtoFlux_example_undo_node_settup|This node being used in a set of nodes that undoes a bunch of actions that was done by a previous button | |||
</gallery> | |||
[[Category:ProtoFlux:Undo]] | [[Category:ProtoFlux:Undo]] |
Revision as of 19:38, 9 February 2024
Begin Undo Batch
Undo
When paired with a Begin Undo Batch this node will batch all previous undo steps after the previous Begin Undo Batch into one, ignoring all undo descriptions on all undo nodes between the two. This will make all the undo steps one undo press on the context menu of the user that impulsed the node chain.
Inputs
Input (Call)
End the undo batch.
Outputs
Output (Continuation)
Code to run after the undo batch. Ideally, the code that runs should be modifying only things included in the undo batch the node ended, so it can be undone by the user.
Examples
-
This node being used in a set of nodes that undoes a bunch of actions that was done by a previous button