Skip to content

Commit

Permalink
noLink variable
Browse files Browse the repository at this point in the history
you're welcome.
  • Loading branch information
Joalor64GH authored Aug 1, 2023
1 parent 8972365 commit fda71f1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
3 changes: 3 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
- In-Game Crash Handler
- Note Color Presets

[SOMEWHERE IN BETWEEN]
- Script Editor

[LOW PRIORITY]
- Better Startup Screen
- Actual Noteskins System
Expand Down
26 changes: 24 additions & 2 deletions source/meta/state/CreditsState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ class CreditsState extends MusicBeatState

var offsetThing:Float = -75;

var noLink:Bool;

override function create()
{
#if desktop
Expand Down Expand Up @@ -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]));

Expand Down

0 comments on commit fda71f1

Please sign in to comment.