aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llworldmapview.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2008-11-22 13:18:13 -0700
committerMcCabe Maxsted2008-11-22 13:18:13 -0700
commitc782860f23e11dc46af043ac16d4209b0853bbb6 (patch)
tree9cb4344cff820d5d154f49203e21507535e1fdcc /linden/indra/newview/llworldmapview.cpp
parentFriends dots show as yellow and color can be set in colors.xml (diff)
downloadmeta-impy-c782860f23e11dc46af043ac16d4209b0853bbb6.zip
meta-impy-c782860f23e11dc46af043ac16d4209b0853bbb6.tar.gz
meta-impy-c782860f23e11dc46af043ac16d4209b0853bbb6.tar.bz2
meta-impy-c782860f23e11dc46af043ac16d4209b0853bbb6.tar.xz
Friends dots show as yellow and color can be set in colors.xml
Diffstat (limited to 'linden/indra/newview/llworldmapview.cpp')
-rw-r--r--linden/indra/newview/llworldmapview.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/linden/indra/newview/llworldmapview.cpp b/linden/indra/newview/llworldmapview.cpp
index 92d9588..0d266dd 100644
--- a/linden/indra/newview/llworldmapview.cpp
+++ b/linden/indra/newview/llworldmapview.cpp
@@ -208,6 +208,8 @@ LLWorldMapView::LLWorldMapView(const std::string& name, const LLRect& rect )
208 mTextBoxNorthWest = new LLTextBox( std::string("NW"), minor_dir_rect ); 208 mTextBoxNorthWest = new LLTextBox( std::string("NW"), minor_dir_rect );
209 mTextBoxNorthWest->setColor( minor_color ); 209 mTextBoxNorthWest->setColor( minor_color );
210 addChild( mTextBoxNorthWest ); 210 addChild( mTextBoxNorthWest );
211
212 glyph_color_avatar = gColors.getColor("NetMapGlyphColorAvatar");
211} 213}
212 214
213 215
@@ -886,8 +888,8 @@ void LLWorldMapView::drawAgents()
886 S32 agent_count = info.mExtra; 888 S32 agent_count = info.mExtra;
887 sim_agent_count += info.mExtra; 889 sim_agent_count += info.mExtra;
888 // Here's how we'd choose the color if info.mID were available but it's not being sent: 890 // Here's how we'd choose the color if info.mID were available but it's not being sent:
889 //LLColor4 color = (agent_count == 1 && is_agent_friend(info.mID)) ? gFriendMapColor : gAvatarMapColor; 891 //LLColor4 color = (agent_count == 1 && is_agent_friend(info.mID)) ? glyph_color_friend : glyph_color_avatar;
890 drawImageStack(info.mPosGlobal, sAvatarSmallImage, agent_count, 3.f, gAvatarMapColor); 892 drawImageStack(info.mPosGlobal, sAvatarSmallImage, agent_count, 3.f, glyph_color_avatar);
891 } 893 }
892 LLWorldMap::getInstance()->mNumAgents[handle] = sim_agent_count; // override mNumAgents for this sim 894 LLWorldMap::getInstance()->mNumAgents[handle] = sim_agent_count; // override mNumAgents for this sim
893 } 895 }
@@ -902,7 +904,7 @@ void LLWorldMapView::drawAgents()
902 region_center[VY] += REGION_WIDTH_METERS / 2; 904 region_center[VY] += REGION_WIDTH_METERS / 2;
903 // Reduce the stack size as you zoom out - always display at lease one agent where there is one or more 905 // Reduce the stack size as you zoom out - always display at lease one agent where there is one or more
904 S32 agent_count = (S32)(((num_agents-1) * agents_scale + (num_agents-1) * 0.1f)+.1f) + 1; 906 S32 agent_count = (S32)(((num_agents-1) * agents_scale + (num_agents-1) * 0.1f)+.1f) + 1;
905 drawImageStack(region_center, sAvatarSmallImage, agent_count, 3.f, gAvatarMapColor); 907 drawImageStack(region_center, sAvatarSmallImage, agent_count, 3.f, glyph_color_avatar);
906 } 908 }
907 } 909 }
908 } 910 }