Skip to content

Commit cc41b26

Browse files
committed
Button debugging
1 parent 85cc693 commit cc41b26

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

button.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,15 @@ namespace user_interface_base {
240240
opts.style || ButtonStyles.Transparent,
241241
opts.parent && opts.parent.xfrm
242242
)
243+
244+
basic.showNumber(0)
245+
243246
this.iconId = opts.icon
244247
this._ariaId = (opts.ariaId != null) ? opts.ariaId : ""
245248
this.onClick = opts.onClick
246249
this.buildSprite(this.image_())
247250

251+
basic.showNumber(1)
248252
if (opts.flipIcon) {
249253
this.icon.image = this.icon.image.clone()
250254
this.icon.image.flipY()
@@ -267,6 +271,8 @@ namespace user_interface_base {
267271
}
268272

269273
this.state = opts.state
274+
275+
basic.showNumber(2)
270276
}
271277

272278
public getIcon() {

0 commit comments

Comments
 (0)