Handle a mouse click on a text-based GameObject.
More...
|
void | delegate () mCallbackFunction |
| The callback to run when a click event occurs.
|
|
| this (size_t owner, void delegate() callbackFunction, ComponentTextRenderer textRenderer, SDL_Rect *camera) |
| Set up the script.
|
|
override void | Update () |
| Update internal state of the script.
|
|
void | LeftMouseClick () |
| Check for an in-bounds mouse click and run #callback if one was found.
|
|
| this (size_t id) |
| Store the owner id.
|
|
override void | Render (SDL_Renderer *renderer, SDL_Rect *camera) |
| Render the given script.
|
|
Handle a mouse click on a text-based GameObject.
◆ this()
Set up the script.
- Parameters
-
◆ Update()
override void ComponentTextMouseClick::Update |
( |
| ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following file: