Files
CodenameEngine/source/funkin/system/framerate/ConductorInfo.hx
T
2023-01-25 03:24:47 +01:00

20 lines
613 B
Haxe

package funkin.system.framerate;
import flixel.math.FlxMath;
class ConductorInfo extends FramerateCategory {
public function new() {
super("Conductor Info");
}
public override function __enterFrame(t:Int) {
var text = 'Current Song Position: ${Conductor.songPosition}';
text += '\n - ${Conductor.curBeat} beats';
text += '\n - ${Conductor.curStep} steps';
text += '\nCurrent BPM: ${Conductor.bpm}';
text += '\nCurrent speed: ${FlxMath.roundDecimal(Conductor.speed, 2)}x';
this.text.text = text;
super.__enterFrame(t);
}
}