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

Commit 72594cf

Browse files
committed
1.4.0?
1 parent e2e2a10 commit 72594cf

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

source/HscriptHandler.hx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import HealthIcon;
1212
import Section;
1313
import StrumNote;
1414
import ClientPrefs;
15+
import Conductor;
1516
import Note;
1617
import NoteSplash;
1718

@@ -35,9 +36,11 @@ class HscriptHandler {
3536
public static function setVars(interp:Interp) {
3637
interp.variables.set('PlayState', PlayState);
3738
interp.variables.set('Character', Character);
39+
interp.variables.set('Paths', Paths);
3840
interp.variables.set('Boyfriend', Boyfriend);
3941
interp.variables.set('HealthIcon', HealthIcon);
4042
interp.variables.set('StrumNote', StrumNote);
43+
interp.variables.set('Conductor', Conductor);
4144
interp.variables.set('ClientPrefs', ClientPrefs);
4245
interp.variables.set('GameOverSubstate', GameOverSubstate);
4346
interp.variables.set('Note', Note);

source/Main.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ class Main extends Sprite
8383
fpsVar.visible = ClientPrefs.showFPS;
8484
}
8585
#end
86+
FlxG.autoPause = false;
8687

8788
#if html5
88-
FlxG.autoPause = false;
8989
FlxG.mouse.visible = false;
9090
#end
9191
}

source/PlayState.hx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,6 @@ class PlayState extends MusicBeatState
336336
{
337337
Paths.clearStoredMemory();
338338

339-
callOnHScripts('create', []);
340-
341339
ratingStuff = [
342340
['F', 0.2], //From 0% to 19%
343341
['E', 0.4], //From 20% to 39%
@@ -1480,6 +1478,7 @@ class PlayState extends MusicBeatState
14801478

14811479
Conductor.safeZoneOffset = (ClientPrefs.safeFrames / 60) * 1000;
14821480
callOnLuas('onCreatePost', []);
1481+
callOnHScripts('create', []);
14831482

14841483
super.create();
14851484

@@ -4497,6 +4496,7 @@ class PlayState extends MusicBeatState
44974496
if (canMiss) {
44984497
noteMissPress(key);
44994498
callOnLuas('noteMissPress', [key]);
4499+
callOnHScripts('noteMissPress', [key]);
45004500
}
45014501
}
45024502

@@ -4693,6 +4693,7 @@ class PlayState extends MusicBeatState
46934693
}
46944694

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

46984699
function noteMissPress(direction:Int = 1):Void //You pressed a key when there was no notes to press for this key
@@ -4820,6 +4821,7 @@ class PlayState extends MusicBeatState
48204821
note.hitByOpponent = true;
48214822

48224823
callOnLuas('opponentNoteHit', [notes.members.indexOf(note), Math.abs(note.noteData), note.noteType, note.isSustainNote, note.ID]);
4824+
callOnHScripts('opponentNoteHit', [notes.members.indexOf(note), Math.abs(note.noteData), note.noteType, note.isSustainNote, note.ID]);
48234825

48244826
if (!note.isSustainNote)
48254827
{
@@ -4952,6 +4954,7 @@ class PlayState extends MusicBeatState
49524954
var leData:Int = Math.round(Math.abs(note.noteData));
49534955
var leType:String = note.noteType;
49544956
callOnLuas('goodNoteHit', [notes.members.indexOf(note), leData, leType, isSus, note.ID]);
4957+
callOnHScripts('goodNoteHit', [notes.members.indexOf(note), leData, leType, isSus, note.ID]);
49554958

49564959
if (!note.isSustainNote)
49574960
{
@@ -5458,6 +5461,7 @@ class PlayState extends MusicBeatState
54585461

54595462
// Rating FC
54605463
ratingFC = "";
5464+
if (perfects > 0 && !ClientPrefs.removePerfects) ratingFC = "PFC";
54615465
if (sicks > 0) ratingFC = "SFC";
54625466
if (goods > 0) ratingFC = "GFC";
54635467
if (bads > 0 || shits > 0) ratingFC = "FC";

0 commit comments

Comments
 (0)