From fda71f12de4f5b0c25d4dd5fa75e12df498c9f19 Mon Sep 17 00:00:00 2001 From: Joalor64 Date: Tue, 1 Aug 2023 16:27:35 -0400 Subject: [PATCH] `noLink` variable you're welcome. --- TODO | 3 +++ source/meta/state/CreditsState.hx | 26 ++++++++++++++++++++++++-- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index ea1aa1cc..2332c1f1 100644 --- a/TODO +++ b/TODO @@ -4,6 +4,9 @@ - In-Game Crash Handler - Note Color Presets +[SOMEWHERE IN BETWEEN] +- Script Editor + [LOW PRIORITY] - Better Startup Screen - Actual Noteskins System diff --git a/source/meta/state/CreditsState.hx b/source/meta/state/CreditsState.hx index 24196fa4..485e9b56 100644 --- a/source/meta/state/CreditsState.hx +++ b/source/meta/state/CreditsState.hx @@ -43,6 +43,8 @@ class CreditsState extends MusicBeatState var offsetThing:Float = -75; + var noLink:Bool; + override function create() { #if desktop @@ -446,8 +448,28 @@ class CreditsState extends MusicBeatState } } - if (FlxG.keys.justPressed.ENTER && (creditsStuff[curSelected][3] == null || creditsStuff[curSelected][3].length > 4)) - CoolUtil.browserLoad(creditsStuff[curSelected][3]); + if (creditsStuff[curSelected][3] == 'nolink') + { + noLink = true; + } + else + { + noLink = false; + } + if (noLink) + { + if (FlxG.keys.justPressed.ENTER) + { + FlxG.sound.play(Paths.sound('cancelMenu')); + } + } + else + { + if (FlxG.keys.justPressed.ENTER) + { + CoolUtil.browserLoad(creditsStuff[curSelected][3]); + } + } if (FlxG.keys.justPressed.SPACE) FlxG.sound.play(Paths.sound('credits/' + creditsStuff[curSelected][5]));