Skip to content

Commit

Permalink
Allow tweening arrays and shaders
Browse files Browse the repository at this point in the history
Ignore the contents of this, its just to make it redownload flixel
  • Loading branch information
NeeEoo committed Nov 8, 2024
1 parent 25b5630 commit 3de3c3f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions source/funkin/backend/system/framerate/FlixelInfo.hx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package funkin.backend.system.framerate;

import funkin.backend.scripting.ModState;

class FlixelInfo extends FramerateCategory {
public function new() {
super("Flixel Info");
Expand All @@ -14,17 +16,22 @@ class FlixelInfo extends FramerateCategory {
for(_ in FlxG.bitmap._cache.keys())
c++;

_text = 'State: ${Type.getClassName(Type.getClass(FlxG.state))}';
if((FlxG.state is ModState)) {
var state:ModState = cast FlxG.state;
_text = "Mod State: " + state.scriptName;
} else {
_text = 'State: ${Type.getClassName(Type.getClass(FlxG.state))}';
}
_text += '\nObject Count: ${FlxG.state.members.length}';
_text += '\nCamera Count: ${FlxG.cameras.list.length}';
_text += '\nBitmaps Count: ${c}';
_text += '\nSounds Count: ${FlxG.sound.list.length}';
_text += '\nFlxG.game Childs Count: ${FlxG.game.numChildren}';
// _text += '\nCached objects count: ${cachedObjects}';
#if FLX_POINT_POOL
var points = flixel.math.FlxPoint.FlxBasePoint.pool;
//var points = flixel.math.FlxPoint.FlxBasePoint.pool;
//_text += '\nPoint Count: ${points._count} | +${points.made} | -${points.gotten} | ${points.balance} | >${points.putted}';
_text += '\nPoint Count: ${points._count}';
//_text += '\nPoint Count: ${points._count}';
#end
}

Expand Down

0 comments on commit 3de3c3f

Please sign in to comment.