Skip to content
This repository has been archived by the owner on Aug 29, 2022. It is now read-only.

Commit

Permalink
1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
notweuz committed Jun 22, 2022
1 parent 5156193 commit 66ccc4c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions source/HscriptHandler.hx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import StrumNote;
import ClientPrefs;
import Conductor;
import Note;
import MainMenuState;
import NoteSplash;

import flixel.FlxBasic;
Expand Down Expand Up @@ -45,6 +46,7 @@ class HscriptHandler {
interp.variables.set('GameOverSubstate', GameOverSubstate);
interp.variables.set('Note', Note);
interp.variables.set('FlxG', FlxG);
interp.variables.set('MainMenuState', MainMenuState);
interp.variables.set('Song', Song);
interp.variables.set('FlxGame', FlxGame);
interp.variables.set('FlxBackdrop', FlxBackdrop);
Expand Down
2 changes: 1 addition & 1 deletion source/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ using StringTools;

class MainMenuState extends MusicBeatState
{
public static var osEngineVersion:String = '1.4.0'; //This is also used for Discord RPC
public static var osEngineVersion:String = '1.4.1'; //This is also used for Discord RPC
public static var curSelected:Int = 0;

var menuItems:FlxTypedGroup<FlxSprite>;
Expand Down
6 changes: 5 additions & 1 deletion source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -4636,6 +4636,7 @@ class PlayState extends MusicBeatState
}

function noteMiss(daNote:Note):Void { //You didn't hit the key and let it go offscreen, also used by Hurt Notes
callOnHScripts('noteMiss', [notes.members.indexOf(daNote), daNote.noteData, daNote.noteType, daNote.isSustainNote, daNote.ID]);
//Dupe note remove
if (daNote.isSustainNote) {
if (daNote.parent != null) {
Expand Down Expand Up @@ -4694,7 +4695,6 @@ class PlayState extends MusicBeatState
}

callOnLuas('noteMiss', [notes.members.indexOf(daNote), daNote.noteData, daNote.noteType, daNote.isSustainNote, daNote.ID]);
callOnHScripts('noteMiss', [notes.members.indexOf(daNote), daNote.noteData, daNote.noteType, daNote.isSustainNote, daNote.ID]);
}

function noteMissPress(direction:Int = 1):Void //You pressed a key when there was no notes to press for this key
Expand Down Expand Up @@ -5337,6 +5337,10 @@ class PlayState extends MusicBeatState
method();
} else if (args.length == 1) {
method(args[0]);
} else if (args.length == 5) {
method(args[0], args[1], args[2], args[3], args[4]);
} else if (args.length == 4) {
method(args[0], args[1], args[2], args[3]);
}
}

Expand Down

0 comments on commit 66ccc4c

Please sign in to comment.