mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 22:41:49 +00:00
add 'cursor' ui property
This commit is contained in:
parent
10f0bd0290
commit
cb9690ebc7
14 changed files with 144 additions and 1 deletions
|
|
@ -48,6 +48,7 @@ Properties that apply to all elements:
|
|||
| tooltip | string | yes | yes | tooltip text |
|
||||
| tooltipDelay | float | yes | yes | tooltip delay |
|
||||
| contentOffset | vec2 | yes | *no* | element content offset |
|
||||
| cursor | string | yes | yes | cursor displayed on hover |
|
||||
|
||||
Common element methods:
|
||||
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ Examples:
|
|||
- `gravity` - automatic positioning of the element in the container. (Does not work in automatic containers like panel). Values: *top-left, top-center, top-right, center-left, center-center, center-right, bottom-left, bottom-center, bottom-right*.
|
||||
- `z-index` - determines the order of elements, with a larger value it will overlap elements with a smaller one.
|
||||
- `interactive` - if false, hovering over the element and all sub-elements will be ignored.
|
||||
- `cursor` - the cursor displayed when hovering over the element (arrow/text/pointer/crosshair/ew-resize/ns-resize/...).
|
||||
|
||||
# Template attributes
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue