diff options
Diffstat (limited to 'linden/indra/newview/llfirstuse.cpp')
-rw-r--r-- | linden/indra/newview/llfirstuse.cpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/linden/indra/newview/llfirstuse.cpp b/linden/indra/newview/llfirstuse.cpp index b807b17..7c611a3 100644 --- a/linden/indra/newview/llfirstuse.cpp +++ b/linden/indra/newview/llfirstuse.cpp | |||
@@ -44,6 +44,10 @@ | |||
44 | #include "llappviewer.h" | 44 | #include "llappviewer.h" |
45 | #include "lltracker.h" | 45 | #include "lltracker.h" |
46 | 46 | ||
47 | // [RLVa:KB] - Version: 1.22.11 | ||
48 | #include "llviewerwindow.h" | ||
49 | // [/RLVa:KB] | ||
50 | |||
47 | // static | 51 | // static |
48 | std::set<std::string> LLFirstUse::sConfigVariables; | 52 | std::set<std::string> LLFirstUse::sConfigVariables; |
49 | 53 | ||
@@ -287,3 +291,36 @@ void LLFirstUse::useMedia() | |||
287 | LLNotifyBox::showXml("FirstMedia"); | 291 | LLNotifyBox::showXml("FirstMedia"); |
288 | } | 292 | } |
289 | } | 293 | } |
294 | |||
295 | // [RLVa:KB] - Version: 1.22.11 | Checked: RLVa-1.0.3a (2009-09-10) | Added: RLVa-1.0.3a | ||
296 | |||
297 | // SL-1.22.11 doesn't seem to have a way to check which notifications are currently open :( | ||
298 | bool rlvHasVisibleFirstUseNotification() | ||
299 | { | ||
300 | return false; | ||
301 | } | ||
302 | |||
303 | void LLFirstUse::showRlvFirstUseNotification(const std::string& strName) | ||
304 | { | ||
305 | if ( (gSavedSettings.getWarning(strName)) && (!rlvHasVisibleFirstUseNotification()) ) | ||
306 | { | ||
307 | gSavedSettings.setWarning(strName, FALSE); | ||
308 | LLNotifyBox::showXml(strName); | ||
309 | } | ||
310 | } | ||
311 | |||
312 | void LLFirstUse::warnRlvGiveToRLV() | ||
313 | { | ||
314 | if ( (gSavedSettings.getWarning(RLV_SETTING_FIRSTUSE_GIVETORLV)) && (RlvSettings::getForbidGiveToRLV()) ) | ||
315 | gViewerWindow->alertXml(RLV_SETTING_FIRSTUSE_GIVETORLV, LLStringUtil::format_map_t(), &LLFirstUse::onRlvGiveToRLVConfirmation, NULL); | ||
316 | } | ||
317 | |||
318 | void LLFirstUse::onRlvGiveToRLVConfirmation(S32 idxOption, void* /*pUserParam*/) | ||
319 | { | ||
320 | gSavedSettings.setWarning(RLV_SETTING_FIRSTUSE_GIVETORLV, FALSE); | ||
321 | |||
322 | if ( (0 == idxOption) || (1 == idxOption) ) | ||
323 | gSavedSettings.setBOOL(RLV_SETTING_FORBIDGIVETORLV, (idxOption == 1)); | ||
324 | } | ||
325 | |||
326 | // [/RLVa:KB] | ||