diff options
author | Roxie Linden <roxie@lindenlab.com> | 2010-04-23 13:24:09 -0700 |
---|---|---|
committer | Roxie Linden <roxie@lindenlab.com> | 2010-04-23 13:24:09 -0700 |
commit | a42dcc3f5e8dbddbc83500371bcb3d0ca8d91a3b (patch) | |
tree | 3eafe790e4b51122d6d56c025856a8eb3ca36880 /indra/newview/lltoast.cpp | |
parent | e1b3919a4fec68f57be6d6de2839dc31b654609f (diff) | |
parent | e82ed4e8761be902cf3a4d80c337e0cd44d41b17 (diff) |
automated merge
Diffstat (limited to 'indra/newview/lltoast.cpp')
-rw-r--r-- | indra/newview/lltoast.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/lltoast.cpp b/indra/newview/lltoast.cpp index 22b12ee132..568cd4cb19 100644 --- a/indra/newview/lltoast.cpp +++ b/indra/newview/lltoast.cpp @@ -67,6 +67,7 @@ LLToast::Params::Params() LLToast::LLToast(const LLToast::Params& p) : LLModalDialog(LLSD(), p.is_modal), mPanel(p.panel), + mToastLifetime(p.lifetime_secs), mToastFadingTime(p.fading_time_secs), mNotificationID(p.notif_id), mSessionID(p.session_id), @@ -241,6 +242,13 @@ void LLToast::draw() drawChild(mHideBtn); } } + + // if timer started and remaining time <= fading time + if (mTimer->getStarted() && (mToastLifetime + - mTimer->getEventTimer().getElapsedTimeF32()) <= mToastFadingTime) + { + setBackgroundOpaque(FALSE); + } } //-------------------------------------------------------------------------- |