update ui docs

This commit is contained in:
MihailRis 2026-01-27 23:15:14 +03:00
parent 6aac90094e
commit 5ca0891c3d
4 changed files with 8 additions and 4 deletions

View file

@ -167,10 +167,11 @@ Properties:
Properties:
| Name | Type | Read | Write | Description |
| ------ | ------ | ---- | ----- | ---------------- |
| src | string | yes | yes | texture name |
| region | vec4 | yes | yes | image sub-region |
| Name | Type | Read | Write | Description |
| -------- | ------ | ---- | ----- | ---------------- |
| src | string | yes | yes | texture name |
| fallback | string | yes | yes | fallback texture |
| region | vec4 | yes | yes | image sub-region |
## Canvas

View file

@ -120,6 +120,7 @@ Inner text is a button text.
- `src` - name of an image stored in textures folder. Extension is not specified. Type: string.
Example: *gui/error*
- `fallback` - a fallback texture displayed when the main texture is missing / loading.
- `region` - image region x1, y1, x2, y2 from 0.0, 0.0 (upper left corner), 1.0, 1.0 (lower right corner)
## *canvas*