diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 220c3f39f2..7af53de223 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -3256,31 +3256,27 @@ void LLVOAvatar::idleUpdateNameTagText(BOOL new_name) // Color name tags based on distance static LLCachedControl show_distance_color_tag(gSavedSettings, "FSTagShowDistanceColors"); static LLCachedControl show_distance_in_tag(gSavedSettings, "FSTagShowDistance"); - // FIRE-6664: Add whisper range to color tags - static LLUIColor tag_whisper_color = LLUIColorTable::instance().getColor("NameTagWhisperDistanceColor", LLColor4::green); - // FIRE-6664: Add whisper range to color tags + // FIRE-6664: Add whisper range to color tags + static LLUIColor tag_whisper_color = LLUIColorTable::instance().getColor("NameTagWhisperDistanceColor", LLColor4::green); + // FIRE-6664: Add whisper range to color tags 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 (!isSelf() && (show_distance_color_tag || show_distance_in_tag)) { - static const F64 CHAT_RANGE_SQUARED = 400.f; - static const F64 SHOUT_RANGE_SQUARED = 10000.f; - F64 distance_squared = dist_vec_squared(getPositionGlobal(), gAgent.getPositionGlobal()); - // FIRE-6664: Add whisper range color tag - if (distance_squared <= CHAT_WHISPER_RADIUS_SQUARED) - { - distance_color = tag_whisper_color; - } - //if (distance_squared <= CHAT_RANGE_SQUARED) - else if (distance_squared <= CHAT_RANGE_SQUARED) - // FIRE-6664: Add whisper range color tag + // FIRE-6664: Add whisper range color tag + if (distance_squared <= CHAT_WHISPER_RADIUS_SQUARED) + { + distance_color = tag_whisper_color; + } + else if (distance_squared <= CHAT_NORMAL_RADIUS_SQUARED) + // FIRE-6664: Add whisper range color tag { distance_color = tag_chat_color; } - else if (distance_squared <= SHOUT_RANGE_SQUARED) + else if (distance_squared <= CHAT_SHOUT_RADIUS_SQUARED) { distance_color = tag_shout_color; } 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 9976e4a1ef..d4784b8c22 100644 --- a/indra/newview/skins/default/xui/de/panel_preferences_firestorm.xml +++ b/indra/newview/skins/default/xui/de/panel_preferences_firestorm.xml @@ -293,12 +293,19 @@ + + + Flüster-Reichweite + + 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 73d14d9999..309dae263c 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_firestorm.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_firestorm.xml @@ -1817,6 +1817,7 @@ top_pad="5" left="40" name="NameTagWhisperDistanceColor_Color_Swatch" + tool_tip="Click to open color picker" width="15"> + width="200"> Whisper range + width="200"> Chat range + top_pad="10"> @@ -1901,7 +1904,7 @@ mouse_opaque="false" name="NameTagShoutDistanceColor_Label" top_delta="3" - width="85"> + width="200"> Shout range + width="200"> Beyond Shout range