constants macros: reset(), init() and @:lazy

Co-Authored-By: Ne_Eo <NeeEoo@users.noreply.github.com>
This commit is contained in:
⍚~Nex
2024-08-31 03:08:13 +02:00
co-authored by Ne_Eo
parent 500cf98e0c
commit 562f1d8fc6
9 changed files with 83 additions and 7 deletions
+2 -1
View File
@@ -429,9 +429,10 @@ class Character extends FunkinSprite implements IBeatReceiver implements IOffset
@:noCompletion private function get_danceInterval()
return beatInterval;
// these wont update when you change the constants!!! they just start from the constant for qol if we'll ever edit them in the future - Nex
public static var FALLBACK_CHARACTER:String = Constants.DEFAULT_CHARACTER;
public static var FALLBACK_DEAD_CHARACTER:String = Constants.DEFAULT_GAMEOVER_CHARACTER;
public static function getXMLFromCharName(character:OneOfTwo<String, Character>):Access {
var char:Character = null;
if (character is Character) {
+1 -1
View File
@@ -86,7 +86,7 @@ class Note extends FlxSprite
return PlayState.instance.getNoteType(noteTypeID);
}
public static var swagWidth:Float = 160 * 0.7;
public static var swagWidth:Float = 160 * 0.7; // TODO: remove this
private static var __customNoteTypeExists:Map<String, Bool> = [];
@@ -92,7 +92,7 @@ class VideoCutscene extends Cutscene {
// ZIP PATH: EXPORT
// TODO: this but better and more ram friendly
localPath = './.temp/video-${curVideo++}.${Constants.VIDEO_EXT}';
localPath = './.temp/video-${curVideo++}.${Path.extension(path)}';
Main.execAsync(function() {
File.saveBytes(localPath, Assets.getBytes(path));
videoReady = true;