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

Commit 66ccc4c

Browse files
committed
1.4.1
1 parent 5156193 commit 66ccc4c

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

source/HscriptHandler.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import StrumNote;
1414
import ClientPrefs;
1515
import Conductor;
1616
import Note;
17+
import MainMenuState;
1718
import NoteSplash;
1819

1920
import flixel.FlxBasic;
@@ -45,6 +46,7 @@ class HscriptHandler {
4546
interp.variables.set('GameOverSubstate', GameOverSubstate);
4647
interp.variables.set('Note', Note);
4748
interp.variables.set('FlxG', FlxG);
49+
interp.variables.set('MainMenuState', MainMenuState);
4850
interp.variables.set('Song', Song);
4951
interp.variables.set('FlxGame', FlxGame);
5052
interp.variables.set('FlxBackdrop', FlxBackdrop);

source/MainMenuState.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ using StringTools;
3030

3131
class MainMenuState extends MusicBeatState
3232
{
33-
public static var osEngineVersion:String = '1.4.0'; //This is also used for Discord RPC
33+
public static var osEngineVersion:String = '1.4.1'; //This is also used for Discord RPC
3434
public static var curSelected:Int = 0;
3535

3636
var menuItems:FlxTypedGroup<FlxSprite>;

source/PlayState.hx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4636,6 +4636,7 @@ class PlayState extends MusicBeatState
46364636
}
46374637

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

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

47004700
function noteMissPress(direction:Int = 1):Void //You pressed a key when there was no notes to press for this key
@@ -5337,6 +5337,10 @@ class PlayState extends MusicBeatState
53375337
method();
53385338
} else if (args.length == 1) {
53395339
method(args[0]);
5340+
} else if (args.length == 5) {
5341+
method(args[0], args[1], args[2], args[3], args[4]);
5342+
} else if (args.length == 4) {
5343+
method(args[0], args[1], args[2], args[3]);
53405344
}
53415345
}
53425346

0 commit comments

Comments
 (0)