File tree 1 file changed +21
-1
lines changed
1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -1368,7 +1368,27 @@ class PlayState extends MusicBeatState
1368
1368
1369
1369
switch (event .name ) {
1370
1370
case " HScript Call" :
1371
- scripts .call (event .params [0 ], event .params [1 ].split (' ,' ));
1371
+ var scriptPacks : Array <ScriptPack > = [scripts , stateScripts ];
1372
+ for (strLine in strumLines .members ) for (char in strLine .characters ) scriptPacks .push (char .scripts );
1373
+ var args : Array <String > = event .params [1 ].split (' ,' );
1374
+
1375
+ for (pack in scriptPacks ) {
1376
+ pack .call (event .params [0 ], args );
1377
+ // public functions
1378
+ if (pack .publicVariables .exists (event .params [0 ])) {
1379
+ var func = pack .publicVariables .get (event .params [0 ]);
1380
+ if (func != null && Reflect .isFunction (func ))
1381
+ Reflect .callMethod (null , func , args );
1382
+ }
1383
+ }
1384
+
1385
+ // static functions
1386
+ if (Script .staticVariables .exists (event .params [0 ])) {
1387
+ var func = Script .staticVariables .get (event .params [0 ]);
1388
+ if (func != null && Reflect .isFunction (func ))
1389
+ Reflect .callMethod (null , func , args );
1390
+ }
1391
+
1372
1392
case " Camera Movement" :
1373
1393
curCameraTarget = event .params [0 ];
1374
1394
case " Add Camera Zoom" :
You can’t perform that action at this time.
0 commit comments