NGio bootleg API bullshit
This commit is contained in:
parent
cec5ffbf25
commit
195ddb2eb3
|
@ -1,10 +1,10 @@
|
||||||
name: learn-github-actions
|
|
||||||
on: [push]
|
|
||||||
jobs:
|
jobs:
|
||||||
check-bats-version:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: [ubuntu-latest, macos-latest]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: krdlab/setup-haxe@v1
|
||||||
- uses: actions/setup-node@v1
|
with:
|
||||||
- run: npm install -g bats
|
haxe-version: 4.0.5
|
||||||
- run: bats -v
|
- run: |
|
||||||
|
haxe -version
|
||||||
|
haxelib install hxnodejs
|
|
@ -10,6 +10,7 @@ import flixel.text.FlxText;
|
||||||
import flixel.tweens.FlxEase;
|
import flixel.tweens.FlxEase;
|
||||||
import flixel.tweens.FlxTween;
|
import flixel.tweens.FlxTween;
|
||||||
import flixel.util.FlxColor;
|
import flixel.util.FlxColor;
|
||||||
|
import io.newgrounds.NG;
|
||||||
import lime.app.Application;
|
import lime.app.Application;
|
||||||
|
|
||||||
class MainMenuState extends MusicBeatState
|
class MainMenuState extends MusicBeatState
|
||||||
|
@ -86,6 +87,8 @@ class MainMenuState extends MusicBeatState
|
||||||
versionShit.setFormat("VCR OSD Mono", 16, FlxColor.WHITE, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
|
versionShit.setFormat("VCR OSD Mono", 16, FlxColor.WHITE, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
|
||||||
add(versionShit);
|
add(versionShit);
|
||||||
|
|
||||||
|
NG.core.calls.event.logEvent('swag').send();
|
||||||
|
|
||||||
changeItem();
|
changeItem();
|
||||||
|
|
||||||
super.create();
|
super.create();
|
||||||
|
|
|
@ -22,6 +22,11 @@ class NGio
|
||||||
public static var ngDataLoaded(default, null):FlxSignal = new FlxSignal();
|
public static var ngDataLoaded(default, null):FlxSignal = new FlxSignal();
|
||||||
public static var ngScoresLoaded(default, null):FlxSignal = new FlxSignal();
|
public static var ngScoresLoaded(default, null):FlxSignal = new FlxSignal();
|
||||||
|
|
||||||
|
public static function noLogin(api:String)
|
||||||
|
{
|
||||||
|
NG.create(api);
|
||||||
|
}
|
||||||
|
|
||||||
public function new(api:String, encKey:String, ?sessionId:String)
|
public function new(api:String, encKey:String, ?sessionId:String)
|
||||||
{
|
{
|
||||||
trace("connecting to newgrounds");
|
trace("connecting to newgrounds");
|
||||||
|
|
|
@ -51,6 +51,8 @@ class TitleState extends MusicBeatState
|
||||||
|
|
||||||
super.create();
|
super.create();
|
||||||
|
|
||||||
|
NGio.noLogin(APIStuff.API);
|
||||||
|
|
||||||
#if ng
|
#if ng
|
||||||
var ng:NGio = new NGio(APIStuff.API, APIStuff.EncKey);
|
var ng:NGio = new NGio(APIStuff.API, APIStuff.EncKey);
|
||||||
trace('NEWGROUNDS LOL');
|
trace('NEWGROUNDS LOL');
|
||||||
|
|
Loading…
Reference in New Issue