Small Fixes

This commit is contained in:
NeeEoo
2023-09-24 12:32:28 +02:00
parent b4782ad5f4
commit b245b8476a
3 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -231,7 +231,7 @@ class Charter extends UIState {
onSelect: _note_selectall
},
{
label: "Select maeasure",
label: "Select measure",
keybind: [CONTROL, SHIFT, A],
onSelect: _note_selectmeasure
},
+8 -3
View File
@@ -8,6 +8,11 @@ class NoteGroup extends FlxTypedGroup<Note> {
var i:Int = 0;
var __currentlyLooping:Bool = false;
/**
* How many ms it should show a note before it should be hit
**/
public var limit:Float = 1500;
/**
* Preallocates the members array with nulls, but if theres anything in the array already it clears it
**/
@@ -36,7 +41,7 @@ class NoteGroup extends FlxTypedGroup<Note> {
if (__loopSprite == null || !__loopSprite.exists || !__loopSprite.active) {
continue;
}
if (__loopSprite.strumTime - Conductor.songPosition > 1500)
if (__loopSprite.strumTime - Conductor.songPosition > limit)
break;
__loopSprite.update(elapsed);
}
@@ -55,7 +60,7 @@ class NoteGroup extends FlxTypedGroup<Note> {
__loopSprite = members[i--];
if (__loopSprite == null || !__loopSprite.exists || !__loopSprite.visible)
continue;
if (__loopSprite.strumTime - Conductor.songPosition > 1500) break;
if (__loopSprite.strumTime - Conductor.songPosition > limit) break;
__loopSprite.draw();
}
__currentlyLooping = oldCur;
@@ -74,7 +79,7 @@ class NoteGroup extends FlxTypedGroup<Note> {
__loopSprite = members[i--];
if (__loopSprite == null || !__loopSprite.exists)
continue;
if (__loopSprite.strumTime - Conductor.songPosition > 1500) break;
if (__loopSprite.strumTime - Conductor.songPosition > limit) break;
noteFunc(__loopSprite);
}
__currentlyLooping = oldCur;
+2 -2
View File
@@ -565,8 +565,8 @@ class PlayState extends MusicBeatState
for(folder in scriptsFolders) {
for(file in Paths.getFolderContent(folder, true, fromMods ? MODS : BOTH)) {
if (folder == 'data/charts/')
Logs.trace('data/charts/ is deprecrated and will be removed in the future. Please move script $file.hx to songs/', WARNING, DARKYELLOW);
Logs.trace('data/charts/ is deprecrated and will be removed in the future. Please move script $file to songs/', WARNING, DARKYELLOW);
addScript(file);
}
}