update doc/*/scripting/ui.md
This commit is contained in:
parent
e8fe2b7903
commit
93c6a66cb7
@ -202,6 +202,17 @@ Here, *color* can be specified in the following ways:
|
|||||||
|----------|--------|------|-------|-----------------------------|
|
|----------|--------|------|-------|-----------------------------|
|
||||||
| src | string | yes | yes | id of the embedded document |
|
| 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
|
## Inventory
|
||||||
|
|
||||||
Properties:
|
Properties:
|
||||||
|
|||||||
@ -169,7 +169,6 @@ document["worlds-panel"]:clear()
|
|||||||
| src | string | да | да | отображаемая текстура |
|
| src | string | да | да | отображаемая текстура |
|
||||||
| region | vec4 | да | да | под-регион изображения |
|
| region | vec4 | да | да | под-регион изображения |
|
||||||
|
|
||||||
|
|
||||||
## Холст (canvas)
|
## Холст (canvas)
|
||||||
|
|
||||||
Свойства:
|
Свойства:
|
||||||
@ -203,6 +202,17 @@ document["worlds-panel"]:clear()
|
|||||||
|----------|--------|--------|--------|----------------------------|
|
|----------|--------|--------|--------|----------------------------|
|
||||||
| src | string | да | да | id встраиваемого документа |
|
| src | string | да | да | id встраиваемого документа |
|
||||||
|
|
||||||
|
## Меню опций (select)
|
||||||
|
|
||||||
|
Является производным от кнопки с доступом к свойствам, таким как отображаемый текст.
|
||||||
|
|
||||||
|
Свойства:
|
||||||
|
|
||||||
|
| Название | Тип | Чтение | Запись | Описание |
|
||||||
|
|----------|--------|--------|--------|----------------------------------------------------------------|
|
||||||
|
| value | string | да | да | Выбранное значение |
|
||||||
|
| options | table | да | да | Список опций (таблиц `{value=..., text=...}`) |
|
||||||
|
|
||||||
## Инвентарь (inventory)
|
## Инвентарь (inventory)
|
||||||
|
|
||||||
Свойства:
|
Свойства:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user