some language stuff

PLS NILE HELP ME WITH EDITORS ITS 6AM😭
This commit is contained in:
⍚~Nex
2025-08-04 06:07:42 +02:00
parent b801ea30c6
commit 49260f28e7
13 changed files with 838 additions and 47 deletions
@@ -12,7 +12,7 @@ import funkin.backend.utils.translations.FormatUtil;
/**
* The class used for translations based on the XMLs inside the translations folders.
*
* Made by @NexIsDumb originally for the Poldhub mod and improved thanks to him and @NeeEoo.
* Made by @NexIsDumb originally for the Poldhub mod.
*/
@:allow(funkin.backend.assets.TranslatedAssetLibrary)
final class TranslationUtil
+3 -2
View File
@@ -23,7 +23,6 @@ class TitleState extends MusicBeatState
public var blackScreen:FlxSprite;
public var textGroup:FlxGroup;
public var ngSpr:FlxSprite;
override public function create():Void
{
@@ -56,13 +55,14 @@ class TitleState extends MusicBeatState
loadXML();
if (titleText == null) {
titleText = new FlxSprite(100, FlxG.height * 0.8);
titleText = new FlxSprite(0, FlxG.height * 0.8);
titleText.frames = Paths.getFrames('menus/titlescreen/titleEnter');
titleText.animation.addByPrefix('idle', "Press Enter to Begin", 24);
titleText.animation.addByPrefix('press', "ENTER PRESSED", 24);
titleText.antialiasing = true;
titleText.animation.play('idle');
titleText.updateHitbox();
titleText.screenCenter(X);
}
add(titleText);
@@ -337,6 +337,7 @@ class IntroText {
sprite.scale.set(scale, scale);
sprite.updateHitbox();
sprite.screenCenter(X);
sprite.antialiasing = true;
state.textGroup.add(sprite);
}
}
@@ -4,8 +4,8 @@ class LanguageRadio extends RadioButton {
public var langID:String;
public function new(screen:TreeMenuScreen, name:String, langID:String) {
super(screen, name, "LanguageOptions.language-desc", null, langID, null, "languageSelector");
this.langID = langID;
super(screen, name, "LanguageOptions.language-desc", null, langID, null, "languageSelector");
checked = langID == TU.curLanguage;
}