Small fixes

This commit is contained in:
NeeEoo
2023-07-06 11:59:33 +02:00
parent 422f556b7c
commit 039353befc
3 changed files with 14 additions and 1 deletions
@@ -22,6 +22,7 @@ class ScriptsMacro {
// OTHER LIBRARIES & STUFF
"away3d", "flx3d", #if sys "sys", #end "openfl.net",
"funkin.backend.system.net",
"hxcodec.flixel", "hxcodec.openfl", "hxcodec.lime",
// BASE HAXE
"DateTools", "EReg", "Lambda", "StringBuf", "haxe.crypto", "haxe.display", "haxe.exceptions", "haxe.extern", "scripting"
])
+12
View File
@@ -1,5 +1,6 @@
package funkin.editors.charter;
import funkin.backend.system.framerate.Framerate;
import haxe.Json;
import flixel.input.keyboard.FlxKey;
import flixel.sound.FlxSound;
@@ -424,6 +425,10 @@ class Charter extends UIState {
add(uiGroup);
loadSong();
Framerate.fpsCounter.alpha = 0.4;
Framerate.memoryCounter.alpha = 0.4;
Framerate.codenameBuildField.alpha = 0.4;
}
var instPath:String;
@@ -1077,6 +1082,13 @@ class Charter extends UIState {
undoList.insert(0, v);
}
override function destroy() {
Framerate.fpsCounter.alpha = 1;
Framerate.memoryCounter.alpha = 1;
Framerate.codenameBuildField.alpha = 1;
super.destroy();
}
inline function _chart_playtest(_)
playtestChart(0, false);
inline function _chart_playtest_here(_)
@@ -16,7 +16,7 @@ import hxcodec.flixel.FlxVideo;
* Substate made for video cutscenes. To use it in a scripted cutscene, call `startVideo`.
*/
class VideoCutscene extends Cutscene {
public static var curVideo:Int = 0;
private static var curVideo:Int = 0; // internal for zip videos
var path:String;
var localPath:String;