Get the first owned character ID and use that for results
This commit is contained in:
@@ -5,6 +5,7 @@ import funkin.ui.MenuList.MenuTypedList;
|
||||
import funkin.ui.MenuList.MenuTypedItem;
|
||||
import flixel.text.FlxText;
|
||||
import funkin.data.freeplay.player.PlayerRegistry;
|
||||
import funkin.ui.freeplay.charselect.PlayableCharacter;
|
||||
import funkin.ui.options.items.CheckboxPreferenceItem;
|
||||
import flixel.util.FlxTimer;
|
||||
import flixel.tweens.FlxTween;
|
||||
@@ -55,7 +56,8 @@ class ResultsDebugSubState extends MusicBeatSubState
|
||||
});
|
||||
});
|
||||
createToggleListItem("Character", PlayerRegistry.instance.listEntryIds(), function(result:String) {
|
||||
resultsParams.characterId = result;
|
||||
var playableCharacter:PlayableCharacter = PlayerRegistry.instance.fetchEntry(result);
|
||||
resultsParams.characterId = playableCharacter.getOwnedCharacterIds()[0];
|
||||
});
|
||||
createToggleListItem("Results Mode", ["Debug", "Story", "Freeplay"], function(result:String) {
|
||||
returnToDebugScreen = result == "Debug"; // We will create the ResultsState as a Substate, that we will just close and return back to here
|
||||
|
||||
Reference in New Issue
Block a user