ctrlpad: control drawing

pull/3383/head
Rob Pilling 2023-08-28 12:21:58 +01:00
parent d5191bccca
commit d2315d59b2
1 changed files with 7 additions and 3 deletions

View File

@ -67,13 +67,17 @@
.drawRect(0, 0, this.width - 1, this.height - 1)
.drawRect(1, 1, this.width - 2, this.height - 2);
const centreY = this.height / 2;
const circleGapY = 30;
g
.setFontAlign(0, 0)
.setFont("Vector:20");
this.drawCtrls();
}
drawCtrls(): void {
const centreY = this.height / 2;
const circleGapY = 30;
this.drawCtrl(this.width / 4 - 10, centreY - circleGapY, "<");
this.drawCtrl(this.width / 2, centreY - circleGapY, "@");
this.drawCtrl(this.width * 3/4 + 10, centreY - circleGapY, ">");