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*

View file

@ -170,6 +170,7 @@ document["worlds-panel"]:clear()
| Название | Тип | Чтение | Запись | Описание |
| -------- | ------ | ------ | ------ | ---------------------- |
| src | string | да | да | отображаемая текстура |
| fallback | string | да | да | резервная текстура |
| region | vec4 | да | да | под-регион изображения |
## Холст (canvas)

View file

@ -121,6 +121,7 @@
## Изображение - *image*
- `src` - имя изображения в папке textures без указания расширения. Тип: строка. Например `gui/error`
- `fallback` - резервная текстура, отображаемая при отсутствии / фоновой загрузке основной
- `region` - под-регион изображения x1, y1, x2, y2 от 0.0, 0.0 (левый верхний угол), 1.0, 1.0 (правый нижний угол)
## Холст - *canvas*