fix keybinds options shitty text overlap

This commit is contained in:
⍚~Nex
2025-10-25 01:12:45 +02:00
parent 8938665acb
commit c14207236f
2 changed files with 7 additions and 2 deletions
@@ -32,7 +32,7 @@ class KeybindSetting extends FlxTypedSpriteGroup<FlxSprite> {
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<FlxSprite> {
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);
}
@@ -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;