Class Fz2D.Gui.TextButton
| Defined in: | src/scene/objects/gui/text_button.coffee |
| Inherits: | Fz2D.Gui.Button |
Overview
Instance Method Summary
- ::constructor(x, y, text, font, up, down = up, over = down) Constructor
- ::draw(ctx) Draws button on every frame.
- ::setText(text) Sets the text of the label.
Inherited Method Summary
Methods inherited from Fz2D.Gui.Button
.constructor, .onclick, .update
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, text, font, up, down = up, over = down) Source
Instance Method Details
::draw(ctx) Source
::setText(text) Source