This commit is contained in:
NoryiE
2025-02-17 09:21:32 +00:00
parent 52b3ac9ae1
commit 6d4db0b931
4 changed files with 234 additions and 32 deletions

View File

@@ -63,12 +63,12 @@ Destroys the element and cleans up all references
element:destroy()
```
## BaseElement:dispatchEvent(event)
## BaseElement:dispatchEvent(event...)
Handles all events
@vararg any The arguments for the event
### Parameters
* `event` `string` The event to handle
* `...` *(vararg)* `any` The arguments for the event
### Returns
* `boolean?` `handled` Whether the event was handled
@@ -94,12 +94,12 @@ Returns the base frame of the element
### Returns
* `table` `BaseFrame` The base frame of the element
## BaseElement:handleEvent(event)
## BaseElement:handleEvent(event...)
The default event handler for all events
@vararg any The arguments for the event
### Parameters
* `event` `string` The event to handle
* `...` *(vararg)* `any` The arguments for the event
### Returns
* `boolean?` `handled` Whether the event was handled