diff options
author | McCabe Maxsted | 2009-06-13 07:05:13 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-06-13 07:05:13 -0700 |
commit | 3e47e61a5d88cdaadc34bc6ad4787c0a9d405b2e (patch) | |
tree | e3ca6544a945cbc3b8b66f2a44af039cd15820d2 /linden/indra/newview/llworldmapview.cpp | |
parent | Forgot tooltip for map opening, fixed typo (diff) | |
download | meta-impy-3e47e61a5d88cdaadc34bc6ad4787c0a9d405b2e.zip meta-impy-3e47e61a5d88cdaadc34bc6ad4787c0a9d405b2e.tar.gz meta-impy-3e47e61a5d88cdaadc34bc6ad4787c0a9d405b2e.tar.bz2 meta-impy-3e47e61a5d88cdaadc34bc6ad4787c0a9d405b2e.tar.xz |
Show muted avatars as grey in the mini-map
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llworldmapview.cpp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/linden/indra/newview/llworldmapview.cpp b/linden/indra/newview/llworldmapview.cpp index 73c2d8b..b6f75bc 100644 --- a/linden/indra/newview/llworldmapview.cpp +++ b/linden/indra/newview/llworldmapview.cpp | |||
@@ -49,6 +49,7 @@ | |||
49 | #include "llfloatermap.h" | 49 | #include "llfloatermap.h" |
50 | #include "llfloaterworldmap.h" | 50 | #include "llfloaterworldmap.h" |
51 | #include "llfocusmgr.h" | 51 | #include "llfocusmgr.h" |
52 | //#include "llmutelist.h" info not being sent | ||
52 | #include "lltextbox.h" | 53 | #include "lltextbox.h" |
53 | #include "lltextureview.h" | 54 | #include "lltextureview.h" |
54 | #include "lltracker.h" | 55 | #include "lltracker.h" |
@@ -866,7 +867,9 @@ void LLWorldMapView::drawAgents() | |||
866 | F32 agents_scale = (gMapScale * 0.9f) / 256.f; | 867 | F32 agents_scale = (gMapScale * 0.9f) / 256.f; |
867 | 868 | ||
868 | LLColor4 avatar_color = gColors.getColor( "MapAvatar" ); | 869 | LLColor4 avatar_color = gColors.getColor( "MapAvatar" ); |
869 | LLColor4 friend_color = gColors.getColor( "MapFriend" ); | 870 | /*LLColor4 friend_color = gColors.getColor( "MapFriend" ); |
871 | LLColor4 muted_color = gColors.getColor( "MapMuted" ); | ||
872 | LLColor4 glyph_color;*/ | ||
870 | 873 | ||
871 | for (handle_list_t::iterator iter = mVisibleRegions.begin(); iter != mVisibleRegions.end(); ++iter) | 874 | for (handle_list_t::iterator iter = mVisibleRegions.begin(); iter != mVisibleRegions.end(); ++iter) |
872 | { | 875 | { |
@@ -889,7 +892,18 @@ void LLWorldMapView::drawAgents() | |||
889 | S32 agent_count = info.mExtra; | 892 | S32 agent_count = info.mExtra; |
890 | sim_agent_count += info.mExtra; | 893 | sim_agent_count += info.mExtra; |
891 | // Here's how we'd choose the color if info.mID were available but it's not being sent: | 894 | // Here's how we'd choose the color if info.mID were available but it's not being sent: |
892 | //LLColor4 color = (agent_count == 1 && is_agent_friend(info.mID)) ? friend_color : avatar_color; | 895 | /*if (agent_count == 1 && LLMuteList::getInstance()->isMuted(info.mID)) |
896 | { | ||
897 | glyph_color = muted_color; | ||
898 | } | ||
899 | else if (agent_count == 1 && is_agent_friend(info.mID)) | ||
900 | { | ||
901 | glyph_color = friend_color; | ||
902 | } | ||
903 | else | ||
904 | { | ||
905 | glyph_color = avatar_color; | ||
906 | }*/ | ||
893 | drawImageStack(info.mPosGlobal, sAvatarSmallImage, agent_count, 3.f, avatar_color); | 907 | drawImageStack(info.mPosGlobal, sAvatarSmallImage, agent_count, 3.f, avatar_color); |
894 | } | 908 | } |
895 | LLWorldMap::getInstance()->mNumAgents[handle] = sim_agent_count; // override mNumAgents for this sim | 909 | LLWorldMap::getInstance()->mNumAgents[handle] = sim_agent_count; // override mNumAgents for this sim |
@@ -905,7 +919,7 @@ void LLWorldMapView::drawAgents() | |||
905 | region_center[VY] += REGION_WIDTH_METERS / 2; | 919 | region_center[VY] += REGION_WIDTH_METERS / 2; |
906 | // Reduce the stack size as you zoom out - always display at lease one agent where there is one or more | 920 | // Reduce the stack size as you zoom out - always display at lease one agent where there is one or more |
907 | S32 agent_count = (S32)(((num_agents-1) * agents_scale + (num_agents-1) * 0.1f)+.1f) + 1; | 921 | S32 agent_count = (S32)(((num_agents-1) * agents_scale + (num_agents-1) * 0.1f)+.1f) + 1; |
908 | drawImageStack(region_center, sAvatarSmallImage, agent_count, 3.f, glyph_color_avatar); | 922 | drawImageStack(region_center, sAvatarSmallImage, agent_count, 3.f, avatar_color); |
909 | } | 923 | } |
910 | } | 924 | } |
911 | } | 925 | } |