Skip to content

Commit

Permalink
quick cursor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Nov 28, 2024
1 parent 764e5ee commit 545cbe8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
16 changes: 3 additions & 13 deletions source/states/ChartingState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ class ChartingState extends ExtendableState {

var strumLine:FlxSprite;

var undos = [];
var redos = [];

var _file:FileReference;

override public function new() {
Expand All @@ -74,8 +71,10 @@ class ChartingState extends ExtendableState {
Paths.clearStoredMemory();
Paths.clearUnusedMemory();

FlxG.mouse.load(Paths.image('cursor/cursor'));
FlxG.mouse.visible = true;

FlxG.mouse.unload();
FlxG.mouse.load(Paths.image('cursor/cursor'));

Conductor.bpm = song.bpm;
loadSong(Paths.formatToSongPath(song.song));
Expand Down Expand Up @@ -213,9 +212,6 @@ class ChartingState extends ExtendableState {
FlxG.sound.music.play();
}

if (Input.justPressed('z') && Input.pressed('control'))
undo();

if (FlxG.mouse.x > gridBG.x
&& FlxG.mouse.x < gridBG.x + gridBG.width
&& FlxG.mouse.y > gridBG.y
Expand Down Expand Up @@ -520,12 +516,6 @@ class ChartingState extends ExtendableState {
_file = null;
trace("Problem saving song");
}

function undo() {
undos.pop();
}

function redo() {}
}

class LoadSongSubState extends ExtendableSubState {
Expand Down
2 changes: 1 addition & 1 deletion source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package states;
import backend.Song;

class PlayState extends ExtendableState {
public static var instance(default, null):PlayState;
public static var instance:PlayState = null;

public static var song:SongData = null;
public static var songMultiplier:Float = 1;
Expand Down

0 comments on commit 545cbe8

Please sign in to comment.