-
-
Notifications
You must be signed in to change notification settings - Fork 320
Expand file tree
/
Copy pathConductorInfo.hx
More file actions
25 lines (20 loc) · 852 Bytes
/
ConductorInfo.hx
File metadata and controls
25 lines (20 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package funkin.backend.system.framerate;
import funkin.backend.system.macros.StringMacro;
class ConductorInfo extends FramerateCategory {
public function new() {
super("Conductor Info");
}
public override function __enterFrame(t:Int) {
if (alpha <= 0.05) return;
var buf = new StringBuf();
StringMacro.addLine(buf, 'Current Song Position: ${Math.floor(Conductor.songPosition * 1000) / 1000}');
StringMacro.addLine(buf, '\n - ${Conductor.curBeat} beats');
StringMacro.addLine(buf, '\n - ${Conductor.curStep} steps');
StringMacro.addLine(buf, '\n - ${Conductor.curMeasure} measures');
StringMacro.addLine(buf, '\nCurrent BPM: ${Conductor.bpm}');
StringMacro.addLine(buf, '\nTime Signature: ${Conductor.beatsPerMeasure}/${Conductor.denominator}');
_text = buf.toString();
this.text.text = _text;
super.__enterFrame(t);
}
}