Merge pull request #678 from prokube/little-things

two things that literally don't affect anything
This commit is contained in:
Kade M 2021-06-03 14:33:48 -07:00 committed by GitHub
commit 9911ecf3b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 7 deletions

View File

@ -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) FlxTween.tween(menuItem,{y: 60 + (i * 160)},1 + (i * 0.25) ,{ease: FlxEase.expoInOut, onComplete: function(flxTween:FlxTween)
{ {
finishedFunnyMove = true; finishedFunnyMove = true;
changeItem();
}}); }});
else else
menuItem.y = 60 + (i * 160); menuItem.y = 60 + (i * 160);
@ -164,11 +165,7 @@ class MainMenuState extends MusicBeatState
{ {
if (optionShit[curSelected] == 'donate') if (optionShit[curSelected] == 'donate')
{ {
#if linux fancyOpenURL("https://www.kickstarter.com/projects/funkin/friday-night-funkin-the-full-ass-game");
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
} }
else else
{ {
@ -263,4 +260,4 @@ class MainMenuState extends MusicBeatState
spr.updateHitbox(); spr.updateHitbox();
}); });
} }
} }

View File

@ -111,4 +111,13 @@ class MusicBeatState extends FlxUIState
{ {
//do literally nothing dumbass //do literally nothing dumbass
} }
public function fancyOpenURL(schmancy:String)
{
#if linux
Sys.command('/usr/bin/xdg-open', [schmancy, "&"]);
#else
FlxG.openURL(schmancy);
#end
}
} }

View File

@ -86,7 +86,7 @@ class OutdatedSubState extends MusicBeatState
{ {
if (controls.ACCEPT) 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) if (controls.BACK)
{ {