This commit is contained in:
NoryiE
2025-02-13 09:51:51 +00:00
parent 7dff4d2f1e
commit 346ded1c89
19 changed files with 336 additions and 35 deletions

View File

@@ -25,12 +25,12 @@ What this code does is it loads basalt into the project, and you can access it b
|[basalt.stop](#basalt.stop)|-|
|[basalt.update](#basalt.update)|-|
## basalt.create(type, id?)
## basalt.create(type, properties?)
Creates and returns a new UI element of the specified type.
### Parameters
* `type` `string` The type of element to create (e.g. "Button", "Label", "BaseFrame")
* `id` *(optional)* `string` Optional unique identifier for the element
* `properties` *(optional)* `string|table` Optional name for the element or a table with properties to initialize the element with
### Returns
* `table` `element` The created element instance