From 55dc2ccd65c13e819d565d86f0ec6fbe683f7ab7 Mon Sep 17 00:00:00 2001
From: "gen.zu" <38563378+g3n-zu@users.noreply.github.com>
Date: Sat, 21 Feb 2026 03:14:27 -0800
Subject: [PATCH] Allows you to change the character in the Stage Editor.
---
.../layouts/stage/characterEditScreen.xml | 29 ++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)
diff --git a/assets/data/editors/layouts/stage/characterEditScreen.xml b/assets/data/editors/layouts/stage/characterEditScreen.xml
index 1836923b4e..7df4b0936c 100644
--- a/assets/data/editors/layouts/stage/characterEditScreen.xml
+++ b/assets/data/editors/layouts/stage/characterEditScreen.xml
@@ -74,6 +74,19 @@
self.windowSpr.bHeight -= 170;
+
+
+
+
+
+
+ import funkin.editors.ui.UIAutoCompleteTextBox;
+ import funkin.game.Character;
+
+ var curCharBox = new UIAutoCompleteTextBox(col(2), curY - 52, char.curCharacter, 148, 32);
+ curCharBox.suggestItems = Character.getList(false);
+ self.add(curCharBox);
+
@@ -121,6 +134,20 @@
}
char.zoomFactor = zoomFactorStepper.value;
char.angle = angleStepper.value;
+
+ var newCharName = curCharBox.label.text;
+ if (newCharName != char.curCharacter) {
+ char.curCharacter = newCharName;
+ char.xml = Character.getXMLFromCharName(newCharName);
+ char.applyXML(char.xml);
+
+ var anim = char.getAnimOrder()[0];
+ char.playAnim(anim, true);
+ var lastIndx = char.animation.curAnim.numFrames - 1;
+ char.playAnim(anim, true, null, false, lastIndx);
+ char.stopAnimation();
+ }
+
}
-
\ No newline at end of file
+