diff options
author | Jacek Antonelli | 2008-12-17 01:24:37 -0600 |
---|---|---|
committer | Jacek Antonelli | 2008-12-17 01:24:37 -0600 |
commit | a3b0b6c299f791b3d8132d36a3d4c1790aea86b1 (patch) | |
tree | 07d9080e0f71845fdf07f666907422b2fe6c4a3f /linden/indra/newview/llworldmapview.cpp | |
parent | Use NType to find inventory icon name (part 2 of 2). (diff) | |
parent | VWR-1582: Local ruler mode wrong for linked objects. (diff) | |
download | meta-impy-a3b0b6c299f791b3d8132d36a3d4c1790aea86b1.zip meta-impy-a3b0b6c299f791b3d8132d36a3d4c1790aea86b1.tar.gz meta-impy-a3b0b6c299f791b3d8132d36a3d4c1790aea86b1.tar.bz2 meta-impy-a3b0b6c299f791b3d8132d36a3d4c1790aea86b1.tar.xz |
Merge 1.1.0 alpha into quickfilter
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llworldmapview.cpp | 8 |
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 | } |