This commit is contained in:
NoryiE
2025-02-18 18:14:43 +00:00
parent 572cb98cd3
commit 3aa5c1e97d
13 changed files with 140 additions and 82 deletions

View File

@@ -28,12 +28,13 @@ The base class for all UI elements in Basalt
|[BaseElement:registerCallback](#BaseElement:registerCallback)|table|Registers a callback function
|[BaseElement:updateRender](#BaseElement:updateRender)|-|Requests a render update for this element
## BaseElement.listenTo(class, eventName)
## BaseElement.listenTo(class, eventName, event?)
Registers an event that this class can listen to
### Parameters
* `class` `table` The class to add the event to
* `eventName` `string` The name of the event to register
* `event` *(optional)* `string` The event to handle
### Usage
```lua