- 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
31 lines
841 B
Markdown
31 lines
841 B
Markdown
## getLines
|
|
|
|
### 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:
|
|
|
|
```lua
|
|
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`.
|