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,24 +1,39 @@
## addLine
Adds a line on index position
#### Parameteres:
1. `string` text
2. `number` index
### Description
Adds a line to a Textfield object at a specified index position.
### Parameteres
1. `string` text - The text you want to add as a new line
2. `number` Optional - The position at which the new line should be added
### Returns
#### Returns:
1. `object` The object in use
#### Usage:
### Usage
* Adds a line
```lua
local mainFrame = basalt.createFrame("myFirstFrame"):show()
local aTextfield = mainFrame:addTextfield("myFirstTextfield"):show()
basalt.debug(aTextfield:addLine("Hello!", 1))
local basalt = require("basalt")
local mainFrame = basalt.createFrame("myFirstFrame")
local aTextfield = mainFrame:addTextfield("myFirstTextfield")
aTextfield:addLine("Hello, world!", 1)
basalt.autoUpdate()
```
In this example, a Textfield object is created and added to the mainFrame. The addLine method is then called to add a new line containing the text "Hello, world!" at the specified index position (1 in this case).
```xml
<textfield>
<lines>
<line>Hello!</line>
</lines>
</textfield>
```
```