From fc2e28ab1839bb98abac6d8c5156508a232b42bd Mon Sep 17 00:00:00 2001 From: sector-a <82838084+sector-a@users.noreply.github.com> Date: Thu, 10 Apr 2025 18:33:02 +0300 Subject: [PATCH] Adjust strumline background for Arrows scheme --- source/funkin/play/notes/Strumline.hx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/funkin/play/notes/Strumline.hx b/source/funkin/play/notes/Strumline.hx index 3d299f104..02f55cffc 100644 --- a/source/funkin/play/notes/Strumline.hx +++ b/source/funkin/play/notes/Strumline.hx @@ -183,11 +183,21 @@ class Strumline extends FlxSpriteGroup this.noteSplashes.zIndex = 50; this.add(this.noteSplashes); - this.background = new FunkinSprite(0, 0).makeSolidColor(Std.int(KEY_COUNT * Strumline.NOTE_SPACING + BACKGROUND_PAD * 2), FlxG.height, 0xFF000000); + var backgroundWidth:Float = KEY_COUNT * Strumline.NOTE_SPACING + BACKGROUND_PAD * 2; + #if mobile + if (Preferences.controlsScheme == FunkinHitboxControlSchemes.Arrows && isPlayer) + { + backgroundWidth = backgroundWidth * 1.84; + } + #end + this.background = new FunkinSprite(0, 0).makeSolidColor(Std.int(backgroundWidth), FlxG.height, 0xFF000000); // Convert the percent to a number between 0 and 1. this.background.alpha = Preferences.strumlineBackgroundOpacity / 100.0; this.background.scrollFactor.set(0, 0); this.background.x = -BACKGROUND_PAD; + #if mobile + if (Preferences.controlsScheme == FunkinHitboxControlSchemes.Arrows && isPlayer) this.background.x -= 100; + #end this.add(this.background); strumlineScale = new FlxCallbackPoint(strumlineScaleCallback);