diff --git a/source/MainMenuState.hx b/source/MainMenuState.hx index 93c0881..fc58555 100644 --- a/source/MainMenuState.hx +++ b/source/MainMenuState.hx @@ -105,6 +105,7 @@ class MainMenuState extends MusicBeatState FlxTween.tween(menuItem,{y: 60 + (i * 160)},1 + (i * 0.25) ,{ease: FlxEase.expoInOut, onComplete: function(flxTween:FlxTween) { finishedFunnyMove = true; + changeItem(); }}); else menuItem.y = 60 + (i * 160); @@ -164,11 +165,7 @@ class MainMenuState extends MusicBeatState { if (optionShit[curSelected] == 'donate') { - #if linux - Sys.command('/usr/bin/xdg-open', ["https://www.kickstarter.com/projects/funkin/friday-night-funkin-the-full-ass-game", "&"]); - #else - FlxG.openURL('https://www.kickstarter.com/projects/funkin/friday-night-funkin-the-full-ass-game'); - #end + fancyOpenURL("https://www.kickstarter.com/projects/funkin/friday-night-funkin-the-full-ass-game"); } else { @@ -263,4 +260,4 @@ class MainMenuState extends MusicBeatState spr.updateHitbox(); }); } -} \ No newline at end of file +} diff --git a/source/MusicBeatState.hx b/source/MusicBeatState.hx index 65b2f7c..d98bd64 100644 --- a/source/MusicBeatState.hx +++ b/source/MusicBeatState.hx @@ -111,4 +111,13 @@ class MusicBeatState extends FlxUIState { //do literally nothing dumbass } + + public function fancyOpenURL(schmancy:String) + { + #if linux + Sys.command('/usr/bin/xdg-open', [schmancy, "&"]); + #else + FlxG.openURL(schmancy); + #end + } } diff --git a/source/OutdatedSubState.hx b/source/OutdatedSubState.hx index 5aeba3b..f7015c4 100644 --- a/source/OutdatedSubState.hx +++ b/source/OutdatedSubState.hx @@ -86,7 +86,7 @@ class OutdatedSubState extends MusicBeatState { if (controls.ACCEPT) { - FlxG.openURL("https://kadedev.github.io/Kade-Engine/changelogs/changelog-" + needVer); + fancyOpenURL("https://kadedev.github.io/Kade-Engine/changelogs/changelog-" + needVer); } if (controls.BACK) {