Skip to content

Commit

Permalink
Merge branch 'develop' into mods-menu
Browse files Browse the repository at this point in the history
  • Loading branch information
lemz1 authored Sep 18, 2024
2 parents 446ba04 + b03d320 commit 0d9d72c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/funkin/modding/base/ScriptedFunkinSprite.hx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package funkin.modding.base;

/**
* A script that can be tied to an FlxSprite.
* Create a scripted class that extends FlxSprite to use this.
* A script that can be tied to a FunkinSprite.
* Create a scripted class that extends FunkinSprite to use this.
*/
@:hscriptClass
class ScriptedFunkinSprite extends funkin.graphics.FunkinSprite implements HScriptedClass {}
1 change: 1 addition & 0 deletions source/funkin/play/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -3046,6 +3046,7 @@ class PlayState extends MusicBeatSubState
GameOverSubState.reset();
PauseSubState.reset();
Countdown.reset();
PopUpStuff.reset();

// Clear the static reference to this state.
instance = null;
Expand Down
9 changes: 9 additions & 0 deletions source/funkin/play/components/PopUpStuff.hx
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,13 @@ class PopUpStuff extends FlxTypedGroup<FunkinSprite>
daLoop++;
}
}

/**
* Reset the popup configuration to the default.
*/
public static function reset()
{
noteStyle = NoteStyleRegistry.instance.fetchDefault();
isPixel = false;
}
}
1 change: 0 additions & 1 deletion source/funkin/ui/transition/LoadingState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ class LoadingState extends MusicBeatSubState
FunkinSprite.cacheTexture(Paths.image('ui/popup/pixel/num7'));
FunkinSprite.cacheTexture(Paths.image('ui/popup/pixel/num8'));
FunkinSprite.cacheTexture(Paths.image('ui/popup/pixel/num9'));

FunkinSprite.cacheTexture(Paths.image('notes', 'shared'));
FunkinSprite.cacheTexture(Paths.image('noteSplashes', 'shared'));
FunkinSprite.cacheTexture(Paths.image('noteStrumline', 'shared'));
Expand Down

0 comments on commit 0d9d72c

Please sign in to comment.