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,16 +1,33 @@
## getLine
Returns the line on index position
#### Parameteres:
1. `number` index
### Description
#### Returns:
1. `string` line
Returns the content of a line at the specified index position in a Textfield object.
### Parameteres
1. `number` index - The position of the line you want to retrieve
### Returns
1. `string` line - The content of the line at the specified index
### Usage
* Retrieves and prints the content of a line at a specific index:
#### Usage:
* Prints one line
```lua
local mainFrame = basalt.createFrame("myFirstFrame"):show()
local aTextfield = mainFrame:addTextfield("myFirstTextfield"):show()
basalt.debug(aTextfield:getLine(1))
```
local basalt = require("basalt")
local mainFrame = basalt.createFrame()
local aTextfield = mainFrame:addTextfield()
aTextfield:addLine("Hello, world!", 1)
local lineContent = aTextfield:getLine(1)
basalt.debug(lineContent)
basalt.autoUpdate()
```
In this example, a Textfield object is created and added to the mainFrame. A line with the content "Hello, world!" is added at index position 1. The `getLine` method is then called to retrieve the content of the line at index 1, which is then printed using `basalt.debug`.