Extends
- BaseUIElement
Methods
(protected) _drawSelf(context, engine)
Specific drawing logic for the Label.
Called by BaseUIElement.render after visibility and context checks.
Parameters:
Name | Type | Description |
---|---|---|
context |
CanvasRenderingContext2D | The rendering context. |
engine |
- Source:
setText(newText)
Sets the text content of the label.
Parameters:
Name | Type | Description |
---|---|---|
newText |
string | The new text to display. |
- Source:
update(deltaTime, engine, mousePosopt)
Update logic for the Label (typically none for a static label).
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
deltaTime |
number | The time elapsed since the last frame. | |
engine |
|||
mousePos |
Object |
<optional> |
Current canvas-relative mouse position. |
- Source: