Files
CodenameEngine/source/funkin/system/framerate/SystemInfo.hx
T
2023-01-25 21:03:40 +01:00

21 lines
672 B
Haxe

package funkin.system.framerate;
import flixel.FlxG;
import flixel.math.FlxMath;
class SystemInfo extends FramerateCategory {
public function new() {
super("System Info");
}
public override function __enterFrame(t:Int) {
if (alpha <= 0.05) return;
_text = 'System: ${lime.system.System.platformLabel} ${lime.system.System.platformVersion}';
_text += '\nObjs in state: ${FlxG.state.members.length}';
_text += '\nNb cameras: ${FlxG.cameras.list.length}';
_text += '\nCurrent state: ${Type.getClassName(Type.getClass(FlxG.state))}';
this.text.text = _text;
super.__enterFrame(t);
}
}