offset desktop only pt.1
This commit is contained in:
parent
0ab1ba2e53
commit
6e93df0437
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user