Skip to content

Commit

Permalink
nothing to see here
Browse files Browse the repository at this point in the history
  • Loading branch information
Vortex2Oblivion committed Nov 9, 2024
1 parent 9de14ae commit 3881910
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package utilities;
package game;

import game.TimeBar;
import flixel.graphics.FlxGraphic;
Expand Down
10 changes: 5 additions & 5 deletions source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import ui.DialogueBox;
import ui.HealthIcon;
import utilities.NoteVariables;
import utilities.Ratings;
import utilities.EventHandeler;
import game.EventHandeler;
import sys.FileSystem;

using StringTools;
Expand Down Expand Up @@ -368,7 +368,7 @@ class PlayState extends MusicBeatState {
@author ninjamuffin99 probably
**/
@:noCompletion public static var daPixelZoom:Float = 6;
@:noCompletion public static inline var daPixelZoom:Float = 6;

/**
Whether or not you are currently in a cutscene.
Expand Down Expand Up @@ -603,10 +603,11 @@ class PlayState extends MusicBeatState {
}

override public function create() {
tweenManager = new FlxTweenManager();
// set instance because duh
instance = this;

tweenManager = new FlxTweenManager();

FlxG.mouse.visible = false;

// preload pause music
Expand Down Expand Up @@ -655,8 +656,7 @@ class PlayState extends MusicBeatState {

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

// load our binds
Expand Down
5 changes: 3 additions & 2 deletions source/states/TitleState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,9 @@ class TitleState extends MusicBeatState {
trace(data);

if (CoolUtil.getCurrentVersion() != data) {
trace('Outdated Version Detected! ' + data + ' != ' + CoolUtil.getCurrentVersion(), WARNING);
FlxG.switchState(new OutdatedSubState(data));
trace('Outdated Version Detected! ' + data.trim() + ' != ' + CoolUtil.getCurrentVersion(), WARNING);
Main.display.version += ' - UPDATE AVALIABLE (${data.trim()})';
FlxG.switchState(new OutdatedSubState(data.trim()));
} else {
FlxG.switchState(new MainMenuState());
}
Expand Down
10 changes: 2 additions & 8 deletions source/substates/OutdatedSubState.hx
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
package substates;

import states.TitleState;

import states.MainMenuState;
import states.MusicBeatState;
import flixel.FlxG;
import flixel.FlxSprite;
import flixel.FlxSubState;
import flixel.text.FlxText;
import flixel.util.FlxColor;
import lime.app.Application;

class OutdatedSubState extends MusicBeatState {
public static var leftState:Bool = false;
private var version:String = 'vnull';

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

var bg:FlxSprite = new FlxSprite().makeGraphic(FlxG.width, FlxG.height, FlxColor.BLACK);
add(bg);
add(new FlxSprite().makeGraphic(FlxG.width, FlxG.height, FlxColor.BLACK));

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

if (controls.ACCEPT) {
CoolUtil.openURL("https://github.com/Vortex2Oblivion/LeatherEngine-Extended-Support");
CoolUtil.openURL("https://github.com/Vortex2Oblivion/LeatherEngine");
}

if (controls.BACK) {
leftState = true;
FlxG.switchState(new MainMenuState());
}
}
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
test
0.5.0pre

0 comments on commit 3881910

Please sign in to comment.