Create end undo batch |
Remove misinfo |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#Invoke:ProtoFlux|GenerateUI | {{#Invoke:ProtoFlux|GenerateUI | ||
|Name= | |Name=End Undo Batch | ||
|Category=Undo | |Category=Undo | ||
|Inputs= | |Inputs= | ||
[ | [ | ||
{"Name":"*", "Type":" | {"Name":"*", "Type":"Call"} | ||
] | ] | ||
|Outputs= | |Outputs= | ||
Line 12: | Line 12: | ||
|}} | |}} | ||
When paired with a [[ProtoFlux:Begin Undo Batch|Begin Undo Batch]] | When paired with a [[ProtoFlux:Begin Undo Batch|Begin Undo Batch]], the '''End Undo Batch''' node will batch all previous [[Undo|undo]] steps after the previous [[ProtoFlux:Begin Undo Batch|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 [[Impulses|impulsed]] the node chain. | ||
== Inputs == | == Inputs == | ||
=== Input (Call) === | === Input ([[Impulses|Call]]) === | ||
End the undo batch. | End the undo batch. | ||
== Outputs == | == Outputs == | ||
=== Output (Continuation) === | === Output ([[Impulses|Continuation]]) === | ||
Code to run after the undo batch | Code to run after the undo batch. | ||
== 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]] |
Latest revision as of 17:01, 5 April 2025
End Undo Batch
Undo
When paired with a Begin Undo Batch, the End Undo Batch 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.
Examples
-
This node being used in a set of nodes that undoes a bunch of actions that was done by a previous button