mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 23:11:49 +00:00
update doc/*/scripting/ui.md
This commit is contained in:
parent
08f91697ef
commit
60a9ff2072
2 changed files with 40 additions and 38 deletions
|
|
@ -35,7 +35,7 @@ Access to nested elements is performed by index (starting from one).
|
||||||
Properties that apply to all elements:
|
Properties that apply to all elements:
|
||||||
|
|
||||||
| Name | Type | Read | Write | Description |
|
| Name | Type | Read | Write | Description |
|
||||||
| ------------- | ------- | ---- | ----- | ------------------------------------------- |
|
| ------------- | ------- | ---- | ----- | ------------------------------------------------ |
|
||||||
| id | string | yes | *no* | element id |
|
| id | string | yes | *no* | element id |
|
||||||
| exists | bool | yes | *no* | checks if element exists |
|
| exists | bool | yes | *no* | checks if element exists |
|
||||||
| pos | vec2 | yes | yes | element position inside a container |
|
| pos | vec2 | yes | yes | element position inside a container |
|
||||||
|
|
@ -53,6 +53,7 @@ Properties that apply to all elements:
|
||||||
| contentOffset | vec2 | yes | *no* | element content offset |
|
| contentOffset | vec2 | yes | *no* | element content offset |
|
||||||
| cursor | string | yes | yes | cursor displayed on hover |
|
| cursor | string | yes | yes | cursor displayed on hover |
|
||||||
| parent | Element | yes | *no* | parent element or nil |
|
| parent | Element | yes | *no* | parent element or nil |
|
||||||
|
| zIndex | bool | yes | *no* | z-index value. In panel, it determines the order |
|
||||||
|
|
||||||
Common element methods:
|
Common element methods:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ document["worlds-panel"]:clear()
|
||||||
Свойства, относящиеся ко всем элементам:
|
Свойства, относящиеся ко всем элементам:
|
||||||
|
|
||||||
| Название | Тип | Чтение | Запись | Описание |
|
| Название | Тип | Чтение | Запись | Описание |
|
||||||
| ------------- | ------- | ------ | ------ | ----------------------------------------- |
|
| ------------- | ------- | ------ | ------ | ---------------------------------------------- |
|
||||||
| id | string | да | *нет* | идентификатор элемента |
|
| id | string | да | *нет* | идентификатор элемента |
|
||||||
| exists | bool | да | *нет* | проверяет, существует ли элемент |
|
| exists | bool | да | *нет* | проверяет, существует ли элемент |
|
||||||
| pos | vec2 | да | да | позиция элемента внутри контейнера |
|
| pos | vec2 | да | да | позиция элемента внутри контейнера |
|
||||||
|
|
@ -53,6 +53,7 @@ document["worlds-panel"]:clear()
|
||||||
| contentOffset | vec2 | да | *нет* | смещение содержимого |
|
| contentOffset | vec2 | да | *нет* | смещение содержимого |
|
||||||
| cursor | string | да | да | курсор, отображаемый при наведении |
|
| cursor | string | да | да | курсор, отображаемый при наведении |
|
||||||
| parent | Element | да | *нет* | родительский элемент или nil |
|
| parent | Element | да | *нет* | родительский элемент или nil |
|
||||||
|
| zIndex | bool | да | *нет* | значение z-индекса. В panel определяет порядок |
|
||||||
|
|
||||||
Общие методы элементов:
|
Общие методы элементов:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue