missing the node UI due to usage of flow triangles |
TheAutopilot (talk | contribs) |
||
(9 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{#Invoke:ProtoFlux|GenerateUI | |||
|Name=Boolean Latch | |||
|Category=Flow | |||
|Inputs= | |||
[ | |||
{"Name":"Set", "Type":"Call"}, | |||
{"Name":"Reset", "Type":"Call"}, | |||
{"Name":"Toggle", "Type":"Call"} | |||
] | |||
|Outputs= | |||
[ | |||
{"Name":"Set", "Type":"Continuation"}, | |||
{"Name":"Reset", "Type":"Continuation"}, | |||
{"Name":"*", "Type":"bool"} | |||
] | |||
|}} | |||
The '''Data Model Boolean Toggle''' or '''Boolean Latch''' is a node that can be pulsed to toggle a Data Model Boolean between true and false. | The '''Data Model Boolean Toggle''' or '''Boolean Latch''' is a node that can be pulsed to toggle a Data Model Boolean between true and false. | ||
{{Note|Data Model Boolean Toggle is a [[ProtoFlux:Data Model Store|Data Model Store]] with impulses to set, reset and toggle itself. This means you can use a [[ProtoFlux:Write|Write]] to change the value directly if you input the * bool into the [[ProtoFlux:Write|Write]]'s Variable field.|information}} | |||
== Inputs == | == Inputs == | ||
=== Set ( | === Set ([[Impulses|Call]]) === | ||
Set the state to True. | Set the state to True. | ||
=== Reset ( | === Reset ([[Impulses|Call]]) === | ||
Set the state to False. | Set the state to False. | ||
=== Toggle ( | === Toggle ([[Impulses|Call]]) === | ||
Toggle the state to the opposite state. | Toggle the state to the opposite state. | ||
== Outputs == | == Outputs == | ||
=== OnSet (Continuation) === | === OnSet ([[Impulses|Continuation]]) === | ||
Fires when Set is pulsed. | Fires when Set is pulsed or Toggle has switched the state to True. | ||
=== OnReset (Continuation) === | === OnReset ([[Impulses|Continuation]]) === | ||
Fires when | Fires when Reset is pulsed or Toggle has switched the state to False. | ||
=== * ([[Types:Bool|bool]]) === | === * ([[Types:Bool|bool]]) === | ||
The current state. | The current state. | ||
[[Category:ProtoFlux:Flow]] | |||
[[Category:ProtoFlux:Variables]] |
Latest revision as of 14:26, 1 December 2024
Boolean Latch
Flow
The Data Model Boolean Toggle or Boolean Latch is a node that can be pulsed to toggle a Data Model Boolean between true and false.
Inputs
Set (Call)
Set the state to True.
Reset (Call)
Set the state to False.
Toggle (Call)
Toggle the state to the opposite state.
Outputs
OnSet (Continuation)
Fires when Set is pulsed or Toggle has switched the state to True.
OnReset (Continuation)
Fires when Reset is pulsed or Toggle has switched the state to False.
* (bool)
The current state.