Class Fz2D.Gui.Button
| Defined in: | src/scene/objects/gui/button.coffee |
| Inherits: | Fz2D.Entity |
Overview
Subclasses
Instance Method Summary
- ::constructor(x, y, up, down = up, over = down) Constructor
- ::onclick(button) On click(ed) callback.
- ::update(timer, input) Updates button on every frame.
Inherited Method Summary
Methods inherited from Fz2D.Entity
.constructor, .isOutOfBounds, .play, .stop, .is, .active, .addAnimation, .draw, .update
Methods inherited from Fz2D.Object
.constructor, .kill, .reset, .show, .hide, .draw, .update
Constructor Details
::constructor(x, y, up, down = up, over = down) Source
Instance Method Details
::onclick(button) Source
::update(timer, input) Source