From 165ad6015539a295e9eefdaef291c312e9566b26 Mon Sep 17 00:00:00 2001 From: Burgerballs <107233412+Burgerballs@users.noreply.github.com> Date: Fri, 4 Oct 2024 13:20:39 +0100 Subject: [PATCH] fix: center preloader 'fnf' and 'dsp' text so it doesn't clip anymore --- source/funkin/ui/transition/preload/FunkinPreloader.hx | 10 +++++----- source/funkin/util/WindowUtil.hx | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/source/funkin/ui/transition/preload/FunkinPreloader.hx b/source/funkin/ui/transition/preload/FunkinPreloader.hx index 9d2569588..1b39a3482 100644 --- a/source/funkin/ui/transition/preload/FunkinPreloader.hx +++ b/source/funkin/ui/transition/preload/FunkinPreloader.hx @@ -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); diff --git a/source/funkin/util/WindowUtil.hx b/source/funkin/util/WindowUtil.hx index 1d5739697..b4e99f1cd 100644 --- a/source/funkin/util/WindowUtil.hx +++ b/source/funkin/util/WindowUtil.hx @@ -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) {