From c3a19e7a9d3f5ec18c883f9d8b3190f699406f8f Mon Sep 17 00:00:00 2001 From: Prokube <68293280+prokube@users.noreply.github.com> Date: Wed, 2 Jun 2021 16:03:47 -0700 Subject: [PATCH 1/4] wah loogi --- source/MainMenuState.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/MainMenuState.hx b/source/MainMenuState.hx index 93c0881..51db1e4 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); @@ -263,4 +264,4 @@ class MainMenuState extends MusicBeatState spr.updateHitbox(); }); } -} \ No newline at end of file +} From 8a6126d98a1ef8f650ee0cff850e62bd1f20f577 Mon Sep 17 00:00:00 2001 From: Prokube <68293280+prokube@users.noreply.github.com> Date: Wed, 2 Jun 2021 16:09:16 -0700 Subject: [PATCH 2/4] useless function --- source/MusicBeatState.hx | 9 +++++++++ 1 file changed, 9 insertions(+) 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 + } } From 9bbabb7cc7cace52b278dd9b9285f04f5a2623e0 Mon Sep 17 00:00:00 2001 From: Prokube <68293280+prokube@users.noreply.github.com> Date: Wed, 2 Jun 2021 16:10:36 -0700 Subject: [PATCH 3/4] useless function being used #1 --- source/MainMenuState.hx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/source/MainMenuState.hx b/source/MainMenuState.hx index 51db1e4..fc58555 100644 --- a/source/MainMenuState.hx +++ b/source/MainMenuState.hx @@ -165,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 { From 2b979b5b4220649db612501e05714d6c4b80663b Mon Sep 17 00:00:00 2001 From: Prokube <68293280+prokube@users.noreply.github.com> Date: Wed, 2 Jun 2021 16:11:42 -0700 Subject: [PATCH 4/4] useless function being used #2 yay --- source/OutdatedSubState.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {