mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
added 'tooltip-delay' property
This commit is contained in:
parent
4400efae33
commit
e3989cb178
7 changed files with 28 additions and 3 deletions
|
|
@ -137,6 +137,15 @@ const std::wstring UINode::getTooltip() const {
|
|||
return tooltip;
|
||||
}
|
||||
|
||||
void UINode::setTooltipDelay(float delay) {
|
||||
tooltipDelay = delay;
|
||||
}
|
||||
|
||||
float UINode::getTooltipDelay() const {
|
||||
return tooltipDelay;
|
||||
}
|
||||
|
||||
|
||||
glm::vec2 UINode::calcPos() const {
|
||||
if (parent) {
|
||||
return pos + parent->calcPos() + parent->contentOffset();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue