Skip to content

Commit

Permalink
Merge pull request #15399 from crowplexus/patch-1
Browse files Browse the repository at this point in the history
Use modded fonts in Story Mode Menu and other missing places
  • Loading branch information
ShadowMario committed Sep 15, 2024
2 parents d9c6e04 + 1f02839 commit 325f025
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion source/states/FlashingState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class FlashingState extends MusicBeatState
Press ESCAPE to ignore this message.\n
You've been warned!",
32);
warnText.setFormat("VCR OSD Mono", 32, FlxColor.WHITE, CENTER);
warnText.setFormat(Paths.font("vcr.ttf"), 32, FlxColor.WHITE, CENTER);
warnText.screenCenter(Y);
add(warnText);
}
Expand Down
4 changes: 2 additions & 2 deletions source/states/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ class MainMenuState extends MusicBeatState

var psychVer:FlxText = new FlxText(12, FlxG.height - 44, 0, "Psych Engine v" + psychEngineVersion, 12);
psychVer.scrollFactor.set();
psychVer.setFormat("VCR OSD Mono", 16, FlxColor.WHITE, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
psychVer.setFormat(Paths.font("vcr.ttf"), 16, FlxColor.WHITE, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
add(psychVer);
var fnfVer:FlxText = new FlxText(12, FlxG.height - 24, 0, "Friday Night Funkin' v" + Application.current.meta.get('version'), 12);
fnfVer.scrollFactor.set();
fnfVer.setFormat("VCR OSD Mono", 16, FlxColor.WHITE, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
fnfVer.setFormat(Paths.font("vcr.ttf"), 16, FlxColor.WHITE, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
add(fnfVer);
changeItem();

Expand Down
2 changes: 1 addition & 1 deletion source/states/OutdatedState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class OutdatedState extends MusicBeatState
\n
Thank you for using the Engine!",
32);
warnText.setFormat("VCR OSD Mono", 32, FlxColor.WHITE, CENTER);
warnText.setFormat(Paths.font("vcr.ttf"), 32, FlxColor.WHITE, CENTER);
warnText.screenCenter(Y);
add(warnText);
}
Expand Down
6 changes: 3 additions & 3 deletions source/states/StoryMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ class StoryMenuState extends MusicBeatState
if(curWeek >= WeekData.weeksList.length) curWeek = 0;

scoreText = new FlxText(10, 10, 0, Language.getPhrase('week_score', 'WEEK SCORE: {1}', [lerpScore]), 36);
scoreText.setFormat("VCR OSD Mono", 32);
scoreText.setFormat(Paths.font("vcr.ttf"), 32);

txtWeekTitle = new FlxText(FlxG.width * 0.7, 10, 0, "", 32);
txtWeekTitle.setFormat("VCR OSD Mono", 32, FlxColor.WHITE, RIGHT);
txtWeekTitle.setFormat(Paths.font("vcr.ttf"), 32, FlxColor.WHITE, RIGHT);
txtWeekTitle.alpha = 0.7;

var ui_tex = Paths.getSparrowAtlas('campaign_menu_UI_assets');
Expand Down Expand Up @@ -208,7 +208,7 @@ class StoryMenuState extends MusicBeatState
return;
}

// scoreText.setFormat('VCR OSD Mono', 32);
// scoreText.setFormat(Paths.font("vcr.ttf"), 32);
if(intendedScore != lerpScore)
{
lerpScore = Math.floor(FlxMath.lerp(intendedScore, lerpScore, Math.exp(-elapsed * 30)));
Expand Down
4 changes: 2 additions & 2 deletions source/states/editors/MenuCharacterEditorState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class MenuCharacterEditorState extends MusicBeatState implements PsychUIEventHan
add(grpWeekCharacters);

txtOffsets = new FlxText(20, 10, 0, "[0, 0]", 32);
txtOffsets.setFormat("VCR OSD Mono", 32, FlxColor.WHITE, CENTER);
txtOffsets.setFormat(Paths.font("vcr.ttf"), 32, FlxColor.WHITE, CENTER);
txtOffsets.alpha = 0.7;
add(txtOffsets);

Expand Down Expand Up @@ -378,4 +378,4 @@ class MenuCharacterEditorState extends MusicBeatState implements PsychUIEventHan
_file = null;
FlxG.log.error("Problem saving file");
}
}
}
2 changes: 1 addition & 1 deletion source/states/editors/WeekEditorState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class WeekEditorState extends MusicBeatState implements PsychUIEventHandler.Psyc

override function create() {
txtWeekTitle = new FlxText(FlxG.width * 0.7, 10, 0, "", 32);
txtWeekTitle.setFormat("VCR OSD Mono", 32, FlxColor.WHITE, RIGHT);
txtWeekTitle.setFormat(Paths.font("vcr.ttf"), 32, FlxColor.WHITE, RIGHT);
txtWeekTitle.alpha = 0.7;

var ui_tex = Paths.getSparrowAtlas('campaign_menu_UI_assets');
Expand Down

0 comments on commit 325f025

Please sign in to comment.