Skip to content

Commit a1662d5

Browse files
committed
button.ts: setters for localX and localY
1 parent 46f0354 commit a1662d5

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

button.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,14 @@ namespace user_interface_base {
212212
this._ariaId = value
213213
}
214214

215+
216+
get getLocalX() { return this.xfrm.localPos.x }
217+
get getLocalY() { return this.xfrm.localPos.y }
218+
219+
set setLocalX(x: number) { this.xfrm.localPos.x = x }
220+
set setLocalY(y: number) { this.xfrm.localPos.y = y }
221+
222+
215223
reportAria(force = false) {
216224
const msg: accessibility.TileAccessibilityMessage = {
217225
type: "tile",
@@ -306,10 +314,6 @@ namespace user_interface_base {
306314
}
307315
}
308316

309-
get localX() { return this.xfrm.localPos.x }
310-
get localY() { return this.xfrm.localPos.y }
311-
312-
313317
public draw() {
314318
super.draw()
315319

0 commit comments

Comments
 (0)