File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
source/funkin/backend/system/framerate Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 11package funkin .backend .system .framerate ;
22
3+ import funkin .backend .scripting .ModState ;
4+
35class FlixelInfo extends FramerateCategory {
46 public function new () {
57 super (" Flixel Info" );
@@ -14,17 +16,22 @@ class FlixelInfo extends FramerateCategory {
1416 for (_ in FlxG .bitmap ._cache .keys ())
1517 c ++ ;
1618
17- _text = ' State: ${Type .getClassName (Type .getClass (FlxG .state ))}' ;
19+ if ((FlxG .state is ModState )) {
20+ var state : ModState = cast FlxG .state ;
21+ _text = " Mod State: " + state .scriptName ;
22+ } else {
23+ _text = ' State: ${Type .getClassName (Type .getClass (FlxG .state ))}' ;
24+ }
1825 _text + = ' \n Object Count: ${FlxG .state .members .length }' ;
1926 _text + = ' \n Camera Count: ${FlxG .cameras .list .length }' ;
2027 _text + = ' \n Bitmaps Count: ${c }' ;
2128 _text + = ' \n Sounds Count: ${FlxG .sound .list .length }' ;
2229 _text + = ' \n FlxG.game Childs Count: ${FlxG .game .numChildren }' ;
2330 // _text += '\nCached objects count: ${cachedObjects}';
2431 #if FLX_POINT_POOL
25- var points = flixel.math. FlxPoint . FlxBasePoint .pool ;
32+ // var points = flixel.math.FlxPoint.FlxBasePoint.pool;
2633 // _text += '\nPoint Count: ${points._count} | +${points.made} | -${points.gotten} | ${points.balance} | >${points.putted}';
27- _text + = ' \n Point Count: ${points ._count }' ;
34+ // _text += '\nPoint Count: ${points._count}';
2835 #end
2936 }
3037
You can’t perform that action at this time.
0 commit comments