deploy: 36c5e658c4
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# Container : VisualElement
|
# Container : VisualElement
|
||||||
The Container class serves as a fundamental building block for organizing UI elements. It acts as a parent element that can hold and manage child elements, providing layout management, event propagation, and rendering capabilities. Used as base class for Frames, Windows, and other container-like elements.
|
The Container class serves as a fundamental building block for organizing UI elements. It acts as a parent element that can hold and manage child elements.
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
```lua
|
```lua
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ end)
|
|||||||
|Method|Returns|Description|
|
|Method|Returns|Description|
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
|[Graph:addPoint](#graph-addpoint)|Graph|Adds a point to a series
|
|[Graph:addPoint](#graph-addpoint)|Graph|Adds a point to a series
|
||||||
|[Graph:addSeries](#graph-addseries)|-|Adds a series to the graph
|
|[Graph:addSeries](#graph-addseries)|Graph|Adds a series to the graph
|
||||||
|[Graph:changeSeriesVisibility](#graph-changeseriesvisibility)|Graph|Changes the visibility of a series
|
|[Graph:changeSeriesVisibility](#graph-changeseriesvisibility)|Graph|Changes the visibility of a series
|
||||||
|[Graph:clear](#graph-clear)|Graph|Clears all points from a series
|
|[Graph:clear](#graph-clear)|Graph|Clears all points from a series
|
||||||
|[Graph:focusSeries](#graph-focusseries)|Graph|Focuses a series
|
|[Graph:focusSeries](#graph-focusseries)|Graph|Focuses a series
|
||||||
@@ -64,6 +64,9 @@ end)
|
|||||||
* `fgCol` `number` The foreground color of the series
|
* `fgCol` `number` The foreground color of the series
|
||||||
* `pointCount` `number` The number of points in the series
|
* `pointCount` `number` The number of points in the series
|
||||||
|
|
||||||
|
### Returns
|
||||||
|
* `Graph` `self` The graph instance
|
||||||
|
|
||||||
## Graph:changeSeriesVisibility(name, visible)
|
## Graph:changeSeriesVisibility(name, visible)
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
# BenchmarkAPI
|
# Benchmark
|
||||||
Benchmark API methods
|
This is the benchmark plugin. It provides performance measurement tools for elements and methods,
|
||||||
|
with support for hierarchical profiling and detailed statistics. The plugin is meant to be used for very big projects
|
||||||
|
where performance is critical. It allows you to measure the time taken by specific methods and log the results.
|
||||||
|
|
||||||
## Functions
|
## Functions
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
# BaseElement
|
# BaseElement
|
||||||
This is the benchmark plugin. It provides performance measurement tools for elements and methods,
|
|
||||||
with support for hierarchical profiling and detailed statistics.
|
|
||||||
The following methods are available for BaseElement
|
|
||||||
|
|
||||||
## Functions
|
## Functions
|
||||||
|
|
||||||
|
|||||||
@@ -2,5 +2,14 @@
|
|||||||
This module provides reactive functionality for elements, it adds no new functionality for elements.
|
This module provides reactive functionality for elements, it adds no new functionality for elements.
|
||||||
It is used to evaluate expressions in property values and update the element when the expression changes.
|
It is used to evaluate expressions in property values and update the element when the expression changes.
|
||||||
|
|
||||||
|
### Usage
|
||||||
|
```lua
|
||||||
|
local button = main:addButton({text="Exit"})
|
||||||
|
button:setX("{parent.x - 12}")
|
||||||
|
button:setBackground("{self.clicked and colors.red or colors.green}")
|
||||||
|
button:setWidth("{self.text:len() + 2}")
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user