diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llfirstuse.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/newview/llfirstuse.cpp')
-rw-r--r-- | linden/indra/newview/llfirstuse.cpp | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/linden/indra/newview/llfirstuse.cpp b/linden/indra/newview/llfirstuse.cpp index b3d383d..fc469f1 100644 --- a/linden/indra/newview/llfirstuse.cpp +++ b/linden/indra/newview/llfirstuse.cpp | |||
@@ -42,12 +42,13 @@ | |||
42 | #include "llviewercontrol.h" | 42 | #include "llviewercontrol.h" |
43 | #include "llui.h" | 43 | #include "llui.h" |
44 | #include "llappviewer.h" | 44 | #include "llappviewer.h" |
45 | #include "lltracker.h" | ||
45 | 46 | ||
46 | // static | 47 | // static |
47 | std::set<LLString> LLFirstUse::sConfigVariables; | 48 | std::set<std::string> LLFirstUse::sConfigVariables; |
48 | 49 | ||
49 | // static | 50 | // static |
50 | void LLFirstUse::addConfigVariable(const LLString& var) | 51 | void LLFirstUse::addConfigVariable(const std::string& var) |
51 | { | 52 | { |
52 | //Don't add the warning, now that we're storing the default in the settings_default.xml file | 53 | //Don't add the warning, now that we're storing the default in the settings_default.xml file |
53 | //gSavedSettings.addWarning(var); | 54 | //gSavedSettings.addWarning(var); |
@@ -58,7 +59,7 @@ void LLFirstUse::addConfigVariable(const LLString& var) | |||
58 | void LLFirstUse::disableFirstUse() | 59 | void LLFirstUse::disableFirstUse() |
59 | { | 60 | { |
60 | // Set all first-use warnings to disabled | 61 | // Set all first-use warnings to disabled |
61 | for (std::set<LLString>::iterator iter = sConfigVariables.begin(); | 62 | for (std::set<std::string>::iterator iter = sConfigVariables.begin(); |
62 | iter != sConfigVariables.end(); ++iter) | 63 | iter != sConfigVariables.end(); ++iter) |
63 | { | 64 | { |
64 | gSavedSettings.setWarning(*iter, FALSE); | 65 | gSavedSettings.setWarning(*iter, FALSE); |
@@ -69,7 +70,7 @@ void LLFirstUse::disableFirstUse() | |||
69 | void LLFirstUse::resetFirstUse() | 70 | void LLFirstUse::resetFirstUse() |
70 | { | 71 | { |
71 | // Set all first-use warnings to disabled | 72 | // Set all first-use warnings to disabled |
72 | for (std::set<LLString>::iterator iter = sConfigVariables.begin(); | 73 | for (std::set<std::string>::iterator iter = sConfigVariables.begin(); |
73 | iter != sConfigVariables.end(); ++iter) | 74 | iter != sConfigVariables.end(); ++iter) |
74 | { | 75 | { |
75 | gSavedSettings.setWarning(*iter, TRUE); | 76 | gSavedSettings.setWarning(*iter, TRUE); |
@@ -84,7 +85,7 @@ void LLFirstUse::useBalanceIncrease(S32 delta) | |||
84 | { | 85 | { |
85 | gSavedSettings.setWarning("FirstBalanceIncrease", FALSE); | 86 | gSavedSettings.setWarning("FirstBalanceIncrease", FALSE); |
86 | 87 | ||
87 | LLString::format_map_t args; | 88 | LLStringUtil::format_map_t args; |
88 | args["[AMOUNT]"] = llformat("%d",delta); | 89 | args["[AMOUNT]"] = llformat("%d",delta); |
89 | LLNotifyBox::showXml("FirstBalanceIncrease", args); | 90 | LLNotifyBox::showXml("FirstBalanceIncrease", args); |
90 | } | 91 | } |
@@ -98,7 +99,7 @@ void LLFirstUse::useBalanceDecrease(S32 delta) | |||
98 | { | 99 | { |
99 | gSavedSettings.setWarning("FirstBalanceDecrease", FALSE); | 100 | gSavedSettings.setWarning("FirstBalanceDecrease", FALSE); |
100 | 101 | ||
101 | LLString::format_map_t args; | 102 | LLStringUtil::format_map_t args; |
102 | args["[AMOUNT]"] = llformat("%d",-delta); | 103 | args["[AMOUNT]"] = llformat("%d",-delta); |
103 | LLNotifyBox::showXml("FirstBalanceDecrease", args); | 104 | LLNotifyBox::showXml("FirstBalanceDecrease", args); |
104 | } | 105 | } |
@@ -162,9 +163,13 @@ void LLFirstUse::useTeleport() | |||
162 | { | 163 | { |
163 | if (gSavedSettings.getWarning("FirstTeleport")) | 164 | if (gSavedSettings.getWarning("FirstTeleport")) |
164 | { | 165 | { |
165 | gSavedSettings.setWarning("FirstTeleport", FALSE); | 166 | LLVector3d teleportDestination = LLTracker::getTrackedPositionGlobal(); |
167 | if(teleportDestination != LLVector3d::zero) | ||
168 | { | ||
169 | gSavedSettings.setWarning("FirstTeleport", FALSE); | ||
166 | 170 | ||
167 | LLNotifyBox::showXml("FirstTeleport"); | 171 | LLNotifyBox::showXml("FirstTeleport"); |
172 | } | ||
168 | } | 173 | } |
169 | } | 174 | } |
170 | 175 | ||
@@ -220,7 +225,7 @@ void LLFirstUse::useSandbox() | |||
220 | { | 225 | { |
221 | gSavedSettings.setWarning("FirstSandbox", FALSE); | 226 | gSavedSettings.setWarning("FirstSandbox", FALSE); |
222 | 227 | ||
223 | LLString::format_map_t args; | 228 | LLStringUtil::format_map_t args; |
224 | args["[HOURS]"] = llformat("%d",SANDBOX_CLEAN_FREQ); | 229 | args["[HOURS]"] = llformat("%d",SANDBOX_CLEAN_FREQ); |
225 | args["[TIME]"] = llformat("%d",SANDBOX_FIRST_CLEAN_HOUR); | 230 | args["[TIME]"] = llformat("%d",SANDBOX_FIRST_CLEAN_HOUR); |
226 | LLNotifyBox::showXml("FirstSandbox", args); | 231 | LLNotifyBox::showXml("FirstSandbox", args); |