Skip to content
This repository was archived by the owner on Sep 28, 2025. It is now read-only.

Commit 3881910

Browse files
nothing to see here
1 parent 9de14ae commit 3881910

File tree

5 files changed

+12
-17
lines changed

5 files changed

+12
-17
lines changed

source/utilities/EventHandeler.hx renamed to source/game/EventHandeler.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package utilities;
1+
package game;
22

33
import game.TimeBar;
44
import flixel.graphics.FlxGraphic;

source/states/PlayState.hx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import ui.DialogueBox;
5151
import ui.HealthIcon;
5252
import utilities.NoteVariables;
5353
import utilities.Ratings;
54-
import utilities.EventHandeler;
54+
import game.EventHandeler;
5555
import sys.FileSystem;
5656

5757
using StringTools;
@@ -368,7 +368,7 @@ class PlayState extends MusicBeatState {
368368
369369
@author ninjamuffin99 probably
370370
**/
371-
@:noCompletion public static var daPixelZoom:Float = 6;
371+
@:noCompletion public static inline var daPixelZoom:Float = 6;
372372

373373
/**
374374
Whether or not you are currently in a cutscene.
@@ -603,10 +603,11 @@ class PlayState extends MusicBeatState {
603603
}
604604

605605
override public function create() {
606-
tweenManager = new FlxTweenManager();
607606
// set instance because duh
608607
instance = this;
609608

609+
tweenManager = new FlxTweenManager();
610+
610611
FlxG.mouse.visible = false;
611612

612613
// preload pause music
@@ -655,8 +656,7 @@ class PlayState extends MusicBeatState {
655656

656657
// preload the miss sounds
657658
for (i in 0...2) {
658-
var sound = FlxG.sound.load(Paths.sound('missnote' + Std.string((i + 1))), 0.2);
659-
missSounds.push(sound);
659+
missSounds.push(FlxG.sound.load(Paths.sound('missnote' + Std.string((i + 1))), 0.2));
660660
}
661661

662662
// load our binds

source/states/TitleState.hx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,9 @@ class TitleState extends MusicBeatState {
310310
trace(data);
311311

312312
if (CoolUtil.getCurrentVersion() != data) {
313-
trace('Outdated Version Detected! ' + data + ' != ' + CoolUtil.getCurrentVersion(), WARNING);
314-
FlxG.switchState(new OutdatedSubState(data));
313+
trace('Outdated Version Detected! ' + data.trim() + ' != ' + CoolUtil.getCurrentVersion(), WARNING);
314+
Main.display.version += ' - UPDATE AVALIABLE (${data.trim()})';
315+
FlxG.switchState(new OutdatedSubState(data.trim()));
315316
} else {
316317
FlxG.switchState(new MainMenuState());
317318
}

source/substates/OutdatedSubState.hx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
package substates;
22

3-
import states.TitleState;
43

54
import states.MainMenuState;
65
import states.MusicBeatState;
76
import flixel.FlxG;
87
import flixel.FlxSprite;
9-
import flixel.FlxSubState;
108
import flixel.text.FlxText;
119
import flixel.util.FlxColor;
12-
import lime.app.Application;
1310

1411
class OutdatedSubState extends MusicBeatState {
15-
public static var leftState:Bool = false;
1612
private var version:String = 'vnull';
1713

1814
public function new(?version:String = 'vnull') {
@@ -23,8 +19,7 @@ class OutdatedSubState extends MusicBeatState {
2319
override function create() {
2420
super.create();
2521

26-
var bg:FlxSprite = new FlxSprite().makeGraphic(FlxG.width, FlxG.height, FlxColor.BLACK);
27-
add(bg);
22+
add(new FlxSprite().makeGraphic(FlxG.width, FlxG.height, FlxColor.BLACK));
2823

2924
var txt:FlxText = new FlxText(0, 0, FlxG.width,
3025
"HEY! You're running an outdated version of the game!\nCurrent version is "
@@ -42,11 +37,10 @@ class OutdatedSubState extends MusicBeatState {
4237
super.update(elapsed);
4338

4439
if (controls.ACCEPT) {
45-
CoolUtil.openURL("https://github.com/Vortex2Oblivion/LeatherEngine-Extended-Support");
40+
CoolUtil.openURL("https://github.com/Vortex2Oblivion/LeatherEngine");
4641
}
4742

4843
if (controls.BACK) {
49-
leftState = true;
5044
FlxG.switchState(new MainMenuState());
5145
}
5246
}

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
test
1+
0.5.0pre

0 commit comments

Comments
 (0)