offset desktop only pt.1

This commit is contained in:
Detoria 2021-04-15 12:28:13 -03:00 committed by GitHub
parent 0ab1ba2e53
commit 6e93df0437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,10 @@ class PauseSubState extends MusicBeatSubstate
perSongOffset = new FlxText(5, FlxG.height - 18, 0, "Additive Offset (Left, Right): " + PlayState.songOffset + " - Description - " + 'Adds value to global offset, per song.', 12); perSongOffset = new FlxText(5, FlxG.height - 18, 0, "Additive Offset (Left, Right): " + PlayState.songOffset + " - Description - " + 'Adds value to global offset, per song.', 12);
perSongOffset.scrollFactor.set(); perSongOffset.scrollFactor.set();
perSongOffset.setFormat("VCR OSD Mono", 16, FlxColor.WHITE, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK); perSongOffset.setFormat("VCR OSD Mono", 16, FlxColor.WHITE, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
#if desktop
add(perSongOffset); add(perSongOffset);
#end
for (i in 0...menuItems.length) for (i in 0...menuItems.length)
{ {
@ -106,7 +109,10 @@ class PauseSubState extends MusicBeatSubstate
}else if (downP) }else if (downP)
{ {
changeSelection(1); changeSelection(1);
}else if (leftP) }
#if desktop
else if (leftP)
{ {
oldOffset = PlayState.songOffset; oldOffset = PlayState.songOffset;
PlayState.songOffset -= 1; PlayState.songOffset -= 1;
@ -159,6 +165,7 @@ class PauseSubState extends MusicBeatSubstate
offsetChanged = true; offsetChanged = true;
} }
} }
#end
if (accepted) if (accepted)
{ {