ProtoFlux:Create Spawn Undo Step: Difference between revisions

From Resonite Wiki
m forgot category on node ui
m fix types, add gallery
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
|Inputs=
|Inputs=
[
[
{"Name":"*", "Type":"Impulse"},
{"Name":"*", "Type":"Call"},
{"Name":"Target", "Type":"Slot"},
{"Name":"Target", "Type":"Slot"},
{"Name":"Description", "Type":"String"}
{"Name":"Description", "Type":"String"}
Line 21: Line 21:
== Inputs ==
== Inputs ==


=== Input (Call) ===  
=== Input ([[Impulses|Call]]) ===  
Create the undo step and set the object to be despawned upon undoing to the slot provided.
Create the undo step and set the object to be despawned upon undoing to the slot provided.


Line 34: Line 34:
== Outputs ==
== Outputs ==


=== Output (Continuation) ===
=== Output ([[Impulses|Continuation]]) ===
Continues to More undo steps, continues to code that eventually ends, or an [[ProtoFlux:End Undo Batch|End Undo Batch]] that continues to eventually ended code.
Continues to More undo steps, continues to code that eventually ends, or an [[ProtoFlux:End Undo Batch|End Undo Batch]] that continues to eventually ended code.


== Examples ==
== Examples ==


{{Stub}}
<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 19:36, 9 February 2024

Create Spawn Undo Step
*
Next
Target
Description
Undo


The node will create an undo step in the context menu of the person who the impulse came from. This node will make the description of the undo step in the context menu the provided Description (String). This does the best when paired with a Duplicate Slot, since the slot is being spawned this node will allow the duplicate to be undo-able by the user.

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

Input (Call)

Create the undo step and set the object to be despawned upon undoing to the slot provided.

Description (String)

The description for the undo step in the user's context menu. Gets overridden if this node is part of a Undo Batch.

Target (Slot)

The Slot to undo for this undo step.

Outputs

Output (Continuation)

Continues to More undo steps, continues to code that eventually ends, or an End Undo Batch that continues to eventually ended code.

Examples