From 5ca0891c3d82823a997c48d7a7d5f536997d3a79 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Tue, 27 Jan 2026 23:15:14 +0300 Subject: [PATCH] update ui docs --- doc/en/scripting/ui.md | 9 +++++---- doc/en/xml-ui-layouts.md | 1 + doc/ru/scripting/ui.md | 1 + doc/ru/xml-ui-layouts.md | 1 + 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/en/scripting/ui.md b/doc/en/scripting/ui.md index 968a11929..04784b449 100644 --- a/doc/en/scripting/ui.md +++ b/doc/en/scripting/ui.md @@ -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 diff --git a/doc/en/xml-ui-layouts.md b/doc/en/xml-ui-layouts.md index b7126a088..97b36d1f6 100644 --- a/doc/en/xml-ui-layouts.md +++ b/doc/en/xml-ui-layouts.md @@ -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* diff --git a/doc/ru/scripting/ui.md b/doc/ru/scripting/ui.md index 4371c931e..ad53ad824 100644 --- a/doc/ru/scripting/ui.md +++ b/doc/ru/scripting/ui.md @@ -170,6 +170,7 @@ document["worlds-panel"]:clear() | Название | Тип | Чтение | Запись | Описание | | -------- | ------ | ------ | ------ | ---------------------- | | src | string | да | да | отображаемая текстура | +| fallback | string | да | да | резервная текстура | | region | vec4 | да | да | под-регион изображения | ## Холст (canvas) diff --git a/doc/ru/xml-ui-layouts.md b/doc/ru/xml-ui-layouts.md index 1362f6307..aeb669b3f 100644 --- a/doc/ru/xml-ui-layouts.md +++ b/doc/ru/xml-ui-layouts.md @@ -121,6 +121,7 @@ ## Изображение - *image* - `src` - имя изображения в папке textures без указания расширения. Тип: строка. Например `gui/error` +- `fallback` - резервная текстура, отображаемая при отсутствии / фоновой загрузке основной - `region` - под-регион изображения x1, y1, x2, y2 от 0.0, 0.0 (левый верхний угол), 1.0, 1.0 (правый нижний угол) ## Холст - *canvas*