diff --git a/mods/test/data/charts/test-dia.txt b/mods/test/data/charts/test-dia.txt new file mode 100644 index 0000000..1c8711d --- /dev/null +++ b/mods/test/data/charts/test-dia.txt @@ -0,0 +1 @@ +DaveDialogue \ No newline at end of file diff --git a/mods/test/data/charts/test-settings.txt b/mods/test/data/charts/test-settings.txt index c5c7fe5..f1a0378 100644 --- a/mods/test/data/charts/test-settings.txt +++ b/mods/test/data/charts/test-settings.txt @@ -1 +1 @@ -Kawai Sprite & MtH:funkinHeading:The testiest song on the planet:DaveDialogue \ No newline at end of file +Kawai Sprite & MtH:funkinHeading:The testiest song on the planet \ No newline at end of file diff --git a/source/DialogueBox.hx b/source/DialogueBox.hx index 96ac9c1..cecf621 100644 --- a/source/DialogueBox.hx +++ b/source/DialogueBox.hx @@ -78,8 +78,8 @@ class DialogueBox extends FlxSpriteGroup { super(); - if (FileSystem.exists(TitleState.modFolder + '/data/charts/' + PlayState.SONG.song.toLowerCase() + '-settings.txt')) { - custom = CoolUtil.coolTextFile(TitleState.modFolder + '/data/charts/' + PlayState.SONG.song.toLowerCase() + '-settings.txt'); + if (FileSystem.exists(TitleState.modFolder + '/data/charts/' + PlayState.SONG.song.toLowerCase() + '-dia.txt')) { + custom = CoolUtil.coolTextFile(TitleState.modFolder + '/data/charts/' + PlayState.SONG.song.toLowerCase() + '-dia.txt'); } if (playMusic) @@ -120,11 +120,11 @@ class DialogueBox extends FlxSpriteGroup case 'rano': FlxG.sound.playMusic(Paths.music('stocknightambianceforranolol'), 0); default: - if (FileSystem.exists(TitleState.modFolder + '/data/charts/' + PlayState.SONG.song.toLowerCase() + '-settings.txt')) { + if (FileSystem.exists(TitleState.modFolder + '/data/charts/' + PlayState.SONG.song.toLowerCase() + '-dia.txt')) { for (i in 0...custom.length) { var data:Array = custom[i].split(':'); - if (data[3] == null) { + if (data[0] == null) { FlxG.sound.music.stop(); } else { FlxG.sound.playMusic(Paths.music(data[0]), 0);