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) Свойства: