added 'tooltip-delay' property

This commit is contained in:
MihailRis
2024-05-24 13:18:20 +03:00
parent 4400efae33
commit e3989cb178
7 changed files with 28 additions and 3 deletions
+3
View File
@@ -146,6 +146,9 @@ static void _readUINode(UiXmlReader& reader, xml::xmlelement element, UINode& no
if (element->has("tooltip")) {
node.setTooltip(util::str2wstr_utf8(element->attr("tooltip").getText()));
}
if (element->has("tooltip-delay")) {
node.setTooltipDelay(element->attr("tooltip-delay").asFloat());
}
if (auto onclick = create_action(reader, element, "onclick")) {
node.listenAction(onclick);