Skip to content

Commit

Permalink
fix: center preloader 'fnf' and 'dsp' text so it doesn't clip anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Burgerballs authored and ninjamuffin99 committed Oct 4, 2024
1 parent d2e2987 commit 165ad60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/funkin/ui/transition/preload/FunkinPreloader.hx
Original file line number Diff line number Diff line change
Expand Up @@ -250,18 +250,18 @@ class FunkinPreloader extends FlxBasePreloader
dspText.selectable = false;
dspText.textColor = 0x000000;
dspText.width = this._width;
dspText.height = 20;
dspText.height = 30;
dspText.text = 'DSP';
dspText.x = 10;
dspText.y = -5;
dspText.y = -7;
box.addChild(dspText);

fnfText.selectable = false;
fnfText.textColor = 0x000000;
fnfText.width = this._width;
fnfText.height = 20;
fnfText.x = 75;
fnfText.y = -5;
fnfText.height = 30;
fnfText.x = 78;
fnfText.y = -7;
fnfText.text = 'FNF';
box.addChild(fnfText);

Expand Down
2 changes: 2 additions & 0 deletions source/funkin/util/WindowUtil.hx
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,13 @@ class WindowUtil
// FlxG.stage.focus is set to null by the debug console stuff,
// so when that's in focus, we don't want to toggle fullscreen using F
// (annoying when tying "FlxG" in console... lol)
#if FLX_DEBUG
@:privateAccess
if (FlxG.game.debugger.visible)
{
return;
}
#end

if (e.keyCode == key)
{
Expand Down

0 comments on commit 165ad60

Please sign in to comment.