Skip to content

Commit

Permalink
replace all occurences of VCR OSD Mono with Paths.font("vcr.ttf")
Browse files Browse the repository at this point in the history
  • Loading branch information
crowplexus committed Aug 23, 2024
1 parent 89b3fe5 commit 1f02839
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 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
2 changes: 1 addition & 1 deletion source/states/StoryMenuState.hx
Original file line number Diff line number Diff line change
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 1f02839

Please sign in to comment.