summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2015-08-26 16:57:28 -0400
committerOz Linden <oz@lindenlab.com>2015-08-26 16:57:28 -0400
commitc50aab4a265643d9d03ae4d0066f853fc5d996eb (patch)
tree1b7b1adb3d093c58aa0b607cc8629d2f8b0007fd
parent712a4e70c81c1908e4e7668ff1695a9415ec4b71 (diff)
refine messages per MAINT-5376 (no percentage)
-rwxr-xr-xindra/newview/app_settings/settings.xml11
-rw-r--r--indra/newview/llavatarrendernotifier.cpp38
-rw-r--r--indra/newview/llavatarrendernotifier.h1
-rwxr-xr-xindra/newview/skins/default/xui/en/notifications.xml3
-rwxr-xr-xindra/newview/skins/default/xui/en/strings.xml7
5 files changed, 50 insertions, 10 deletions
diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml
index 800af06cf3..405848edc8 100755
--- a/indra/newview/app_settings/settings.xml
+++ b/indra/newview/app_settings/settings.xml
@@ -8276,7 +8276,7 @@
<key>RenderComplexityColorMin</key>
<map>
<key>Comment</key>
- <string>Max visual complexity of avatars in a scene</string>
+ <string>Unused obsolete setting</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
@@ -8292,7 +8292,7 @@
<key>RenderComplexityColorMid</key>
<map>
<key>Comment</key>
- <string>Max visual complexity of avatars in a scene</string>
+ <string>Unused obsolete setting</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
@@ -8308,7 +8308,7 @@
<key>RenderComplexityColorMax</key>
<map>
<key>Comment</key>
- <string>Max visual complexity of avatars in a scene</string>
+ <string>Unused obsolete setting</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
@@ -8324,7 +8324,7 @@
<key>RenderComplexityThreshold</key>
<map>
<key>Comment</key>
- <string>Only color objects higher than render threshold</string>
+ <string>Unused obsolete setting</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
@@ -8335,8 +8335,7 @@
<key>RenderComplexityStaticMax</key>
<map>
<key>Comment</key>
- <string>Sets a static max value for scaling of RenderComplexity
- display (-1 for dynamic scaling)</string>
+ <string>Unused obsolete setting</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
diff --git a/indra/newview/llavatarrendernotifier.cpp b/indra/newview/llavatarrendernotifier.cpp
index 2596035f95..0741206160 100644
--- a/indra/newview/llavatarrendernotifier.cpp
+++ b/indra/newview/llavatarrendernotifier.cpp
@@ -38,6 +38,7 @@
#include "llnotificationtemplate.h"
#include "lltimer.h"
#include "llviewercontrol.h"
+#include "lltrans.h"
// associated header
#include "llavatarrendernotifier.h"
@@ -58,6 +59,38 @@ mShowOverLimitAgents(false)
{
}
+std::string LLAvatarRenderNotifier::overLimitMessage()
+{
+
+ static const char* not_everyone = "av_render_not_everyone";
+ static const char* over_half = "av_render_over_half";
+ static const char* most = "av_render_most_of";
+ static const char* anyone = "av_render_anyone";
+
+ std::string message;
+ if ( mLatestOverLimitPct >= 99.0 )
+ {
+ message = anyone;
+ }
+ else if ( mLatestOverLimitPct >= 75.0 )
+ {
+ message = most;
+ }
+ else if ( mLatestOverLimitPct >= 50.0 )
+ {
+ message = over_half;
+ }
+ else if ( mLatestOverLimitPct > 10.0 )
+ {
+ message = not_everyone;
+ }
+ else
+ {
+ // message is left empty
+ }
+ return LLTrans::getString(message);
+}
+
void LLAvatarRenderNotifier::displayNotification()
{
static LLCachedControl<U32> expire_delay(gSavedSettings, "ShowMyComplexityChanges", 20);
@@ -66,10 +99,11 @@ void LLAvatarRenderNotifier::displayNotification()
LLSD args;
args["AGENT_COMPLEXITY"] = LLSD::Integer(mLatestAgentComplexity);
std::string notification_name;
- if (mShowOverLimitAgents)
+ std::string notification_message = overLimitMessage();
+ if (mShowOverLimitAgents && !notification_message.empty())
{
notification_name = "RegionAndAgentComplexity";
- args["OVERLIMIT_PCT"] = LLSD::Integer(mLatestOverLimitPct);
+ args["OVERLIMIT_MSG"] = notification_message;
}
else
{
diff --git a/indra/newview/llavatarrendernotifier.h b/indra/newview/llavatarrendernotifier.h
index 264c616543..d4de5ca87f 100644
--- a/indra/newview/llavatarrendernotifier.h
+++ b/indra/newview/llavatarrendernotifier.h
@@ -68,6 +68,7 @@ private:
F32 mLatestOverLimitPct;
bool mShowOverLimitAgents;
+ std::string overLimitMessage();
};
#endif /* ! defined(LL_llavatarrendernotifier_H) */
diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml
index 97c4c924e7..e603e0aebe 100755
--- a/indra/newview/skins/default/xui/en/notifications.xml
+++ b/indra/newview/skins/default/xui/en/notifications.xml
@@ -3302,8 +3302,7 @@ You can use [SECOND_LIFE] normally and other people will see you correctly.
<context>AgentComplexityNotice</context>
</unique>
Your visual complexity is [AGENT_COMPLEXITY].
-[OVERLIMIT_PCT]% of nearby users may not fully show you
-with complexity this high.
+[OVERLIMIT_MSG]
</notification>
<notification
diff --git a/indra/newview/skins/default/xui/en/strings.xml b/indra/newview/skins/default/xui/en/strings.xml
index 011a25c414..d61511f60f 100755
--- a/indra/newview/skins/default/xui/en/strings.xml
+++ b/indra/newview/skins/default/xui/en/strings.xml
@@ -2488,6 +2488,13 @@ This feature is currently in Beta. Please add your name to this [http://goo.gl/f
<string name="DaysOld">[AGEDAYS] old</string>
<string name="TodayOld">Joined today</string>
+ <!-- Avatar complexity rendering messages, see
+ llavatarrendernotifier -->
+ <string name="av_render_not_everyone">You may not be rendered by everyone around you.</string>
+ <string name="av_render_over_half">You may not be rendered by over half of those around you.</string>
+ <string name="av_render_most_of">You may not be rendered by most of those around you.</string>
+ <string name="av_render_anyone">You may not be rendered by anyone around you.</string>
+
<!-- AgeYearsA = singular,
AgeYearsB = plural,
AgeYearsC = plural for non-English languages like Russian