This commit is contained in:
NoryiE
2025-03-03 16:39:00 +00:00
parent 0d5942eeef
commit 31ea7f9d05
3 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
# Graph : VisualElement
## Functions
|Method|Returns|Description|
|---|---|---|
|[Graph.new](#Graph.new)|-|
|[Graph:addPoint](#Graph:addPoint)|-|
|[Graph:init](#Graph:init)|-|
|[Graph:render](#Graph:render)|-|
|[Graph:setPoint](#Graph:setPoint)|-|
## Graph.new()
## Graph:addPoint()
## Graph:init()
## Graph:render()
## Graph:setPoint()

View File

@@ -25,6 +25,7 @@ custom item rendering, separators, and selection handling.
|---|---|---|
|[List:addItem](#List:addItem)|List|Adds an item to the list
|[List:clear](#List:clear)|List|Clears all items from the list
|[List:getSelectedItem](#List:getSelectedItem)|table?|Gets first selected item
|[List:getSelectedItems](#List:getSelectedItems)|table|Gets the currently selected items
|[List:onSelect](#List:onSelect)|List|Registers a callback for the select event
|[List:removeItem](#List:removeItem)|List|Removes an item from the list
@@ -67,6 +68,12 @@ Clears all items from the list
list:clear()
```
## List:getSelectedItem()
Gets first selected item
### Returns
* `table?` `selected` The first item
## List:getSelectedItems()
Gets the currently selected items

View File

@@ -28,6 +28,7 @@ What this code does is it loads basalt into the project, and you can access it b
|[basalt.create](#basalt.create)|table|Creates a new UI element
|[basalt.createFrame](#basalt.createFrame)|table|Creates a new BaseFrame
|[basalt.getAPI](#basalt.getAPI)|table|Returns a Plugin API
|[basalt.getElementClass](#basalt.getElementClass)|table|Returns an element class
|[basalt.getElementManager](#basalt.getElementManager)|table|Returns the element manager
|[basalt.getMainFrame](#basalt.getMainFrame)|BaseFrame|Gets or creates the main frame
|[basalt.removeSchedule](#basalt.removeSchedule)|boolean|Removes a scheduled update
@@ -73,6 +74,15 @@ Returns a Plugin API
### Returns
* `table` `Plugin` The plugin API
## basalt.getElementClass(name)
Returns an element class
### Parameters
* `name` `string` The name of the element
### Returns
* `table` `Element` The element class
## basalt.getElementManager()
Returns the element manager instance