From 8a308535979b7b140d6ddc485c6d274a578e9919 Mon Sep 17 00:00:00 2001 From: "Nebula S. Nova" <78160470+NebulaStellaNova@users.noreply.github.com> Date: Mon, 9 Dec 2024 15:57:18 -0500 Subject: [PATCH] Update Alphabet.hx Add support for custom alphabet paths. --- source/funkin/menus/ui/Alphabet.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/funkin/menus/ui/Alphabet.hx b/source/funkin/menus/ui/Alphabet.hx index 48075fa76..8eff37fbb 100644 --- a/source/funkin/menus/ui/Alphabet.hx +++ b/source/funkin/menus/ui/Alphabet.hx @@ -77,14 +77,14 @@ class Alphabet extends FlxSpriteGroup trace(e.details()); } } - public function new(x:Float, y:Float, text:String = "", ?bold:Bool = false, typed:Bool = false) + public function new(x:Float, y:Float, text:String = "", ?bold:Bool = false, typed:Bool = false, customAlphabetPath:String = "alphabet") { super(x, y); _finalText = this.text = text; isBold = bold; - var alphabetPath = Paths.xml("alphabet"); + var alphabetPath = Paths.xml(customAlphabetPath); if (Paths.getAssetsRoot() + alphabetPath != AlphaCharacter.__alphaPath) { refreshAlphabetXML(alphabetPath); }