From c14207236fa6d862cd0efa958bdf1a27bc775b21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=8D=9A=7ENex?= <87421482+NexIsDumb@users.noreply.github.com> Date: Sat, 25 Oct 2025 01:12:45 +0200 Subject: [PATCH] fix keybinds options shitty text overlap --- source/funkin/options/keybinds/KeybindSetting.hx | 7 ++++++- source/funkin/options/keybinds/KeybindsOptions.hx | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/source/funkin/options/keybinds/KeybindSetting.hx b/source/funkin/options/keybinds/KeybindSetting.hx index c075fc8d..264ca9c7 100644 --- a/source/funkin/options/keybinds/KeybindSetting.hx +++ b/source/funkin/options/keybinds/KeybindSetting.hx @@ -32,7 +32,7 @@ class KeybindSetting extends FlxTypedSpriteGroup { option1 = controlArrayP1[0]; option2 = controlArrayP2[0]; - for(i in 1...3) { + for (i in 1...3) { var b = null; var bx = FlxG.width * (0.25 * (i+1)) - x; if (i == 1) @@ -60,6 +60,11 @@ class KeybindSetting extends FlxTypedSpriteGroup { title.setPosition(100, 0); } + if (title.x + title.width > bind1.x - 20) { + title.scale.x = (bind1.x - 20 - title.x) / title.width; + title.updateHitbox(); + } + setPosition(x, y); } diff --git a/source/funkin/options/keybinds/KeybindsOptions.hx b/source/funkin/options/keybinds/KeybindsOptions.hx index ad068447..865455ce 100644 --- a/source/funkin/options/keybinds/KeybindsOptions.hx +++ b/source/funkin/options/keybinds/KeybindsOptions.hx @@ -197,7 +197,7 @@ class KeybindsOptions extends MusicBeatSubstate { add(title); k++; - for(e in category.settings) { + for (e in category.settings) { var sparrowIcon:String = null; var sparrowAnim:String = null; if (e.sparrowIcon != null) sparrowIcon = e.sparrowIcon;