m fix types |
Added flux node and rudimentary explanations. |
||
Line 1: | Line 1: | ||
{{#Invoke:ProtoFlux|GenerateUI | {{#Invoke:ProtoFlux|GenerateUI | ||
|Name=Play | |Name=Play And Wait | ||
|Category=Media | |Category=Media | ||
|Inputs= | |Inputs= | ||
[ | [ | ||
{"Name":"*", "Type":" | {"Name":"*", "Type":"AsyncCall"}, | ||
{"Name":"Target", "Type":"IPlayable"} | {"Name":"Target", "Type":"IPlayable"} | ||
] | ] | ||
|Outputs= | |Outputs= | ||
[ | [ | ||
{"Name":" | {"Name":"OnStarted", "Type":"AsyncCall"}, | ||
{"Name":"OnPlaybackFinished", "Type":"Continuation"} | |||
] | ] | ||
|}} | |}} | ||
PlayAndWait is a ProtoFlux node that plays the provided Target ([[Type:IPlayable|IPlayable]]) when * ([[Impulses|IAsyncOperation]]) is called, and then can continue with an [[Impulses|Continuation]]. | |||
== Inputs == | == Inputs == | ||
=== * ([[Impulses| | === * ([[Impulses|IAsyncOperation]]) === | ||
Impulse this to play the provided Target ([[Type:IPlayable|IPlayable]]) | Impulse this to play the provided Target ([[Type:IPlayable|IPlayable]]) | ||
Line 28: | Line 28: | ||
== Outputs == | == Outputs == | ||
=== | === OnStarted ([[Impulses|AsyncCall]]) === | ||
An async impulse that impulses when the target starts playing. | |||
=== OnPlaybackFinished ([[Impulses|Continuation]]) === | |||
Sends an impulse after the target finishes playback. | |||
== Examples == | == Examples == | ||
[[Category:ProtoFlux:Media]] | [[Category:ProtoFlux:Media]] |
Revision as of 21:29, 4 May 2024
Play And Wait
Media
PlayAndWait is a ProtoFlux node that plays the provided Target (IPlayable) when * (IAsyncOperation) is called, and then can continue with an Continuation.
Inputs
* (IAsyncOperation)
Impulse this to play the provided Target (IPlayable)
Target (IPlayable)
The IPlayable to play.
Outputs
OnStarted (AsyncCall)
An async impulse that impulses when the target starts playing.
OnPlaybackFinished (Continuation)
Sends an impulse after the target finishes playback.