aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfirstuse.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfirstuse.cpp33
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 :(
299bool rlvHasVisibleFirstUseNotification()
300{
301 return false;
302}
303
304void 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
313void 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
319void 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]