aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
authorArmin Weatherwax2010-06-10 17:47:36 +0200
committerJacek Antonelli2010-06-19 02:43:36 -0500
commit55121d55012de5303a209402df4b26a81afe6387 (patch)
tree685ab294f57c1bced2fe29473034fd3958003f3e /linden/indra/newview
parentfix another issue with alpha (diff)
downloadmeta-impy-55121d55012de5303a209402df4b26a81afe6387.zip
meta-impy-55121d55012de5303a209402df4b26a81afe6387.tar.gz
meta-impy-55121d55012de5303a209402df4b26a81afe6387.tar.bz2
meta-impy-55121d55012de5303a209402df4b26a81afe6387.tar.xz
feature: have clothing layer protection on and don't broadcast client name
Diffstat (limited to 'linden/indra/newview')
-rw-r--r--linden/indra/newview/app_settings/settings.xml16
-rw-r--r--linden/indra/newview/llagent.cpp12
-rw-r--r--linden/indra/newview/llprefsadvanced.cpp14
3 files changed, 33 insertions, 9 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index 8a48016..c1ed2b4 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -922,7 +922,7 @@
922 <key>ShowClientNameTag</key> 922 <key>ShowClientNameTag</key>
923 <map> 923 <map>
924 <key>Comment</key> 924 <key>Comment</key>
925 <string>Show others clients in name tag</string> 925 <string>Show *others* clients in the name tag</string>
926 <key>Persist</key> 926 <key>Persist</key>
927 <integer>1</integer> 927 <integer>1</integer>
928 <key>Type</key> 928 <key>Type</key>
@@ -930,7 +930,19 @@
930 <key>Value</key> 930 <key>Value</key>
931 <integer>1</integer> 931 <integer>1</integer>
932 </map> 932 </map>
933 933
934 <key>ShowMyClientTagToOthers</key>
935 <map>
936 <key>Comment</key>
937 <string>Show my client name to other viewers capable seeing it (e.g. Emerald, Imprudence, Meerkat)</string>
938 <key>Persist</key>
939 <integer>1</integer>
940 <key>Type</key>
941 <string>Boolean</string>
942 <key>Value</key>
943 <integer>1</integer>
944 </map>
945
934 <key>DownloadClientTags</key> 946 <key>DownloadClientTags</key>
935 <map> 947 <map>
936 <key>Comment</key> 948 <key>Comment</key>
diff --git a/linden/indra/newview/llagent.cpp b/linden/indra/newview/llagent.cpp
index e2be0d0..e8ee2a1 100644
--- a/linden/indra/newview/llagent.cpp
+++ b/linden/indra/newview/llagent.cpp
@@ -7404,10 +7404,14 @@ void LLAgent::sendAgentSetAppearance()
7404 msg->addU8Fast(_PREHASH_TextureIndex, (U8)texture_index); 7404 msg->addU8Fast(_PREHASH_TextureIndex, (U8)texture_index);
7405 } 7405 }
7406 msg->nextBlockFast(_PREHASH_ObjectData); 7406 msg->nextBlockFast(_PREHASH_ObjectData);
7407 mAvatarObject->packTEMessage ( 7407
7408 gMessageSystem, 7408 int shield = 0;
7409 gSavedSettings.getBOOL("ClothingLayerProtection") 7409 if(gSavedSettings.getBOOL("ClothingLayerProtection"))
7410 ); 7410 {
7411 if(gSavedSettings.getBOOL("ShowMyClientTagToOthers")) shield = 1;
7412 else shield = 2;
7413 }
7414 mAvatarObject->packTEMessage ( gMessageSystem, shield );
7411 } 7415 }
7412 else 7416 else
7413 { 7417 {
diff --git a/linden/indra/newview/llprefsadvanced.cpp b/linden/indra/newview/llprefsadvanced.cpp
index 22dcbf1..6fb8998 100644
--- a/linden/indra/newview/llprefsadvanced.cpp
+++ b/linden/indra/newview/llprefsadvanced.cpp
@@ -57,7 +57,7 @@ BOOL LLPrefsAdvanced::postBuild()
57 childSetValue("disable_tp_screen_check", gSavedSettings.getBOOL("DisableTeleportScreens")); 57 childSetValue("disable_tp_screen_check", gSavedSettings.getBOOL("DisableTeleportScreens"));
58 childSetValue("client_name_tag_check", gSavedSettings.getBOOL("ShowClientNameTag")); 58 childSetValue("client_name_tag_check", gSavedSettings.getBOOL("ShowClientNameTag"));
59 childSetValue("windlight_check", gSavedSettings.getBOOL("UseServersideWindlightSettings")); 59 childSetValue("windlight_check", gSavedSettings.getBOOL("UseServersideWindlightSettings"));
60 childSetValue("client_name_tag_broadcast_check", gSavedSettings.getBOOL("ClothingLayerProtection")); 60 childSetValue("client_name_tag_broadcast_check", gSavedSettings.getBOOL("ShowMyClientTagToOthers"));
61 childSetValue("http_texture_check", gSavedSettings.getBOOL("ImagePipelineUseHTTP")); 61 childSetValue("http_texture_check", gSavedSettings.getBOOL("ImagePipelineUseHTTP"));
62 childSetValue("speed_rez_check", gSavedSettings.getBOOL("SpeedRez")); 62 childSetValue("speed_rez_check", gSavedSettings.getBOOL("SpeedRez"));
63 childSetValue("speed_rez_interval_spinner", (F32)gSavedSettings.getU32("SpeedRezInterval")); 63 childSetValue("speed_rez_interval_spinner", (F32)gSavedSettings.getU32("SpeedRezInterval"));
@@ -81,8 +81,16 @@ void LLPrefsAdvanced::apply()
81 gSavedSettings.setBOOL("UseServersideWindlightSettings", childGetValue("windlight_check")); 81 gSavedSettings.setBOOL("UseServersideWindlightSettings", childGetValue("windlight_check"));
82 82
83 // Need to force a rebake when ClothingLayerProtection toggled for it take effect -- MC 83 // Need to force a rebake when ClothingLayerProtection toggled for it take effect -- MC
84 if (gSavedSettings.getBOOL("ClothingLayerProtection") != (BOOL)childGetValue("client_name_tag_broadcast_check")) 84 if (gSavedSettings.getBOOL("ShowMyClientTagToOthers") != (BOOL)childGetValue("client_name_tag_broadcast_check"))
85 { 85 {
86 if(gSavedSettings.getBOOL("ShowMyClientTagToOthers"))
87 {
88 //ShowMyClientTagToOthers works only with ClothingLayerProtection true,
89 //while not showing also works with ClothingLayerProtection false.
90 //since ClothingLayerProtection true is preferrable only switch ON
91 gSavedSettings.setBOOL("ClothingLayerProtection", TRUE);
92 }
93
86 LLVOAvatar* avatar = gAgent.getAvatarObject(); 94 LLVOAvatar* avatar = gAgent.getAvatarObject();
87 if (avatar) 95 if (avatar)
88 { 96 {
@@ -91,7 +99,7 @@ void LLPrefsAdvanced::apply()
91 avatar->forceBakeAllTextures(slam_for_debug); 99 avatar->forceBakeAllTextures(slam_for_debug);
92 } 100 }
93 } 101 }
94 gSavedSettings.setBOOL("ClothingLayerProtection", childGetValue("client_name_tag_broadcast_check")); 102 gSavedSettings.setBOOL("ShowMyClientTagToOthers", childGetValue("client_name_tag_broadcast_check"));
95 103
96 // This is bad bad BAD UI from Emerald, I know. 104 // This is bad bad BAD UI from Emerald, I know.
97 // If anyone wants to do this better, please do -- MC 105 // If anyone wants to do this better, please do -- MC