mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-15 07:51:50 +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:
|
||||
|
||||
| Name | Type | Read | Write | Description |
|
||||
| ------------- | ------- | ---- | ----- | ------------------------------------------- |
|
||||
| ------------- | ------- | ---- | ----- | ------------------------------------------------ |
|
||||
| id | string | yes | *no* | element id |
|
||||
| exists | bool | yes | *no* | checks if element exists |
|
||||
| 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 |
|
||||
| cursor | string | yes | yes | cursor displayed on hover |
|
||||
| parent | Element | yes | *no* | parent element or nil |
|
||||
| zIndex | bool | yes | *no* | z-index value. In panel, it determines the order |
|
||||
|
||||
Common element methods:
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ document["worlds-panel"]:clear()
|
|||
Свойства, относящиеся ко всем элементам:
|
||||
|
||||
| Название | Тип | Чтение | Запись | Описание |
|
||||
| ------------- | ------- | ------ | ------ | ----------------------------------------- |
|
||||
| ------------- | ------- | ------ | ------ | ---------------------------------------------- |
|
||||
| id | string | да | *нет* | идентификатор элемента |
|
||||
| exists | bool | да | *нет* | проверяет, существует ли элемент |
|
||||
| pos | vec2 | да | да | позиция элемента внутри контейнера |
|
||||
|
|
@ -53,6 +53,7 @@ document["worlds-panel"]:clear()
|
|||
| contentOffset | vec2 | да | *нет* | смещение содержимого |
|
||||
| cursor | string | да | да | курсор, отображаемый при наведении |
|
||||
| parent | Element | да | *нет* | родительский элемент или nil |
|
||||
| zIndex | bool | да | *нет* | значение z-индекса. В panel определяет порядок |
|
||||
|
||||
Общие методы элементов:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue