mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
update ui docs
This commit is contained in:
parent
6aac90094e
commit
5ca0891c3d
4 changed files with 8 additions and 4 deletions
|
|
@ -167,10 +167,11 @@ Properties:
|
|||
|
||||
Properties:
|
||||
|
||||
| Name | Type | Read | Write | Description |
|
||||
| ------ | ------ | ---- | ----- | ---------------- |
|
||||
| src | string | yes | yes | texture name |
|
||||
| region | vec4 | yes | yes | image sub-region |
|
||||
| Name | Type | Read | Write | Description |
|
||||
| -------- | ------ | ---- | ----- | ---------------- |
|
||||
| src | string | yes | yes | texture name |
|
||||
| fallback | string | yes | yes | fallback texture |
|
||||
| region | vec4 | yes | yes | image sub-region |
|
||||
|
||||
## Canvas
|
||||
|
||||
|
|
|
|||
|
|
@ -120,6 +120,7 @@ Inner text is a button text.
|
|||
|
||||
- `src` - name of an image stored in textures folder. Extension is not specified. Type: string.
|
||||
Example: *gui/error*
|
||||
- `fallback` - a fallback texture displayed when the main texture is missing / loading.
|
||||
- `region` - image region x1, y1, x2, y2 from 0.0, 0.0 (upper left corner), 1.0, 1.0 (lower right corner)
|
||||
|
||||
## *canvas*
|
||||
|
|
|
|||
|
|
@ -170,6 +170,7 @@ document["worlds-panel"]:clear()
|
|||
| Название | Тип | Чтение | Запись | Описание |
|
||||
| -------- | ------ | ------ | ------ | ---------------------- |
|
||||
| src | string | да | да | отображаемая текстура |
|
||||
| fallback | string | да | да | резервная текстура |
|
||||
| region | vec4 | да | да | под-регион изображения |
|
||||
|
||||
## Холст (canvas)
|
||||
|
|
|
|||
|
|
@ -121,6 +121,7 @@
|
|||
## Изображение - *image*
|
||||
|
||||
- `src` - имя изображения в папке textures без указания расширения. Тип: строка. Например `gui/error`
|
||||
- `fallback` - резервная текстура, отображаемая при отсутствии / фоновой загрузке основной
|
||||
- `region` - под-регион изображения x1, y1, x2, y2 от 0.0, 0.0 (левый верхний угол), 1.0, 1.0 (правый нижний угол)
|
||||
|
||||
## Холст - *canvas*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue