Skip to content

Commit c43ce3b

Browse files
committed
Addition of localX() and localY() getters to Button: a replacement for this.xfrm.localPos.x and y
1 parent 29892b3 commit c43ce3b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

button.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,10 @@ namespace user_interface_base {
306306
}
307307
}
308308

309+
get localX() { return this.xfrm.localPos.x }
310+
get localY() { return this.xfrm.localPos.y }
311+
312+
309313
public draw() {
310314
super.draw()
311315

0 commit comments

Comments
 (0)