fix keybinds options shitty text overlap
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user