Skip to content

Commit 54ff9a0

Browse files
committed
fix?
1 parent c8bc5ba commit 54ff9a0

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

button.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ namespace user_interface_base {
213213
}
214214

215215
reportAria(force = false) {
216-
basic.showString("R")
217216
const msg: accessibility.TileAccessibilityMessage = {
218217
type: "tile",
219218
value: this.ariaId,

cursor.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ namespace user_interface_base {
5353
}
5454

5555
public moveTo(pos: Vec2, ariaId: string, sizeHint: Bounds) {
56-
basic.showString("M")
57-
5856
if (this.resetOutlineColourOnMove)
5957
this.setOutlineColour(DEFAULT_CURSOR_OUTLINE_COLOUR)
6058

navigator.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ namespace user_interface_base {
167167
}
168168

169169
public addButtons(btns: Button[]) {
170-
this.buttonGroups.push(btns)
170+
this.buttonGroups[0].concat(btns)
171171
}
172172

173173
public move(dir: CursorDir) {
@@ -183,19 +183,12 @@ namespace user_interface_base {
183183
}
184184

185185
case CursorDir.Down: {
186-
basic.showNumber(this.row)
187-
basic.showString("C")
188-
basic.showNumber(this.col)
189-
190186
this.row = (this.row + 1) % this.height;
191187

192188
// Row below could have less cols, adjust if neccessary:
193189
if (this.widths[this.row] <= this.col)
194190
this.col = this.widths[this.row] - 1
195191

196-
basic.showNumber(this.row)
197-
basic.showString("C")
198-
basic.showNumber(this.col)
199192
break
200193
}
201194

@@ -226,11 +219,7 @@ namespace user_interface_base {
226219

227220
const index = this.widths.slice(0, this.row).reduce((p, c) => p + c, 0)
228221

229-
// basic.showString("S")
230-
// basic.showNumber(this.buttonGroups[0].length)
231-
// basic.showString("I")
232-
// basic.showNumber(index + this.col)
233-
const btn = this.buttonGroups[0][index + this.col - 1]
222+
const btn = this.buttonGroups[0][index + this.col]
234223
this.reportAria(btn)
235224
return btn
236225
}

0 commit comments

Comments
 (0)