Skip to content

Commit

Permalink
add some translations
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolka9144 committed Jan 13, 2025
1 parent 9bb7ea3 commit edf35e3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
12 changes: 6 additions & 6 deletions source/options/BaseGameSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,33 @@ package options;

class BaseGameSubState extends BaseOptionsMenu {
public function new() {
title = "V-Slice settings";
title = Language.getPhrase("vslice_menu","V-Slice settings");
rpcTitle = "V-Slice settings menu";
var option:Option = new Option('Freeplay dynamic coloring',
'Enables dynamic freeplay background color. Disable this if you prefer original V-slice freeplay menu colors',
'vsliceFreeplayColors',
'bool');
BOOL);
addOption(option);

var option:Option = new Option('Use results screen',
'If disabled will skip showing the result screen',
'vsliceResults',
'bool');
BOOL);
addOption(option);
var option:Option = new Option('Smooth health bar',
'If enabled makes health bar move more smoothly',
'vsliceSmoothBar',
'bool');
BOOL,);
addOption(option);
var option:Option = new Option('Special freeplay cards',
'If disabled will force every character to use BF\'s card (including pico)',
'vsliceSpecialCards',
'bool');
BOOL);
addOption(option);
var option:Option = new Option('Force "New" tag',
'If enabled will force every uncompleted song to show "new" tag even if it\'s disabled',
'vsliceForceNewTag',
'bool');
BOOL);
addOption(option);
super();
}
Expand Down
15 changes: 8 additions & 7 deletions source/substates/PauseSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ class PauseSubState extends MusicBeatSubstate
public function new(inCutscene:Bool = false,type:PauseType = PauseType.CUTSCENE) {
super();
cutscene_branding = switch(type){
case VIDEO: "Video";
case CUTSCENE: "Cutscene";
case DIALOGUE: "Dialogue";
case VIDEO: Language.getPhrase("pause_branding_video","Video");
case CUTSCENE: Language.getPhrase("pause_branding_cutscene","Cutscene");
case DIALOGUE: Language.getPhrase("pause_branding_dialogue","Dialogue");
};
cutscene_resetTxt = 'Restart $cutscene_branding';
cutscene_skipTxt = 'Skip $cutscene_branding';
cutscene_resetTxt = Language.getPhrase("pause_branding_restart",'Restart {1}',[cutscene_branding]);
cutscene_skipTxt = Language.getPhrase("pause_branding_skip",'Skip {1}',[cutscene_branding]);
this.inVid = inCutscene;
}
override function create()
Expand Down Expand Up @@ -119,14 +119,15 @@ class PauseSubState extends MusicBeatSubstate
levelInfo.updateHitbox();
add(levelInfo);

var levelDifficulty:FlxText = new FlxText(20, 15 + 32, 0, "Difficulty: "+CoolUtil.FUL(Difficulty.getString()), 32);
var levelDifficulty:FlxText = new FlxText(20, 15 + 32, 0, Language.getPhrase("pause_difficulty","Difficulty: {1}",[CoolUtil.FUL(Difficulty.getString())]), 32);
levelDifficulty.scrollFactor.set();
levelDifficulty.setFormat(Paths.font('vcr.ttf'), 32);
levelDifficulty.updateHitbox();
add(levelDifficulty);


var ballsTxt = inVid ? '$cutscene_branding Paused' : Language.getPhrase("blueballed", "{1} Blue Balls", [PlayState.deathCounter]);
var ballsTxt = inVid ? Language.getPhrase("pause_branding",'{1} Paused',[cutscene_branding]) :
Language.getPhrase("blueballed", "{1} Blue Balls", [PlayState.deathCounter]);
var blueballedTxt:FlxText = new FlxText(20, 15 + 64, 0, ballsTxt , 32);
blueballedTxt.scrollFactor.set();
blueballedTxt.setFormat(Paths.font('vcr.ttf'), 32);
Expand Down

0 comments on commit edf35e3

Please sign in to comment.