mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
add 'cursor' ui property
This commit is contained in:
parent
10f0bd0290
commit
cb9690ebc7
14 changed files with 144 additions and 1 deletions
|
|
@ -150,6 +150,14 @@ float UINode::getTooltipDelay() const {
|
|||
return tooltipDelay;
|
||||
}
|
||||
|
||||
void UINode::setCursor(CursorShape shape) {
|
||||
cursor = shape;
|
||||
}
|
||||
|
||||
CursorShape UINode::getCursor() const {
|
||||
return cursor;
|
||||
}
|
||||
|
||||
glm::vec2 UINode::calcPos() const {
|
||||
if (parent) {
|
||||
return pos + parent->calcPos() + parent->getContentOffset();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue