Class BB_Button
Defined in: Button.js.
Constructor Attributes | Constructor Name and Description |
---|---|
BB_Button(sprite, x, y, w, h, sx, sy)
UI button
|
Method Attributes | Method Name and Description |
---|---|
check(x, y)
Check button active state
|
|
paint(ctx)
Draw the button
|
Class Detail
BB_Button(sprite, x, y, w, h, sx, sy)
UI button
- Parameters:
- {BB_Sprite} sprite
- {Number} x
- {Number} y
- {Number} w
- {Number} h
- {Number} sx
- {Number} sy
Method Detail
{Boolean}
check(x, y)
Check button active state
- Parameters:
- {Number} x
- {Number} y
- Returns:
- {Boolean}
paint(ctx)
Draw the button
- Parameters:
- ctx