Implement preview music properly as a new optional tag in the ssc file. Changed ScreenManager to emit an error instead of asserting if a screen attempts to use SetNewScreen inside an InitCommand. Changed decorations layer to be a proper child instead of stripping away the ActorFrame.

This commit is contained in:
Kyzentun
2015-03-04 01:31:02 -07:00
parent 519ad8d243
commit 0318f07d2d
16 changed files with 88 additions and 30 deletions
+1
View File
@@ -1542,6 +1542,7 @@
<Function name='GetMusicPath'/>
<Function name='GetOneSteps'/>
<Function name='GetOrigin'/>
<Function name='GetPreviewMusicPath'/>
<Function name='GetPreviewVidPath'/>
<Function name='GetSampleLength'/>
<Function name='GetSampleStart'/>
+3
View File
@@ -4464,6 +4464,9 @@ save yourself some time, copy this for undocumented things:
<Function name='GetOrigin' return='string' arguments=''>
Gets the Song's origin.
</Function>
<Function name='GetPreviewMusicPath' return='string' arguments=''>
Returns the path to the Song's preview music. This handles the #PREVIEW tag internally, so it works with songs that use it and songs that don't.
</Function>
<Function name='GetPreviewVidPath' return='string' arguments=''>
Returns the path to the Song's preview video, if it exists. (Returns <code>nil</code> otherwise.)
</Function>