Skip to content

Commit c142072

Browse files
committed
fix keybinds options shitty text overlap
1 parent 8938665 commit c142072

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

source/funkin/options/keybinds/KeybindSetting.hx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class KeybindSetting extends FlxTypedSpriteGroup<FlxSprite> {
3232
option1 = controlArrayP1[0];
3333
option2 = controlArrayP2[0];
3434

35-
for(i in 1...3) {
35+
for (i in 1...3) {
3636
var b = null;
3737
var bx = FlxG.width * (0.25 * (i+1)) - x;
3838
if (i == 1)
@@ -60,6 +60,11 @@ class KeybindSetting extends FlxTypedSpriteGroup<FlxSprite> {
6060
title.setPosition(100, 0);
6161
}
6262

63+
if (title.x + title.width > bind1.x - 20) {
64+
title.scale.x = (bind1.x - 20 - title.x) / title.width;
65+
title.updateHitbox();
66+
}
67+
6368
setPosition(x, y);
6469
}
6570

source/funkin/options/keybinds/KeybindsOptions.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ class KeybindsOptions extends MusicBeatSubstate {
197197
add(title);
198198

199199
k++;
200-
for(e in category.settings) {
200+
for (e in category.settings) {
201201
var sparrowIcon:String = null;
202202
var sparrowAnim:String = null;
203203
if (e.sparrowIcon != null) sparrowIcon = e.sparrowIcon;

0 commit comments

Comments
 (0)