Skip to content

Commit

Permalink
hopefully the last commit to outdatedstate for 1.14.0
Browse files Browse the repository at this point in the history
+ tried to fix skip time crash again
  • Loading branch information
JordanSantiagoYT committed Nov 8, 2023
1 parent 7f00362 commit 5b80b23
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion source/OutdatedState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class OutdatedState extends MusicBeatState
var changelog:FlxText;
var updateText:FlxText;
var checker:FlxBackdrop;
var bg:FlxSprite;
override function create()
{
Paths.clearStoredMemory();
Expand All @@ -33,7 +34,7 @@ class OutdatedState extends MusicBeatState

super.create();

var bg:FlxSprite = new FlxSprite(0, 0).loadGraphic(Paths.image("aboutMenu", "preload"));
bg = new FlxSprite(0, 0).loadGraphic(Paths.image("aboutMenu", "preload"));
bg.color = 0xFFffd700;
bg.scale.set(1.1, 1.1);
bg.antialiasing = ClientPrefs.globalAntialiasing;
Expand Down Expand Up @@ -119,6 +120,21 @@ class OutdatedState extends MusicBeatState
MusicBeatState.switchState(new MainMenuState());
}
});
FlxTween.tween(updateText, {alpha: 0}, 1, {
onComplete: function (twn:FlxTween) {
MusicBeatState.switchState(new MainMenuState());
}
});
FlxTween.tween(checker, {alpha: 0}, 1, {
onComplete: function (twn:FlxTween) {
MusicBeatState.switchState(new MainMenuState());
}
});
FlxTween.tween(bg, {alpha: 0}, 1, {
onComplete: function (twn:FlxTween) {
MusicBeatState.switchState(new MainMenuState());
}
});
}
}
super.update(elapsed);
Expand Down
2 changes: 1 addition & 1 deletion source/PauseSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class PauseSubState extends MusicBeatSubstate
pauseMusic.volume += 0.01 * elapsed;

super.update(elapsed);
if (menuItems != menuItemsExit) updateSkipTextStuff();
if (menuItems != menuItemsExit && menuItems.contains('Skip Time')) updateSkipTextStuff();

var upP = controls.UI_UP_P;
var downP = controls.UI_DOWN_P;
Expand Down

0 comments on commit 5b80b23

Please sign in to comment.