mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21: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
|
|
@ -156,6 +156,11 @@ static void _readUINode(
|
|||
if (element.has("tooltip-delay")) {
|
||||
node.setTooltipDelay(element.attr("tooltip-delay").asFloat());
|
||||
}
|
||||
if (element.has("cursor")) {
|
||||
if (auto cursor = CursorShape_from(element.attr("cursor").getText())) {
|
||||
node.setCursor(*cursor);
|
||||
}
|
||||
}
|
||||
|
||||
if (auto onclick = create_action(reader, element, "onclick")) {
|
||||
node.listenAction(onclick);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue