From fc5bd8b988df408d4ff5ce7ce38b2b82de261ae3 Mon Sep 17 00:00:00 2001 From: lunarcleint <88809950+lunarcleint@users.noreply.github.com> Date: Tue, 21 Mar 2023 17:10:34 -0700 Subject: [PATCH] fuck you github --- buildnumber.txt | 2 +- source/funkin/system/framerate/FlixelInfo.hx | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 source/funkin/system/framerate/FlixelInfo.hx diff --git a/buildnumber.txt b/buildnumber.txt index 4cbaed0a..adffc81c 100644 --- a/buildnumber.txt +++ b/buildnumber.txt @@ -1 +1 @@ -2651 +2652 \ No newline at end of file diff --git a/source/funkin/system/framerate/FlixelInfo.hx b/source/funkin/system/framerate/FlixelInfo.hx new file mode 100644 index 00000000..fc9ebd88 --- /dev/null +++ b/source/funkin/system/framerate/FlixelInfo.hx @@ -0,0 +1,19 @@ +package funkin.system.framerate; + +import funkin.utils.MemoryUtil; + +class FlixelInfo extends FramerateCategory { + public function new() { + super("Flixel Info"); + } + + public override function __enterFrame(t:Int) { + if (alpha <= 0.05) return; + _text = 'State: ${Type.getClassName(Type.getClass(FlxG.state))}'; + _text += '\nObject Count: ${FlxG.state.members.length}'; + _text += '\nCamera Count: ${FlxG.cameras.list.length}'; + + this.text.text = _text; + super.__enterFrame(t); + } +} \ No newline at end of file