update doc/*/scripting/ui.md

This commit is contained in:
MihailRis 2025-07-09 22:47:04 +03:00
parent e8fe2b7903
commit 93c6a66cb7
2 changed files with 22 additions and 1 deletions

View File

@ -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:

View File

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