doc
This commit is contained in:
@@ -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
|
||||
**/
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user