create undo spawn step protoflux node |
m fix types, add gallery |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#Invoke:ProtoFlux|GenerateUI | {{#Invoke:ProtoFlux|GenerateUI | ||
|Name=Create Spawn Undo Step | |Name=Create Spawn Undo Step | ||
|Category= | |Category=Undo | ||
|Inputs= | |Inputs= | ||
[ | [ | ||
{"Name":"*", "Type":" | {"Name":"*", "Type":"Call"}, | ||
{"Name":"Target", "Type":"Slot"}, | {"Name":"Target", "Type":"Slot"}, | ||
{"Name":"Description", "Type":"String"} | {"Name":"Description", "Type":"String"} | ||
Line 15: | Line 15: | ||
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 ([[Type:String|String]]). This does best when paired with a [[ProtoFlux:Duplicate Slot|Duplicate Slot]], since the slot is being spawned this node will allow the [[Slot|duplicate]] to be undo-able by the user. | 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 ([[Type:String|String]]). This does the best when paired with a [[ProtoFlux:Duplicate Slot|Duplicate Slot]], since the slot is being spawned this node will allow the [[Slot|duplicate]] to be undo-able by the user. | ||
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. | 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. | ||
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 == | ||
<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
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
-
This node being used in a set of nodes that undoes a bunch of actions that was done by a previous button