text fix for my mobile fellas

This commit is contained in:
kade-github
2025-07-21 23:16:43 +03:00
committed by sector-a
parent 2277acccfa
commit 2cc43ee1f6
+6 -2
View File
@@ -353,7 +353,7 @@ class OffsetMenu extends Page<OptionsState.OptionsMenuPageName>
jumpInText.text = 'Hit the notes as they come in!';
#if mobile
if (OptionsState.instance.hitbox != null) OptionsState.instance.hitbox.visible = true;
if (Preferences.controlsScheme == FunkinHitboxControlSchemes.Arrows && !ControlsHandler.usingExternalInputDevice)
if (!ControlsHandler.usingExternalInputDevice)
{
final amplification:Float = (FlxG.width / FlxG.height) / (FlxG.initialWidth / FlxG.initialHeight);
final playerStrumlineScale:Float = ((FlxG.height / FlxG.width) * 1.95) * amplification;
@@ -391,7 +391,7 @@ class OffsetMenu extends Page<OptionsState.OptionsMenuPageName>
jumpInText.y = testStrumline.y + 175;
#if mobile
if (Preferences.controlsScheme != FunkinHitboxControlSchemes.Arrows || ControlsHandler.usingExternalInputDevice)
if (ControlsHandler.usingExternalInputDevice)
{
#end
testStrumline.y = Preferences.downscroll ? FlxG.height - (testStrumline.height + 45) - Constants.STRUMLINE_Y_OFFSET : (testStrumline.height / 2)
@@ -400,6 +400,10 @@ class OffsetMenu extends Page<OptionsState.OptionsMenuPageName>
testStrumline.isDownscroll = Preferences.downscroll;
#if mobile
}
else
{
jumpInText.y = testStrumline.y - 175;
}
#end
});
PreciseInputManager.instance.onInputPressed.add(onKeyPress);