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)
{
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
{

View File

@ -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
}
}

View File

@ -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)
{