package funkin.backend.system.framerate; import funkin.backend.assets.IModsAssetLibrary; import funkin.backend.assets.ScriptedAssetLibrary; class AssetTreeInfo extends FramerateCategory { public function new() { super("Asset Libraries Tree Info"); } public override function __enterFrame(t:Int) { if (alpha <= 0.05) return; var text = 'Not initialized yet\n'; if (Paths.assetsTree != null){ text = ""; for(e in Paths.assetsTree.libraries) { var l = e; if (l is openfl.utils.AssetLibrary) { var al = cast(l, openfl.utils.AssetLibrary); @:privateAccess if (al.__proxy != null) l = al.__proxy; } if (l is ScriptedAssetLibrary) text += '${Type.getClassName(Type.getClass(l))} - ${cast(l, ScriptedAssetLibrary).scriptName} (${cast(l, ScriptedAssetLibrary).modName} | ${cast(l, ScriptedAssetLibrary).libName} | ${cast(l, ScriptedAssetLibrary).prefix})\n'; else if (l is IModsAssetLibrary) text += '${Type.getClassName(Type.getClass(l))} - ${cast(l, IModsAssetLibrary).modName} - ${cast(l, IModsAssetLibrary).libName} (${cast(l, IModsAssetLibrary).prefix})\n'; else text += Std.string(e) + "\n"; } } if (text != "") text = text.substr(0, text.length-1); this.text.text = text; super.__enterFrame(t); } }