Merge pull request #218 from theDetourist/offset-desktoponly
Make Per Song Offset Desktop Only
This commit is contained in:
commit
e92d286405
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -39,10 +39,10 @@ import lime.utils.Assets;
|
|||||||
import openfl.display.BlendMode;
|
import openfl.display.BlendMode;
|
||||||
import openfl.display.StageQuality;
|
import openfl.display.StageQuality;
|
||||||
import openfl.filters.ShaderFilter;
|
import openfl.filters.ShaderFilter;
|
||||||
import Sys;
|
|
||||||
|
|
||||||
#if windows
|
#if desktop
|
||||||
import Discord.DiscordClient;
|
import Discord.DiscordClient;
|
||||||
|
import Sys;
|
||||||
#end
|
#end
|
||||||
|
|
||||||
using StringTools;
|
using StringTools;
|
||||||
@ -1230,6 +1230,7 @@ class PlayState extends MusicBeatState
|
|||||||
var playerCounter:Int = 0;
|
var playerCounter:Int = 0;
|
||||||
|
|
||||||
// Per song offset check
|
// Per song offset check
|
||||||
|
#if desktop
|
||||||
var songPath = 'assets/data/' + PlayState.SONG.song.toLowerCase() + '/';
|
var songPath = 'assets/data/' + PlayState.SONG.song.toLowerCase() + '/';
|
||||||
for(file in sys.FileSystem.readDirectory(songPath))
|
for(file in sys.FileSystem.readDirectory(songPath))
|
||||||
{
|
{
|
||||||
@ -1247,6 +1248,8 @@ class PlayState extends MusicBeatState
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#end
|
||||||
|
|
||||||
var daBeats:Int = 0; // Not exactly representative of 'daBeats' lol, just how much it has looped
|
var daBeats:Int = 0; // Not exactly representative of 'daBeats' lol, just how much it has looped
|
||||||
for (section in noteData)
|
for (section in noteData)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user