summaryrefslogtreecommitdiff
path: root/indra/llui/llflashtimer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llui/llflashtimer.cpp')
-rw-r--r--indra/llui/llflashtimer.cpp19
1 files changed, 15 insertions, 4 deletions
diff --git a/indra/llui/llflashtimer.cpp b/indra/llui/llflashtimer.cpp
index 2ad86b5751..de7a4ab265 100644
--- a/indra/llui/llflashtimer.cpp
+++ b/indra/llui/llflashtimer.cpp
@@ -34,6 +34,7 @@ LLFlashTimer::LLFlashTimer(callback_t cb, S32 count, F32 period)
, mCallback(cb)
, mCurrentTickCount(0)
, mIsFlashingInProgress(false)
+ , mIsCurrentlyHighlighted(false)
{
mEventTimer.stop();
@@ -58,9 +59,7 @@ BOOL LLFlashTimer::tick()
if (++mCurrentTickCount >= mFlashCount)
{
- mEventTimer.stop();
- mCurrentTickCount = 0;
- mIsFlashingInProgress = false;
+ stopFlashing();
}
return FALSE;
@@ -69,14 +68,26 @@ BOOL LLFlashTimer::tick()
void LLFlashTimer::startFlashing()
{
mIsFlashingInProgress = true;
+ mIsCurrentlyHighlighted = true;
mEventTimer.start();
}
void LLFlashTimer::stopFlashing()
{
+ mEventTimer.stop();
mIsFlashingInProgress = false;
mIsCurrentlyHighlighted = false;
- mEventTimer.stop();
+ mCurrentTickCount = 0;
+}
+
+bool LLFlashTimer::isFlashingInProgress()
+{
+ return mIsFlashingInProgress;
+}
+
+bool LLFlashTimer::isCurrentlyHighlighted()
+{
+ return mIsCurrentlyHighlighted;
}