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:
20
docs/objects/Graph/Textdokument (neu).txt
Normal file
20
docs/objects/Graph/Textdokument (neu).txt
Normal 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)
|
||||
```
|
||||
23
docs/objects/Graph/addDataPoint.md
Normal file
23
docs/objects/Graph/addDataPoint.md
Normal 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)
|
||||
```
|
||||
20
docs/objects/Graph/getGraphSymbol.md
Normal file
20
docs/objects/Graph/getGraphSymbol.md
Normal 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)
|
||||
```
|
||||
20
docs/objects/Graph/getMaxEntries.md
Normal file
20
docs/objects/Graph/getMaxEntries.md
Normal 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)
|
||||
```
|
||||
20
docs/objects/Graph/getMaxValue.md
Normal file
20
docs/objects/Graph/getMaxValue.md
Normal 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)
|
||||
```
|
||||
23
docs/objects/Graph/setGraphColor.md
Normal file
23
docs/objects/Graph/setGraphColor.md
Normal 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)
|
||||
```
|
||||
22
docs/objects/Graph/setGraphSymbol.md
Normal file
22
docs/objects/Graph/setGraphSymbol.md
Normal 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")
|
||||
```
|
||||
22
docs/objects/Graph/setGraphType.md
Normal file
22
docs/objects/Graph/setGraphType.md
Normal 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")
|
||||
```
|
||||
23
docs/objects/Graph/setMaxEntries.md
Normal file
23
docs/objects/Graph/setMaxEntries.md
Normal 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)
|
||||
```
|
||||
22
docs/objects/Graph/setMaxValue.md
Normal file
22
docs/objects/Graph/setMaxValue.md
Normal 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)
|
||||
```
|
||||
22
docs/objects/Graph/setMinValue.md
Normal file
22
docs/objects/Graph/setMinValue.md
Normal 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)
|
||||
```
|
||||
Reference in New Issue
Block a user