Basalt 1.7 Update

- New Objects (Flexbox, Graph, Treeview)
- Pluginsystem to add/remove functionality
- Reworked the entire Object system, instead of one big Object Class we have multiple classes: Object, VisualObject, ChangeableObject
- Instead of one big Frame Class we have multiple Frame Classes: BaseFrame, Frame, MovableFrame, ScrollableFrame, MonitorFrame, Flexbox
- Removed the Animation Object, and added a animation plugin instead
- Removed the Graphic Object and merged it's functionality with the image object
- Updated currently existing objects
This commit is contained in:
Robert Jelic
2023-04-30 17:05:34 +02:00
parent e086c1abb2
commit bb1b1beb79
341 changed files with 15541 additions and 3862 deletions

View File

@@ -1,13 +1,30 @@
## getLines
Returns all lines
#### Returns:
1. `table` lines
### Description
Returns all lines in a Textfield object as a table.
### Returns
1. `table` lines - A table containing all the lines in the Textfield
### Usage
* Retrieves and prints all lines in a Textfield:
#### Usage:
* Prints all lines
```lua
local mainFrame = basalt.createFrame("myFirstFrame"):show()
local aTextfield = mainFrame:addTextfield("myFirstTextfield"):show()
basalt.debug(aTextfield:getLines())
```
local basalt = require("basalt")
local mainFrame = basalt.createFrame()
local aTextfield = mainFrame:addTextfield()
aTextfield:addLine("Hello, world!", 1)
aTextfield:addLine("This is a test.", 2)
local allLines = aTextfield:getLines()
basalt.debug(allLines)
basalt.autoUpdate()
```
In this example, a Textfield object is created and added to the mainFrame. Two lines with content "Hello, world!" and "This is a test." are added at index positions 1 and 2, respectively. The `getLines` method is then called to retrieve all lines in the Textfield as a table, which is then printed using `basalt.debug`.