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

@@ -0,0 +1,20 @@
## getMinValue
### Description
Returns the current minimum value of the graph.
### Returns
1. `number` minValue - The current minimum value of the graph.
### Usage
* Gets the minimum value of the graph
```lua
local mainFrame = basalt.createFrame()
local aGraph = mainFrame:addGraph()
local minValue = aGraph:getMinValue()
basalt.debug("Min value:", minValue)
```

View File

@@ -0,0 +1,23 @@
## addDataPoint
### Description
Sets a data point in the graph with specified value.
### Parameters
1. `number` value - The value of the data point. (0-100)
### Returns
1. `object` The object in use
### Usage
* Sets a data point in the graph
```lua
local mainFrame = basalt.createFrame()
local aGraph = mainFrame:addGraph()
aGraph:setDataPoint(13)
```

View File

@@ -0,0 +1,20 @@
## getGraphSymbol
### Description
Returns the current symbol used for the graph.
### Returns
1. `string` graphSymbol - The symbol used for the graph line.
### Usage
* Gets the graph symbol
```lua
local mainFrame = basalt.createFrame()
local aGraph = mainFrame:addGraph()
local graphSymbol = aGraph:getGraphSymbol()
basalt.debug(graphSymbol)
```

View File

@@ -0,0 +1,20 @@
## getMaxEntries
### Description
Returns the maximum number of data points that can be stored in the graph.
### Returns
1. `number` maxEntries - The maximum number of data points
### Usage
* Gets the maximum number of data points in the graph
```lua
local mainFrame = basalt.createFrame()
local aGraph = mainFrame:addGraph():setMaxEntries(100)
local maxEntries = aGraph:getMaxEntries()
basalt.debug(maxEntries)
```

View File

@@ -0,0 +1,20 @@
## getMaxValue
### Description
Returns the current maximum value of the graph.
### Returns
1. `number` maxValue - The current maximum value of the graph.
### Usage
* Gets the maximum value of the graph
```lua
local mainFrame = basalt.createFrame()
local aGraph = mainFrame:addGraph()
local maxValue = aGraph:getMaxValue()
basalt.debug("Max value:", maxValue)
```

View File

@@ -0,0 +1,23 @@
## setGraphColor
### Description
Sets the color of the graph symbol.
### Parameters
1. `number` color - The color you want to set for the graph line.
### Returns
1. `object` The object in use
### Usage
* Sets the color of the graph line:
```lua
local mainFrame = basalt.createFrame()
local aGraph = mainFrame:addGraph()
aGraph:setGraphColor(colors.blue)
```

View File

@@ -0,0 +1,22 @@
## setGraphSymbol
### Description
Sets the symbol used for the graph.
### Parameters
1. `string` symbol - The symbol to be used for the graph.
### Returns
1. `object` The object in use
### Usage
* Sets the graph symbol to "X"
```lua
local mainFrame = basalt.createFrame()
local aGraph = mainFrame:addGraph():setGraphSymbol("X")
```

View File

@@ -0,0 +1,22 @@
## setGraphType
### Description
Sets the type of the graph to scatter, line, or bar. Default: line.
### Parameters
1. `number` graphType - The type of the graph ("scatter", "line", or "bar").
### Returns
1. `object` The object in use
### Usage
* Sets the graph type to a line graph
```lua
local mainFrame = basalt.createFrame()
local aGraph = mainFrame:addGraph():setGraphType("scatter")
```

View File

@@ -0,0 +1,23 @@
## setMaxEntries
### Description
Sets the maximum number of data points that can be stored in the graph.
### Parameters
1. `number` maxEntries - The maximum number of data points
### Returns
1. `object` The object in use
### Usage
* Sets the maximum number of data points in the graph
```lua
local mainFrame = basalt.createFrame()
local aGraph = mainFrame:addGraph()
aGraph:setMaxEntries(100)
```

View File

@@ -0,0 +1,22 @@
## setMaxValue
### Description
Sets the maximum value for the graph.
### Parameters
1. `number` maxValue - The maximum value for the graph.
### Returns
1. `object` The object in use
### Usage
* Sets the maximum value for the graph to 100
```lua
local mainFrame = basalt.createFrame()
local aGraph = mainFrame:addGraph():setMaxValue(100)
```

View File

@@ -0,0 +1,22 @@
## setMinValue
### Description
Sets the minimum value for the graph.
### Parameters
1. `number` minValue - The minimum value for the graph.
### Returns
1. `object` The object in use
### Usage
* Sets the minimum value for the graph to 10
```lua
local mainFrame = basalt.createFrame()
local aGraph = mainFrame:addGraph():setMinValue(10)
```