Skip to content

Commit 4aa2274

Browse files
authored
Update playstate.html
1 parent 62747a3 commit 4aa2274

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pages/playstate.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,19 @@ <h4>Examples:</h4>
138138
<hr>
139139

140140
<h2 id="startVideo">startVideo</h2>
141-
<p class="methodbox">startVideo(<span class="variablemarkup">videoFile</span>:String, <span class="isoptional">?</span><span class="variablemarkup">canSkip</span>:Bool = true):Void</p>
141+
<p class="methodbox">startVideo(<span class="variablemarkup">videoFile</span>:String, <span class="isoptional">?</span><span class="variablemarkup">canSkip</span>:Bool = true, <span class="isoptional">?</span><span class="variablemarkup">forMidSong</span>:Bool = false, <span class="isoptional">?</span><span class="variablemarkup">shouldLoop</span>:Bool = false, <span class="isoptional">?</span><span class="variablemarkup">playOnLoad</span>:Bool = true):Void</p>
142142
<p>Plays a Video Cutscene.</p>
143143
<ul>
144144
<li><b><span class="variablemarkup">videoFile</span></b> - Video .MP4 file located inside "videos/" folder, don't include the extension!</li>
145145
<li><b><span class="variablemarkup">canSkip</span> (Optional)</b> - Allows the video to be skipped by holding down Enter for a second. Defaults to true.</li>
146+
<li><b><span class="variablemarkup">forMidSong</span> (Optional)</b> - Doesn't start/finish song after the video ends, needed for mid-song cutscenes. Defaults to false.</li>
147+
<li><b><span class="variablemarkup">shouldLoop</span> (Optional)</b> - Video will repeat once finished. Defaults to false.</li>
148+
<li><b><span class="variablemarkup">playOnLoad</span> (Optional)</b> - Videos plays instantly after loading. Defaults to true.</li>
146149
</ul>
147150
<h4>Examples:</h4>
148151
<ul class="methoddiv">
149152
<li class="exampleitem"><span class="methodexample">startVideo('test_video')</span> - Plays the video <span class="methodexample">mods/My-Mod/videos/test_video.mp4</span>.</li>
150153
</ul>
151154
</div>
152155
</body>
153-
</html>
156+
</html>

0 commit comments

Comments
 (0)