From 93c6a66cb7e02ac29ccb1d2f561ef719106b5174 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Wed, 9 Jul 2025 22:47:04 +0300 Subject: [PATCH] update doc/*/scripting/ui.md --- doc/en/scripting/ui.md | 11 +++++++++++ doc/ru/scripting/ui.md | 12 +++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/doc/en/scripting/ui.md b/doc/en/scripting/ui.md index 85420fa2..1ddafdba 100644 --- a/doc/en/scripting/ui.md +++ b/doc/en/scripting/ui.md @@ -202,6 +202,17 @@ Here, *color* can be specified in the following ways: |----------|--------|------|-------|-----------------------------| | src | string | yes | yes | id of the embedded document | +## Select + +Derived from button with access to properties such as the text to display. + +Properties: + +| Name | Type | Read | Write | Description | +|---------|--------|------|-------|--------------------------------------------------| +| value | string | yes | yes | Selected value | +| options | table | yes | yes | List of options (tables `{value=..., text=...}`) | + ## Inventory Properties: diff --git a/doc/ru/scripting/ui.md b/doc/ru/scripting/ui.md index 8dae3f4d..bd150993 100644 --- a/doc/ru/scripting/ui.md +++ b/doc/ru/scripting/ui.md @@ -169,7 +169,6 @@ document["worlds-panel"]:clear() | src | string | да | да | отображаемая текстура | | region | vec4 | да | да | под-регион изображения | - ## Холст (canvas) Свойства: @@ -203,6 +202,17 @@ document["worlds-panel"]:clear() |----------|--------|--------|--------|----------------------------| | src | string | да | да | id встраиваемого документа | +## Меню опций (select) + +Является производным от кнопки с доступом к свойствам, таким как отображаемый текст. + +Свойства: + +| Название | Тип | Чтение | Запись | Описание | +|----------|--------|--------|--------|----------------------------------------------------------------| +| value | string | да | да | Выбранное значение | +| options | table | да | да | Список опций (таблиц `{value=..., text=...}`) | + ## Инвентарь (inventory) Свойства: