update doc/*/scripting/ui.md

This commit is contained in:
MihailRis 2025-04-19 20:38:58 +03:00
parent f21d9d0a25
commit 64375c4b28
2 changed files with 13 additions and 2 deletions

View File

@ -195,6 +195,11 @@ Here, *color* can be specified in the following ways:
| data:set_data(data: table<int>) | replaces pixel data (width * height * 4 numbers) |
| data:create_texture(name: str) | creates and shares texture to renderer |
## Inline frame (iframe)
| Name | Type | Read | Write | Description |
|----------|--------|------|-------|-----------------------------|
| src | string | yes | yes | id of the embedded document |
## Inventory

View File

@ -196,11 +196,17 @@ document["worlds-panel"]:clear()
| data:set_data(data: table<int>) | заменяет данные пикселей (ширина * высота * 4 чисел) |
| data:create_texture(name: str) | создаёт и делится текстурой с рендерером |
## Inventory (inventory)
## Рамка встраивания (iframe)
| Название | Тип | Чтение | Запись | Описание |
|----------|--------|--------|--------|----------------------------|
| src | string | да | да | id встраиваемого документа |
## Инвентарь (inventory)
Свойства:
| Название | Тип | Чтение | Запись | Описание |
| --------- | --- | ------ | ------ | ----------------------------------------- |
|-----------|-----|--------|--------|-------------------------------------------|
| inventory | int | да | да | id инвентаря, к которому привязан элемент |