diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfirstuse.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/linden/indra/newview/llfirstuse.cpp b/linden/indra/newview/llfirstuse.cpp index e504547..bea9260 100644 --- a/linden/indra/newview/llfirstuse.cpp +++ b/linden/indra/newview/llfirstuse.cpp | |||
@@ -292,36 +292,3 @@ void LLFirstUse::useMedia() | |||
292 | LLNotifications::instance().add("FirstMedia"); | 292 | LLNotifications::instance().add("FirstMedia"); |
293 | } | 293 | } |
294 | } | 294 | } |
295 | |||
296 | // [RLVa:KB] - Version: 1.22.11 | Checked: RLVa-1.0.3a (2009-09-10) | Added: RLVa-1.0.3a | ||
297 | |||
298 | // SL-1.22.11 doesn't seem to have a way to check which notifications are currently open :( | ||
299 | bool rlvHasVisibleFirstUseNotification() | ||
300 | { | ||
301 | return false; | ||
302 | } | ||
303 | |||
304 | void LLFirstUse::showRlvFirstUseNotification(const std::string& strName) | ||
305 | { | ||
306 | if ( (gSavedSettings.getWarning(strName)) && (!rlvHasVisibleFirstUseNotification()) ) | ||
307 | { | ||
308 | gSavedSettings.setWarning(strName, FALSE); | ||
309 | LLNotifyBox::showXml(strName); | ||
310 | } | ||
311 | } | ||
312 | |||
313 | void LLFirstUse::warnRlvGiveToRLV() | ||
314 | { | ||
315 | if ( (gSavedSettings.getWarning(RLV_SETTING_FIRSTUSE_GIVETORLV)) && (RlvSettings::getForbidGiveToRLV()) ) | ||
316 | gViewerWindow->alertXml(RLV_SETTING_FIRSTUSE_GIVETORLV, LLStringUtil::format_map_t(), &LLFirstUse::onRlvGiveToRLVConfirmation, NULL); | ||
317 | } | ||
318 | |||
319 | void LLFirstUse::onRlvGiveToRLVConfirmation(S32 idxOption, void* /*pUserParam*/) | ||
320 | { | ||
321 | gSavedSettings.setWarning(RLV_SETTING_FIRSTUSE_GIVETORLV, FALSE); | ||
322 | |||
323 | if ( (0 == idxOption) || (1 == idxOption) ) | ||
324 | gSavedSettings.setBOOL(RLV_SETTING_FORBIDGIVETORLV, (idxOption == 1)); | ||
325 | } | ||
326 | |||
327 | // [/RLVa:KB] | ||