mirror of
https://github.com/overte-org/overte.git
synced 2025-04-13 18:42:11 +02:00
Do not use timer for switching bubble button active state
This commit is contained in:
parent
2487e34ee8
commit
c385bf26e9
1 changed files with 2 additions and 8 deletions
|
@ -89,14 +89,8 @@
|
|||
bubbleOverlayTimestamp = nowTimestamp;
|
||||
Script.update.connect(update);
|
||||
updateConnected = true;
|
||||
|
||||
// Flash button
|
||||
if (!bubbleFlashTimer) {
|
||||
bubbleFlashTimer = Script.setInterval(function () {
|
||||
writeButtonProperties(bubbleButtonFlashState);
|
||||
bubbleButtonFlashState = !bubbleButtonFlashState;
|
||||
}, 500);
|
||||
}
|
||||
writeButtonProperties(bubbleButtonFlashState);
|
||||
bubbleButtonFlashState = !bubbleButtonFlashState;
|
||||
}
|
||||
|
||||
// Called from the C++ scripting interface to show the bubble overlay
|
||||
|
|
Loading…
Reference in a new issue