diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml
index 60288db0b9..66c254fd3c 100755
--- a/indra/newview/app_settings/settings.xml
+++ b/indra/newview/app_settings/settings.xml
@@ -17045,6 +17045,17 @@ Change of this parameter will affect the layout of buttons in notification toast
Value
0
+ FSTagShowDistanceColors
+
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index aec9444ad1..4dc9fb110b 100644
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -3153,6 +3153,30 @@ void LLVOAvatar::idleUpdateNameTagText(BOOL new_name)
name_tag_color = mClientTagData["color"];
}
+ // Color name tags based on distance
+ static LLCachedControl show_distance_color_tag(gSavedSettings, "FSTagShowDistanceColors");
+ static LLUIColor tag_chat_color = LLUIColorTable::instance().getColor("NameTagChatDistanceColor", LLColor4::green);
+ static LLUIColor tag_shout_color = LLUIColorTable::instance().getColor("NameTagShoutDistanceColor", LLColor4::yellow);
+ static LLUIColor tag_beyond_shout_color = LLUIColorTable::instance().getColor("NameTagBeyondShoutDistanceColor", LLColor4::red);
+
+ if (show_distance_color_tag && !isSelf() && !(show_friends && (is_friend || LGGContactSets::getInstance()->hasFriendColorThatShouldShow(getID(),FALSE,TRUE))))
+ {
+ F64 distance = dist_vec(getPositionGlobal(), gAgent.getPositionGlobal());
+ if (distance < 20.f)
+ {
+ name_tag_color = tag_chat_color;
+ }
+ else if (distance < 100.f)
+ {
+ name_tag_color = tag_shout_color;
+ }
+ else
+ {
+ name_tag_color = tag_beyond_shout_color;
+ }
+ }
+ //
+
// Rebuild name tag if state change detected
if (mNameString.empty()
|| new_name
diff --git a/indra/newview/skins/default/colors.xml b/indra/newview/skins/default/colors.xml
index e601e05fcc..62fdd04ccd 100644
--- a/indra/newview/skins/default/colors.xml
+++ b/indra/newview/skins/default/colors.xml
@@ -797,6 +797,15 @@
+
+
+
diff --git a/indra/newview/skins/default/xui/de/panel_preferences_firestorm.xml b/indra/newview/skins/default/xui/de/panel_preferences_firestorm.xml
index 9bf63fdca8..17a7a03ddf 100644
--- a/indra/newview/skins/default/xui/de/panel_preferences_firestorm.xml
+++ b/indra/newview/skins/default/xui/de/panel_preferences_firestorm.xml
@@ -267,6 +267,16 @@
+
+
+ Chat-Reichweite
+
+
+ Ruf-Reichweite
+
+
+ Außerhalb Ruf-Reichweite
+
diff --git a/indra/newview/skins/default/xui/en/panel_preferences_firestorm.xml b/indra/newview/skins/default/xui/en/panel_preferences_firestorm.xml
index d9d8a4c683..613a6d2b9c 100644
--- a/indra/newview/skins/default/xui/en/panel_preferences_firestorm.xml
+++ b/indra/newview/skins/default/xui/en/panel_preferences_firestorm.xml
@@ -1585,9 +1585,117 @@
name="usernamecolorswatch"
tool_tip="Click to open color picker"/>
-
+
+
+
+
+
+
+
+ Chat range
+
+
+
+
+
+
+
+ Shout range
+
+
+
+
+
+
+
+ Beyond Shout range
+
+
+