diff options
Diffstat (limited to 'linden/indra/newview/llfirstuse.cpp')
-rw-r--r-- | linden/indra/newview/llfirstuse.cpp | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/linden/indra/newview/llfirstuse.cpp b/linden/indra/newview/llfirstuse.cpp index 7c611a3..513cba3 100644 --- a/linden/indra/newview/llfirstuse.cpp +++ b/linden/indra/newview/llfirstuse.cpp | |||
@@ -17,7 +17,8 @@ | |||
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | 20 | * online at |
21 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
21 | * | 22 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 23 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 24 | * that you have read and understood your obligations described above, |
@@ -89,9 +90,9 @@ void LLFirstUse::useBalanceIncrease(S32 delta) | |||
89 | { | 90 | { |
90 | gSavedSettings.setWarning("FirstBalanceIncrease", FALSE); | 91 | gSavedSettings.setWarning("FirstBalanceIncrease", FALSE); |
91 | 92 | ||
92 | LLStringUtil::format_map_t args; | 93 | LLSD args; |
93 | args["[AMOUNT]"] = llformat("%d",delta); | 94 | args["AMOUNT"] = llformat("%d",delta); |
94 | LLNotifyBox::showXml("FirstBalanceIncrease", args); | 95 | LLNotifications::instance().add("FirstBalanceIncrease", args); |
95 | } | 96 | } |
96 | } | 97 | } |
97 | 98 | ||
@@ -103,9 +104,9 @@ void LLFirstUse::useBalanceDecrease(S32 delta) | |||
103 | { | 104 | { |
104 | gSavedSettings.setWarning("FirstBalanceDecrease", FALSE); | 105 | gSavedSettings.setWarning("FirstBalanceDecrease", FALSE); |
105 | 106 | ||
106 | LLStringUtil::format_map_t args; | 107 | LLSD args; |
107 | args["[AMOUNT]"] = llformat("%d",-delta); | 108 | args["AMOUNT"] = llformat("%d",-delta); |
108 | LLNotifyBox::showXml("FirstBalanceDecrease", args); | 109 | LLNotifications::instance().add("FirstBalanceDecrease", args); |
109 | } | 110 | } |
110 | } | 111 | } |
111 | 112 | ||
@@ -118,8 +119,8 @@ void LLFirstUse::useSit() | |||
118 | //if (gSavedSettings.getWarning("FirstSit")) | 119 | //if (gSavedSettings.getWarning("FirstSit")) |
119 | //{ | 120 | //{ |
120 | // gSavedSettings.setWarning("FirstSit", FALSE); | 121 | // gSavedSettings.setWarning("FirstSit", FALSE); |
121 | 122 | // | |
122 | // LLNotifyBox::showXml("FirstSit"); | 123 | // LLNotifications::instance().add("FirstSit"); |
123 | //} | 124 | //} |
124 | } | 125 | } |
125 | 126 | ||
@@ -130,7 +131,7 @@ void LLFirstUse::useMap() | |||
130 | { | 131 | { |
131 | gSavedSettings.setWarning("FirstMap", FALSE); | 132 | gSavedSettings.setWarning("FirstMap", FALSE); |
132 | 133 | ||
133 | LLNotifyBox::showXml("FirstMap"); | 134 | LLNotifications::instance().add("FirstMap"); |
134 | } | 135 | } |
135 | } | 136 | } |
136 | 137 | ||
@@ -158,7 +159,7 @@ void LLFirstUse::useBuild() | |||
158 | { | 159 | { |
159 | gSavedSettings.setWarning("FirstBuild", FALSE); | 160 | gSavedSettings.setWarning("FirstBuild", FALSE); |
160 | 161 | ||
161 | LLNotifyBox::showXml("FirstBuild"); | 162 | LLNotifications::instance().add("FirstBuild"); |
162 | } | 163 | } |
163 | } | 164 | } |
164 | 165 | ||
@@ -169,7 +170,7 @@ void LLFirstUse::useLeftClickNoHit() | |||
169 | { | 170 | { |
170 | gSavedSettings.setWarning("FirstLeftClickNoHit", FALSE); | 171 | gSavedSettings.setWarning("FirstLeftClickNoHit", FALSE); |
171 | 172 | ||
172 | LLNotifyBox::showXml("FirstLeftClickNoHit"); | 173 | LLNotifications::instance().add("FirstLeftClickNoHit"); |
173 | } | 174 | } |
174 | } | 175 | } |
175 | 176 | ||
@@ -183,7 +184,7 @@ void LLFirstUse::useTeleport() | |||
183 | { | 184 | { |
184 | gSavedSettings.setWarning("FirstTeleport", FALSE); | 185 | gSavedSettings.setWarning("FirstTeleport", FALSE); |
185 | 186 | ||
186 | LLNotifyBox::showXml("FirstTeleport"); | 187 | LLNotifications::instance().add("FirstTeleport"); |
187 | } | 188 | } |
188 | } | 189 | } |
189 | } | 190 | } |
@@ -199,7 +200,7 @@ void LLFirstUse::useOverrideKeys() | |||
199 | { | 200 | { |
200 | gSavedSettings.setWarning("FirstOverrideKeys", FALSE); | 201 | gSavedSettings.setWarning("FirstOverrideKeys", FALSE); |
201 | 202 | ||
202 | LLNotifyBox::showXml("FirstOverrideKeys"); | 203 | LLNotifications::instance().add("FirstOverrideKeys"); |
203 | } | 204 | } |
204 | } | 205 | } |
205 | } | 206 | } |
@@ -217,7 +218,7 @@ void LLFirstUse::useAppearance() | |||
217 | { | 218 | { |
218 | gSavedSettings.setWarning("FirstAppearance", FALSE); | 219 | gSavedSettings.setWarning("FirstAppearance", FALSE); |
219 | 220 | ||
220 | LLNotifyBox::showXml("FirstAppearance"); | 221 | LLNotifications::instance().add("FirstAppearance"); |
221 | } | 222 | } |
222 | } | 223 | } |
223 | 224 | ||
@@ -228,7 +229,7 @@ void LLFirstUse::useInventory() | |||
228 | { | 229 | { |
229 | gSavedSettings.setWarning("FirstInventory", FALSE); | 230 | gSavedSettings.setWarning("FirstInventory", FALSE); |
230 | 231 | ||
231 | LLNotifyBox::showXml("FirstInventory"); | 232 | LLNotifications::instance().add("FirstInventory"); |
232 | } | 233 | } |
233 | } | 234 | } |
234 | 235 | ||
@@ -240,10 +241,10 @@ void LLFirstUse::useSandbox() | |||
240 | { | 241 | { |
241 | gSavedSettings.setWarning("FirstSandbox", FALSE); | 242 | gSavedSettings.setWarning("FirstSandbox", FALSE); |
242 | 243 | ||
243 | LLStringUtil::format_map_t args; | 244 | LLSD args; |
244 | args["[HOURS]"] = llformat("%d",SANDBOX_CLEAN_FREQ); | 245 | args["HOURS"] = llformat("%d",SANDBOX_CLEAN_FREQ); |
245 | args["[TIME]"] = llformat("%d",SANDBOX_FIRST_CLEAN_HOUR); | 246 | args["TIME"] = llformat("%d",SANDBOX_FIRST_CLEAN_HOUR); |
246 | LLNotifyBox::showXml("FirstSandbox", args); | 247 | LLNotifications::instance().add("FirstSandbox", args); |
247 | } | 248 | } |
248 | } | 249 | } |
249 | 250 | ||
@@ -254,7 +255,7 @@ void LLFirstUse::useFlexible() | |||
254 | { | 255 | { |
255 | gSavedSettings.setWarning("FirstFlexible", FALSE); | 256 | gSavedSettings.setWarning("FirstFlexible", FALSE); |
256 | 257 | ||
257 | LLNotifyBox::showXml("FirstFlexible"); | 258 | LLNotifications::instance().add("FirstFlexible"); |
258 | } | 259 | } |
259 | } | 260 | } |
260 | 261 | ||
@@ -265,7 +266,7 @@ void LLFirstUse::useDebugMenus() | |||
265 | { | 266 | { |
266 | gSavedSettings.setWarning("FirstDebugMenus", FALSE); | 267 | gSavedSettings.setWarning("FirstDebugMenus", FALSE); |
267 | 268 | ||
268 | LLNotifyBox::showXml("FirstDebugMenus"); | 269 | LLNotifications::instance().add("FirstDebugMenus"); |
269 | } | 270 | } |
270 | } | 271 | } |
271 | 272 | ||
@@ -276,7 +277,7 @@ void LLFirstUse::useSculptedPrim() | |||
276 | { | 277 | { |
277 | gSavedSettings.setWarning("FirstSculptedPrim", FALSE); | 278 | gSavedSettings.setWarning("FirstSculptedPrim", FALSE); |
278 | 279 | ||
279 | LLNotifyBox::showXml("FirstSculptedPrim"); | 280 | LLNotifications::instance().add("FirstSculptedPrim"); |
280 | 281 | ||
281 | } | 282 | } |
282 | } | 283 | } |
@@ -288,7 +289,7 @@ void LLFirstUse::useMedia() | |||
288 | { | 289 | { |
289 | gSavedSettings.setWarning("FirstMedia", FALSE); | 290 | gSavedSettings.setWarning("FirstMedia", FALSE); |
290 | 291 | ||
291 | LLNotifyBox::showXml("FirstMedia"); | 292 | LLNotifications::instance().add("FirstMedia"); |
292 | } | 293 | } |
293 | } | 294 | } |
294 | 295 | ||