Fix hierarchy of libs + Cleaner Tree Info
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
package funkin.backend.system.framerate;
|
||||
|
||||
#if TRANSLATIONS_SUPPORT
|
||||
import funkin.backend.assets.TranslatedAssetLibrary;
|
||||
#end
|
||||
import funkin.backend.assets.AssetsLibraryList;
|
||||
import funkin.backend.assets.IModsAssetLibrary;
|
||||
import funkin.backend.assets.ScriptedAssetLibrary;
|
||||
@@ -19,12 +22,20 @@ class AssetTreeInfo extends FramerateCategory {
|
||||
|
||||
var tag = l.tag.toString().toUpperCase();
|
||||
|
||||
if (l is ScriptedAssetLibrary)
|
||||
text += '${Type.getClassName(Type.getClass(l))} - $tag - ${cast(l, ScriptedAssetLibrary).scriptName} (${cast(l, ScriptedAssetLibrary).modName} | ${cast(l, ScriptedAssetLibrary).libName} | ${cast(l, ScriptedAssetLibrary).prefix})\n';
|
||||
text += '[$tag] ';
|
||||
|
||||
var className = Type.getClassName(Type.getClass(l));
|
||||
className = className.substr(className.lastIndexOf(".") + 1);
|
||||
|
||||
#if TRANSLATIONS_SUPPORT
|
||||
if (l is TranslatedAssetLibrary)
|
||||
text += '${className} - ${cast(l, TranslatedAssetLibrary).langFolder} for (${cast(l, TranslatedAssetLibrary).forLibrary.modName})\n';
|
||||
else #end if (l is ScriptedAssetLibrary)
|
||||
text += '${className} - ${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))} - $tag - ${cast(l, IModsAssetLibrary).modName} - ${cast(l, IModsAssetLibrary).libName} (${cast(l, IModsAssetLibrary).prefix})\n';
|
||||
text += '${className} - ${cast(l, IModsAssetLibrary).modName} - ${cast(l, IModsAssetLibrary).libName} (${cast(l, IModsAssetLibrary).prefix})\n';
|
||||
else
|
||||
text += Std.string(l) + ' - $tag\n';
|
||||
text += Std.string(l) + '\n';
|
||||
}
|
||||
}
|
||||
if (text != "")
|
||||
|
||||
Reference in New Issue
Block a user