diff options
Diffstat (limited to 'indra/newview/lltoast.h')
-rw-r--r-- | indra/newview/lltoast.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/indra/newview/lltoast.h b/indra/newview/lltoast.h index 29c231a01d..504b83a660 100644 --- a/indra/newview/lltoast.h +++ b/indra/newview/lltoast.h @@ -63,7 +63,7 @@ public: LLUUID notif_id; //notification ID LLUUID session_id; //im session ID LLNotificationPtr notification; - F32 timer_period; + F32 lifetime_secs; toast_callback_t on_delete_toast; toast_callback_t on_mouse_enter; bool can_fade; @@ -82,7 +82,7 @@ public: force_show(false), force_store(false), panel(NULL), - timer_period(gSavedSettings.getS32("NotificationToastTime")) + lifetime_secs(gSavedSettings.getS32("NotificationToastLifeTime")) {}; }; @@ -153,7 +153,7 @@ public: private: // check timer - bool timerHasExpired(); + bool lifetimeHasExpired(); // on timer finished function void tick(); @@ -161,8 +161,9 @@ private: LLUUID mSessionID; LLNotificationPtr mNotification; + // timer counts a lifetime of a toast LLTimer mTimer; - F32 mTimerValue; + F32 mToastLifetime; // in seconds LLPanel* mPanel; LLButton* mHideBtn; |