This commit is contained in:
YoshiCrafter29
2022-10-10 15:50:25 +02:00
parent 3732db7349
commit 126a5bf479
11 changed files with 1052 additions and 904 deletions
+3 -3
View File
@@ -17,8 +17,8 @@ import haxe.xml.Access;
import haxe.Exception;
import funkin.system.Conductor;
import funkin.events.PlayAnimEvent;
import funkin.events.PlayAnimEvent.PlayAnimContext;
import funkin.scripting.events.PlayAnimEvent;
import funkin.scripting.events.PlayAnimEvent.PlayAnimContext;
using StringTools;
class Character extends FlxSprite implements IBeatReceiver implements IOffsetCompatible
@@ -356,7 +356,7 @@ class Character extends FlxSprite implements IBeatReceiver implements IOffsetCom
if (event.cancelled || event.animName == null) return;
animation.play(event.animName, event.force, event.reversed, event.startingFrame);
animation.play(event.animName, event.force, event.reverse, event.startingFrame);
var daOffset = animOffsets.get(event.animName);
if (daOffset != null)
@@ -39,7 +39,7 @@ class PlayAnimEvent extends CancellableEvent {
Contains all contexts possible for `PlayAnimEvent`.
**/
@:enum
abstract PlayAnimContext(String) = {
abstract PlayAnimContext(String) {
/**
No context was given for the animation
**/
+3
View File
@@ -5,7 +5,10 @@ import funkin.scripting.events.*;
/**
* Contains all callbacks you can add in modcharts and stage scripts.
*
*
*
* NOTE: In case you're scripting a stage, all sprites of that stage are directly accessible via their name.
*
* Ex: If you added a `superCoolBG` element in your stage XML, you'll be able to access it via scripts by using `superCoolBG`.
*/
interface PlayStateScript {