adding more translations

This commit is contained in:
⍚~Nex
2024-04-02 05:32:46 +02:00
parent 2ba7aaf0e9
commit 9d3f31b7f0
2 changed files with 11 additions and 11 deletions
+5 -5
View File
@@ -161,7 +161,7 @@ class FreeplayState extends MusicBeatState
diffText.font = scoreText.font;
add(diffText);
coopText = new FlxText(diffText.x, diffText.y + diffText.height + 2, 0, "[TAB] Solo", 24);
coopText = new FlxText(diffText.x, diffText.y + diffText.height + 2, 0, "", 24);
coopText.font = scoreText.font;
add(coopText);
@@ -347,10 +347,10 @@ class FreeplayState extends MusicBeatState
* Array containing all labels for Co-Op / Opponent modes.
*/
public var coopLabels:Array<String> = [
"[TAB] Solo",
"[TAB] Opponent Mode",
"[TAB] Co-Op Mode",
"[TAB] Co-Op Mode (Switched)"
TranslationsUtil.checkTransl("[TAB] Solo"),
TranslationsUtil.checkTransl("[TAB] Opponent Mode"),
TranslationsUtil.checkTransl("[TAB] Co-Op Mode"),
TranslationsUtil.checkTransl("[TAB] Co-Op Mode (Switched)")
];
/**
+6 -6
View File
@@ -7,7 +7,7 @@ import funkin.backend.scripting.events.PauseCreationEvent;
import funkin.backend.scripting.events.NameEvent;
import funkin.backend.scripting.Script;
import flixel.sound.FlxSound;
import flixel.text.FlxText;
import funkin.backend.FunkinText;
import flixel.tweens.FlxTween;
import flixel.util.FlxColor;
import funkin.options.keybinds.KeybindsOptions;
@@ -69,14 +69,14 @@ class PauseSubState extends MusicBeatSubstate
bg.scrollFactor.set();
add(bg);
var levelInfo:FlxText = new FlxText(20, 15, 0, PlayState.SONG.meta.displayName, 32);
var levelDifficulty:FlxText = new FlxText(20, 15, 0, PlayState.difficulty.toUpperCase(), 32);
var deathCounter:FlxText = new FlxText(20, 15, 0, "Blue balled: " + PlayState.deathCounter, 32);
var multiplayerText:FlxText = new FlxText(20, 15, 0, PlayState.opponentMode ? 'OPPONENT MODE' : (PlayState.coopMode ? 'CO-OP MODE' : ''), 32);
var levelInfo:FunkinText = new FunkinText(20, 15, 0, PlayState.SONG.meta.displayName, 32, false);
var levelDifficulty:FunkinText = new FunkinText(20, 15, 0, PlayState.difficulty.toUpperCase(), 32, false);
var multiplayerText:FunkinText = new FunkinText(20, 15, 0, PlayState.opponentMode ? 'OPPONENT MODE' : (PlayState.coopMode ? 'CO-OP MODE' : ''), 32, false);
var deathCounter:FunkinText = new FunkinText(20, 15, 0, "Blue balled", 32, false);
deathCounter.text += ": " + PlayState.deathCounter; // Adding it later for the translation - Nex
for(k=>label in [levelInfo, levelDifficulty, deathCounter, multiplayerText]) {
label.scrollFactor.set();
label.setFormat(Paths.font('vcr.ttf'), 32);
label.updateHitbox();
label.alpha = 0;
label.x = FlxG.width - (label.width + 20);