This commit is contained in:
Ежулька 2026-10-03 16:24:04 +05:00 • committed by GitHub
commit 8088ea5df5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 436 additions and 0 deletions

View file

@ -231,6 +231,25 @@ Properties:
| value | string | yes | yes | Selected value |
| options | table | yes | yes | List of options (tables `{value=..., text=...}`) |
## Progress bar (progressbar)
Properties:
| Name | Type | Read | Write | Description |
|--------------|--------|------|-------|---------------------------------------------------------------|
| value | float | yes | yes | current value |
| min | float | yes | yes | minimum value |
| max | float | yes | yes | maximum value |
| progress | float | yes | no | progress 0..1 |
| displayValue | float | yes | no | displayed (animated) value |
| color | rgba | yes | yes | color of the filled part |
| bgColor | rgba | yes | yes | background color (empty part) |
| textColor | rgba | yes | yes | text color |
| text | string | yes | yes | text centered in the bar |
| smooth | bool | yes | yes | smooth value change |
| smoothSpeed | number | yes | yes | smooth transition speed in units per second |
| orientation | string | yes | yes | fill direction: "horizontal" / "vertical" |
## Inventory
Properties:

View file

@ -198,6 +198,21 @@ Example of list description:
- `select` - default mode.
- `button` - button mode: the text is not replaced with the selected option; the element rendered as a regular button.
## Progress bar - *progressbar*
Non-interactive element for displaying progress. Draws a background and a filled part.
- `min` - minimal value. Type: number. Default: 0
- `max` - maximal value. Type: number. Default: 100
- `value` - initial value. Type: number. Default: 0
- `color` - color of the filled part. Type: RGBA color. Default: blue `#3399FFCC`
- `bg-color` - background color (empty part). Type: RGBA color. Default: semi-transparent black `#00000066`
- `orientation` - fill direction: `horizontal` / `vertical`
- `smooth` - smooth value change on updates. Type: boolean. Default: false
- `smooth-speed` - smooth transition speed in units per second. Type: number. Default: 120
- `text-color` - text color. Type: RGBA color. Default: white `#FFFFFFFF`
- `font` - font name. Type: string. Default: "normal"
## *bindbox*
An element for displaying and editing key or mouse button bindings.