Merge branch 'main' into animation

This commit is contained in:
MihailRis 2026-08-09 16:50:42 +03:00
commit 83e7f1d5f5
24 changed files with 284 additions and 208 deletions

View file

@ -12,7 +12,7 @@ Content-pack folder must contain file **package.json** with following contents:
{
"id": "pack_id",
"title": "pack name will be displayed in the content menu",
"version": "content-pack version - major.minor",
"version": "content-pack version - major.minor.[patch])",
"creator": "content-pack creator",
"description": "short description",
"dependencies": [
@ -26,6 +26,7 @@ Dependency levels are indicated by prefixes in the name:
- '!' - required dependency
- '?' - optional dependency
- '~' - weak dependency
If prefix is not specified, '!' level will be used.
Example: '~randutil' - weak dependency 'randutil'.

View file

@ -53,7 +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 |
| zIndex | int | yes | *no* | z-index value. In panel, it determines the order |
Common element methods:

View file

@ -12,7 +12,7 @@
{
"id": "выбранное_имя_пака",
"title": "имя контент-пака для отображения в меню контента",
"version": "версия контент-пака в формате major.minor",
"version": "версия контент-пака в формате major.minor.[patch]",
"creator": "создатель контент-пака",
"description": "краткое описание",
"dependencies": [
@ -28,6 +28,7 @@
- '!' - обязательная зависимость
- '?' - опциональная зависимость
- '~' - слабая зависимость
Отсутствие префикса интерпретируется как '!'.
Пример: '~randutil' - слабая зависимость 'randutil'.

View file

@ -53,7 +53,7 @@ document["worlds-panel"]:clear()
| contentOffset | vec2 | да | *нет* | смещение содержимого |
| cursor | string | да | да | курсор, отображаемый при наведении |
| parent | Element | да | *нет* | родительский элемент или nil |
| zIndex | bool | да | *нет* | значение z-индекса. В panel определяет порядок |
| zIndex | int | да | *нет* | значение z-индекса. В panel определяет порядок |
Общие методы элементов: