Update PlayState Logging

This commit is contained in:
NeeEoo
2024-04-12 12:20:17 +02:00
parent 2164131271
commit fc7f1d8483
+4 -4
View File
@@ -577,7 +577,7 @@ class PlayState extends MusicBeatState
for(folder in scriptsFolders) {
for(file in Paths.getFolderContent(folder, true, fromMods ? MODS : BOTH)) {
if (folder == 'data/charts/')
Logs.trace('[PlayState] data/charts/ is deprecrated and will be removed in the future. Please move script $file to songs/', WARNING, DARKYELLOW);
Logs.warn('data/charts/ is deprecrated and will be removed in the future. Please move script $file to songs/', WARNING, DARKYELLOW, "PlayState");
addScript(file);
}
@@ -1226,9 +1226,9 @@ class PlayState extends MusicBeatState
FlxG.switchState(new funkin.editors.charter.Charter(SONG.meta.name, difficulty, false));
}
if (FlxG.keys.justPressed.F5) {
Logs.trace('[PlayState] Reloading scripts...', WARNING, YELLOW);
Logs.warn('Reloading scripts...', WARNING, YELLOW, "PlayState");
scripts.reload();
Logs.trace('[PlayState] Song scripts successfully reloaded.', WARNING, GREEN);
Logs.warn('Song scripts successfully reloaded.', WARNING, GREEN, "PlayState");
}
}
@@ -1490,7 +1490,7 @@ class PlayState extends MusicBeatState
else
{
// TODO: make this colored
Logs.trace('[PlayState] Loading next song (${storyPlaylist[0].toLowerCase()}/$difficulty)', VERBOSE);
Logs.verbose('Loading next song (${storyPlaylist[0].toLowerCase()}/$difficulty)', "PlayState");
registerSmoothTransition();