aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-04-09 20:09:14 -0700
committerMcCabe Maxsted2010-04-09 20:09:14 -0700
commitbec4fdebfff3563e9fe7f8c8bca81ceafa157bed (patch)
tree86b2c1be8650816c85291b95fae2003fb99b5c27 /linden
parentAdded checkbox for showing client names in nametag (doesn't change their colo... (diff)
downloadmeta-impy-bec4fdebfff3563e9fe7f8c8bca81ceafa157bed.zip
meta-impy-bec4fdebfff3563e9fe7f8c8bca81ceafa157bed.tar.gz
meta-impy-bec4fdebfff3563e9fe7f8c8bca81ceafa157bed.tar.bz2
meta-impy-bec4fdebfff3563e9fe7f8c8bca81ceafa157bed.tar.xz
Added a first use notification to the AO
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/app_settings/settings.xml11
-rw-r--r--linden/indra/newview/floaterao.cpp2
-rw-r--r--linden/indra/newview/llappviewer.cpp1
-rw-r--r--linden/indra/newview/llfirstuse.cpp11
-rw-r--r--linden/indra/newview/llfirstuse.h1
-rw-r--r--linden/indra/newview/llprefsadvanced.cpp4
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/notifications.xml8
7 files changed, 36 insertions, 2 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index c950973..072a0f4 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -12320,6 +12320,17 @@
12320 <key>Value</key> 12320 <key>Value</key>
12321 <integer>1</integer> 12321 <integer>1</integer>
12322 </map> 12322 </map>
12323 <key>WarnFirstAO</key>
12324 <map>
12325 <key>Comment</key>
12326 <string>Enables FirstAO warning dialog</string>
12327 <key>Persist</key>
12328 <integer>1</integer>
12329 <key>Type</key>
12330 <string>Boolean</string>
12331 <key>Value</key>
12332 <integer>1</integer>
12333 </map>
12323 <key>WarnFirstAppearance</key> 12334 <key>WarnFirstAppearance</key>
12324 <map> 12335 <map>
12325 <key>Comment</key> 12336 <key>Comment</key>
diff --git a/linden/indra/newview/floaterao.cpp b/linden/indra/newview/floaterao.cpp
index 5ecd769..b084189 100644
--- a/linden/indra/newview/floaterao.cpp
+++ b/linden/indra/newview/floaterao.cpp
@@ -22,6 +22,7 @@
22// Uncomment and use instead if we ever add the chatbar as a command line - MC 22// Uncomment and use instead if we ever add the chatbar as a command line - MC
23//#include "chatbar_as_cmdline.h" 23//#include "chatbar_as_cmdline.h"
24#include "llfloaterchat.h" 24#include "llfloaterchat.h"
25#include "llfirstuse.h"
25 26
26#include "llinventory.h" 27#include "llinventory.h"
27#include "llinventoryview.h" 28#include "llinventoryview.h"
@@ -305,6 +306,7 @@ void LLFloaterAO::show(void*)
305 { 306 {
306 sInstance->close(); 307 sInstance->close();
307 } 308 }
309 LLFirstUse::useAO();
308} 310}
309 311
310bool LLFloaterAO::getInstance() 312bool LLFloaterAO::getInstance()
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp
index 63cc952..ae2c294 100644
--- a/linden/indra/newview/llappviewer.cpp
+++ b/linden/indra/newview/llappviewer.cpp
@@ -1758,6 +1758,7 @@ bool LLAppViewer::initConfiguration()
1758 LLFirstUse::addConfigVariable("FirstTeleport"); 1758 LLFirstUse::addConfigVariable("FirstTeleport");
1759 LLFirstUse::addConfigVariable("FirstOverrideKeys"); 1759 LLFirstUse::addConfigVariable("FirstOverrideKeys");
1760 LLFirstUse::addConfigVariable("FirstAttach"); 1760 LLFirstUse::addConfigVariable("FirstAttach");
1761 LLFirstUse::addConfigVariable("FirstAO");
1761 LLFirstUse::addConfigVariable("FirstAppearance"); 1762 LLFirstUse::addConfigVariable("FirstAppearance");
1762 LLFirstUse::addConfigVariable("FirstInventory"); 1763 LLFirstUse::addConfigVariable("FirstInventory");
1763 LLFirstUse::addConfigVariable("FirstSandbox"); 1764 LLFirstUse::addConfigVariable("FirstSandbox");
diff --git a/linden/indra/newview/llfirstuse.cpp b/linden/indra/newview/llfirstuse.cpp
index 877e586..bc982af 100644
--- a/linden/indra/newview/llfirstuse.cpp
+++ b/linden/indra/newview/llfirstuse.cpp
@@ -214,6 +214,17 @@ void LLFirstUse::useAttach()
214} 214}
215 215
216// static 216// static
217void LLFirstUse::useAO()
218{
219 if (gSavedSettings.getWarning("FirstAO"))
220 {
221 gSavedSettings.setWarning("FirstAO", FALSE);
222
223 LLNotifications::instance().add("FirstAO");
224 }
225}
226
227// static
217void LLFirstUse::useAppearance() 228void LLFirstUse::useAppearance()
218{ 229{
219 if (gSavedSettings.getWarning("FirstAppearance")) 230 if (gSavedSettings.getWarning("FirstAppearance"))
diff --git a/linden/indra/newview/llfirstuse.h b/linden/indra/newview/llfirstuse.h
index e327984..6467734 100644
--- a/linden/indra/newview/llfirstuse.h
+++ b/linden/indra/newview/llfirstuse.h
@@ -104,6 +104,7 @@ public:
104 static void useTeleport(); 104 static void useTeleport();
105 static void useOverrideKeys(); 105 static void useOverrideKeys();
106 static void useAttach(); 106 static void useAttach();
107 static void useAO();
107 static void useAppearance(); 108 static void useAppearance();
108 static void useInventory(); 109 static void useInventory();
109 static void useSandbox(); 110 static void useSandbox();
diff --git a/linden/indra/newview/llprefsadvanced.cpp b/linden/indra/newview/llprefsadvanced.cpp
index 6558d7b..1ecc0ec 100644
--- a/linden/indra/newview/llprefsadvanced.cpp
+++ b/linden/indra/newview/llprefsadvanced.cpp
@@ -49,7 +49,7 @@ BOOL LLPrefsAdvanced::postBuild()
49{ 49{
50 childSetValue("disable_log_screen_check", gSavedSettings.getBOOL("DisableLoginLogoutScreens")); 50 childSetValue("disable_log_screen_check", gSavedSettings.getBOOL("DisableLoginLogoutScreens"));
51 childSetValue("disable_tp_screen_check", gSavedSettings.getBOOL("DisableTeleportScreens")); 51 childSetValue("disable_tp_screen_check", gSavedSettings.getBOOL("DisableTeleportScreens"));
52 childSetValue("client_name_tag_check", gSavedSettings.getBOOL("ShowClientNameTag")); 52 childSetValue("client_name_tag_check", gSavedSettings.getBOOL("ClothingLayerProtection"));
53 53
54 return TRUE; 54 return TRUE;
55} 55}
@@ -58,7 +58,7 @@ void LLPrefsAdvanced::apply()
58{ 58{
59 gSavedSettings.setBOOL("DisableLoginLogoutScreens", childGetValue("disable_log_screen_check")); 59 gSavedSettings.setBOOL("DisableLoginLogoutScreens", childGetValue("disable_log_screen_check"));
60 gSavedSettings.setBOOL("DisableTeleportScreens", childGetValue("disable_tp_screen_check")); 60 gSavedSettings.setBOOL("DisableTeleportScreens", childGetValue("disable_tp_screen_check"));
61 gSavedSettings.setBOOL("ShowClientNameTag", childGetValue("client_name_tag_check")); 61 gSavedSettings.setBOOL("ClothingLayerProtection", childGetValue("client_name_tag_check"));
62} 62}
63 63
64void LLPrefsAdvanced::cancel() 64void LLPrefsAdvanced::cancel()
diff --git a/linden/indra/newview/skins/default/xui/en-us/notifications.xml b/linden/indra/newview/skins/default/xui/en-us/notifications.xml
index efc45d0..9e97930 100644
--- a/linden/indra/newview/skins/default/xui/en-us/notifications.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/notifications.xml
@@ -6670,6 +6670,14 @@ Go to the Official Imprudence Forums to discuss the Imprudence Project.
6670 yestext="OK"/> 6670 yestext="OK"/>
6671 </notification> 6671 </notification>
6672 6672
6673 <notification
6674 icon="notify.tga"
6675 name="FirstAO"
6676 type="notify">
6677 Make a new template for AO instructions.
6678 Use the toolbar to toggle the AO on/off.
6679 </notification>
6680
6673 6681
6674 <!--End Imprudence notifications--> 6682 <!--End Imprudence notifications-->
6675 6683