Skip to content

Commit

Permalink
why crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Oct 29, 2024
1 parent 4134898 commit 7a9ba4e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion source/backend/ExtendableState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import backend.Conductor.TimeScaleChangeEvent;
import flixel.addons.transition.FlxTransitionSprite.GraphicTransTileDiamond;
import flixel.addons.transition.FlxTransitionableState;
import flixel.addons.transition.TransitionData;
import flixel.addons.ui.FlxUIState;
import flixel.graphics.FlxGraphic;

class ExtendableState extends FlxTransitionableState {
class ExtendableState extends FlxUIState {
var curBeat:Int = 0;
var curStep:Int = 0;

Expand Down Expand Up @@ -54,6 +55,9 @@ class ExtendableState extends FlxTransitionableState {
}

public static function switchState(nextState:FlxState, ?noTransition:Bool = false) {
transIn = FlxTransitionableState.defaultTransIn;
transOut = FlxTransitionableState.defaultTransOut;

FlxTransitionableState.skipNextTransIn = noTransition;
FlxTransitionableState.skipNextTransOut = noTransition;

Expand Down
3 changes: 2 additions & 1 deletion source/backend/ExtendableSubState.hx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package backend;

import backend.Conductor.BPMChangeEvent;
import flixel.addons.ui.FlxUISubState;

class ExtendableSubState extends FlxSubState {
class ExtendableSubState extends FlxUISubState {
var curStep:Int = 0;
var curBeat:Int = 0;

Expand Down

0 comments on commit 7a9ba4e

Please sign in to comment.