Get the first owned character ID and use that for results

This commit is contained in:
AbnormalPoof
2025-11-25 12:07:32 -05:00
committed by Hundrec
parent 23aa7156dc
commit 949195fb9c
@@ -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