From 483262d50cc16c230f04588092d6efd9135e5b2f Mon Sep 17 00:00:00 2001 From: Cam the Kirby <92703353+CamtheKirby@users.noreply.github.com> Date: Wed, 29 May 2024 22:09:37 -0500 Subject: [PATCH] fix because its acting dumb --- mods/test/data/charts/test-dia.txt | 1 + mods/test/data/charts/test-settings.txt | 2 +- source/DialogueBox.hx | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 mods/test/data/charts/test-dia.txt 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);