dude im super fuckin dumb
This commit is contained in:
parent
99f6496541
commit
f49909f03f
@ -18,13 +18,11 @@ class OutdatedSubState extends MusicBeatState
|
|||||||
super.create();
|
super.create();
|
||||||
var bg:FlxSprite = new FlxSprite().makeGraphic(FlxG.width, FlxG.height, FlxColor.BLACK);
|
var bg:FlxSprite = new FlxSprite().makeGraphic(FlxG.width, FlxG.height, FlxColor.BLACK);
|
||||||
add(bg);
|
add(bg);
|
||||||
var ver = "v" + Application.current.meta.get('version');
|
|
||||||
var txt:FlxText = new FlxText(0, 0, FlxG.width,
|
var txt:FlxText = new FlxText(0, 0, FlxG.width,
|
||||||
"Kade Engine is Outdated!\n"
|
"Kade Engine is Outdated!\n"
|
||||||
+ ver
|
+ MainMenuState.kadeEngineVer
|
||||||
+ " is your current version while the most recent version is "
|
+ " is your current version\nwhile the most recent version is " + needVer
|
||||||
+ needVer
|
+ "!\nPress Space to go to the github or ESCAPE to ignore this!!",
|
||||||
+ "! Press Space to go to the github or ESCAPE to ignore this!!",
|
|
||||||
32);
|
32);
|
||||||
txt.setFormat("VCR OSD Mono", 32, FlxColor.WHITE, CENTER);
|
txt.setFormat("VCR OSD Mono", 32, FlxColor.WHITE, CENTER);
|
||||||
txt.screenCenter();
|
txt.screenCenter();
|
||||||
|
@ -283,9 +283,9 @@ class TitleState extends MusicBeatState
|
|||||||
|
|
||||||
http.onData = function (data:String) {
|
http.onData = function (data:String) {
|
||||||
|
|
||||||
if (MainMenuState.kadeEngineVer != data && !OutdatedSubState.leftState)
|
if (!MainMenuState.kadeEngineVer.contains(data.trim()) && !OutdatedSubState.leftState)
|
||||||
{
|
{
|
||||||
trace('outdated lmao! ' + data + ' != ' + MainMenuState.kadeEngineVer);
|
trace('outdated lmao! ' + data.trim() + ' != ' + MainMenuState.kadeEngineVer);
|
||||||
OutdatedSubState.needVer = data;
|
OutdatedSubState.needVer = data;
|
||||||
FlxG.switchState(new OutdatedSubState());
|
FlxG.switchState(new OutdatedSubState());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user