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.scrollFactor.set();
|
||||
perSongOffset.setFormat("VCR OSD Mono", 16, FlxColor.WHITE, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
|
||||
|
||||
#if desktop
|
||||
add(perSongOffset);
|
||||
#end
|
||||
|
||||
for (i in 0...menuItems.length)
|
||||
{
|
||||
@ -106,7 +109,10 @@ class PauseSubState extends MusicBeatSubstate
|
||||
}else if (downP)
|
||||
{
|
||||
changeSelection(1);
|
||||
}else if (leftP)
|
||||
}
|
||||
|
||||
#if desktop
|
||||
else if (leftP)
|
||||
{
|
||||
oldOffset = PlayState.songOffset;
|
||||
PlayState.songOffset -= 1;
|
||||
@ -159,6 +165,7 @@ class PauseSubState extends MusicBeatSubstate
|
||||
offsetChanged = true;
|
||||
}
|
||||
}
|
||||
#end
|
||||
|
||||
if (accepted)
|
||||
{
|
||||
|
@ -39,10 +39,10 @@ import lime.utils.Assets;
|
||||
import openfl.display.BlendMode;
|
||||
import openfl.display.StageQuality;
|
||||
import openfl.filters.ShaderFilter;
|
||||
import Sys;
|
||||
|
||||
#if windows
|
||||
#if desktop
|
||||
import Discord.DiscordClient;
|
||||
import Sys;
|
||||
#end
|
||||
|
||||
using StringTools;
|
||||
@ -1230,6 +1230,7 @@ class PlayState extends MusicBeatState
|
||||
var playerCounter:Int = 0;
|
||||
|
||||
// Per song offset check
|
||||
#if desktop
|
||||
var songPath = 'assets/data/' + PlayState.SONG.song.toLowerCase() + '/';
|
||||
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
|
||||
for (section in noteData)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user