diff options
author | Jacek Antonelli | 2010-07-29 21:01:21 -0500 |
---|---|---|
committer | Jacek Antonelli | 2010-08-01 00:31:00 -0500 |
commit | c80bc0e259ddf4afe6e8811684ffb505edf6d2a8 (patch) | |
tree | 626cc6297a97fe994104d4bedd286367ff95efa0 /linden/indra/newview/lightshare.h | |
parent | Don't spam user with ConfirmLightShare notifications. (diff) | |
download | meta-impy-c80bc0e259ddf4afe6e8811684ffb505edf6d2a8.zip meta-impy-c80bc0e259ddf4afe6e8811684ffb505edf6d2a8.tar.gz meta-impy-c80bc0e259ddf4afe6e8811684ffb505edf6d2a8.tar.bz2 meta-impy-c80bc0e259ddf4afe6e8811684ffb505edf6d2a8.tar.xz |
Added a timer after ignoring LightShare settings.
If you ignore a LightShare setting, all settings for the next
30 seconds will be ignored. The timer resets each time a new
message is ignored. Customize with LightShareIgnoreTimer
in Debug Settings.
Diffstat (limited to 'linden/indra/newview/lightshare.h')
-rw-r--r-- | linden/indra/newview/lightshare.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/linden/indra/newview/lightshare.h b/linden/indra/newview/lightshare.h index cbc03ad..5b24ae3 100644 --- a/linden/indra/newview/lightshare.h +++ b/linden/indra/newview/lightshare.h | |||
@@ -31,6 +31,7 @@ | |||
31 | 31 | ||
32 | #include "message.h" | 32 | #include "message.h" |
33 | #include "meta7windlight.h" | 33 | #include "meta7windlight.h" |
34 | #include "lltimer.h" | ||
34 | #include "llwaterparamset.h" | 35 | #include "llwaterparamset.h" |
35 | #include "llwlparamset.h" | 36 | #include "llwlparamset.h" |
36 | 37 | ||
@@ -54,9 +55,15 @@ class WindlightMessage | |||
54 | bool apply(); | 55 | bool apply(); |
55 | bool isValid(); | 56 | bool isValid(); |
56 | 57 | ||
58 | protected: | ||
59 | |||
60 | static void resetIgnoreTimer(); | ||
61 | static bool ignoreTimerHasExpired(); | ||
62 | |||
57 | private: | 63 | private: |
58 | 64 | ||
59 | static WindlightMessage* sMostRecent; | 65 | static WindlightMessage* sMostRecent; |
66 | static LLTimer* sIgnoreTimer; | ||
60 | 67 | ||
61 | Meta7WindlightPacket* mPacket; | 68 | Meta7WindlightPacket* mPacket; |
62 | LLWaterParamSet* mWater; | 69 | LLWaterParamSet* mWater; |