diff options
Diffstat (limited to 'linden/indra')
-rw-r--r-- | linden/indra/newview/llnetmap.cpp | 31 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/colors_base.xml | 2 | ||||
-rw-r--r-- | linden/indra/newview/skins/silver/colors_base.xml | 1 |
3 files changed, 28 insertions, 6 deletions
diff --git a/linden/indra/newview/llnetmap.cpp b/linden/indra/newview/llnetmap.cpp index f055dbc..dc4a4ae 100644 --- a/linden/indra/newview/llnetmap.cpp +++ b/linden/indra/newview/llnetmap.cpp | |||
@@ -345,7 +345,7 @@ void LLNetMap::draw() | |||
345 | LLColor4 muted_color = gColors.getColor( "MapMuted" ); | 345 | LLColor4 muted_color = gColors.getColor( "MapMuted" ); |
346 | LLColor4 selected_color = gColors.getColor( "MapSelected" ); | 346 | LLColor4 selected_color = gColors.getColor( "MapSelected" ); |
347 | LLColor4 glyph_color; | 347 | LLColor4 glyph_color; |
348 | F32 glyph_radius; | 348 | int selected = -1; |
349 | 349 | ||
350 | std::vector<LLUUID> avatar_ids; | 350 | std::vector<LLUUID> avatar_ids; |
351 | std::vector<LLVector3d> positions; | 351 | std::vector<LLVector3d> positions; |
@@ -356,14 +356,14 @@ void LLNetMap::draw() | |||
356 | // just be careful to sort the avatar IDs along with the positions. -MG | 356 | // just be careful to sort the avatar IDs along with the positions. -MG |
357 | pos_map = globalPosToView(positions[i], rotate_map); | 357 | pos_map = globalPosToView(positions[i], rotate_map); |
358 | 358 | ||
359 | // Save this entry to draw last | ||
359 | if (LLFloaterMap::getSelected() == avatar_ids[i]) | 360 | if (LLFloaterMap::getSelected() == avatar_ids[i]) |
360 | { | 361 | { |
361 | glyph_radius = mDotRadius * 1.7f; | 362 | selected = i; |
362 | glyph_color = selected_color; | 363 | continue; |
363 | } | 364 | } |
364 | else | 365 | else |
365 | { | 366 | { |
366 | glyph_radius = mDotRadius; | ||
367 | // Show them muted even if they're friends | 367 | // Show them muted even if they're friends |
368 | if (LLMuteList::getInstance()->isMuted(avatar_ids[i])) | 368 | if (LLMuteList::getInstance()->isMuted(avatar_ids[i])) |
369 | { | 369 | { |
@@ -392,7 +392,7 @@ void LLNetMap::draw() | |||
392 | pos_map.mV[VX], pos_map.mV[VY], | 392 | pos_map.mV[VX], pos_map.mV[VY], |
393 | glyph_color, | 393 | glyph_color, |
394 | pos_map.mV[VZ], | 394 | pos_map.mV[VZ], |
395 | glyph_radius); | 395 | mDotRadius); |
396 | 396 | ||
397 | F32 dist_to_cursor = dist_vec(LLVector2(pos_map.mV[VX], pos_map.mV[VY]), LLVector2(local_mouse_x,local_mouse_y)); | 397 | F32 dist_to_cursor = dist_vec(LLVector2(pos_map.mV[VX], pos_map.mV[VY]), LLVector2(local_mouse_x,local_mouse_y)); |
398 | if(dist_to_cursor < min_pick_dist && dist_to_cursor < closest_dist) | 398 | if(dist_to_cursor < min_pick_dist && dist_to_cursor < closest_dist) |
@@ -402,6 +402,27 @@ void LLNetMap::draw() | |||
402 | } | 402 | } |
403 | } | 403 | } |
404 | 404 | ||
405 | // Draw dot for selected avatar last | ||
406 | if (selected >= 0) | ||
407 | { | ||
408 | pos_map = globalPosToView(positions[selected], rotate_map); | ||
409 | F32 glyph_radius = mDotRadius * 1.7f; | ||
410 | glyph_color = selected_color; | ||
411 | |||
412 | LLWorldMapView::drawAvatar( | ||
413 | pos_map.mV[VX], pos_map.mV[VY], | ||
414 | glyph_color, | ||
415 | pos_map.mV[VZ], | ||
416 | glyph_radius); | ||
417 | |||
418 | F32 dist_to_cursor = dist_vec(LLVector2(pos_map.mV[VX], pos_map.mV[VY]), LLVector2(local_mouse_x,local_mouse_y)); | ||
419 | if(dist_to_cursor < min_pick_dist && dist_to_cursor < closest_dist) | ||
420 | { | ||
421 | closest_dist = dist_to_cursor; | ||
422 | mClosestAgentToCursor = avatar_ids[selected]; | ||
423 | } | ||
424 | } | ||
425 | |||
405 | // Draw dot for autopilot target | 426 | // Draw dot for autopilot target |
406 | if (gAgent.getAutoPilot()) | 427 | if (gAgent.getAutoPilot()) |
407 | { | 428 | { |
diff --git a/linden/indra/newview/skins/default/colors_base.xml b/linden/indra/newview/skins/default/colors_base.xml index 8f0fc29..854c027 100644 --- a/linden/indra/newview/skins/default/colors_base.xml +++ b/linden/indra/newview/skins/default/colors_base.xml | |||
@@ -162,7 +162,7 @@ | |||
162 | <MapAvatar value="0, 255, 0, 255" /> <!-- Your avatar's glyph color --> | 162 | <MapAvatar value="0, 255, 0, 255" /> <!-- Your avatar's glyph color --> |
163 | <MapFriend value="255, 255, 0, 255" /> <!-- Your friends' glyph color --> | 163 | <MapFriend value="255, 255, 0, 255" /> <!-- Your friends' glyph color --> |
164 | <MapMuted value="128, 128, 128, 255" /> <!-- Muted avatars' glyph color --> | 164 | <MapMuted value="128, 128, 128, 255" /> <!-- Muted avatars' glyph color --> |
165 | <MapSelected value="255, 0, 0, 255" /> <!-- Selected avatars' glyph color --> | 165 | <MapSelected value="255, 0, 0, 255" /> <!-- Selected avatars' glyph color --> |
166 | 166 | ||
167 | <!-- MINI-MAP --> | 167 | <!-- MINI-MAP --> |
168 | <NetMapBackgroundColor value="0, 0, 0, 77" /> <!-- Mini-map floater background --> | 168 | <NetMapBackgroundColor value="0, 0, 0, 77" /> <!-- Mini-map floater background --> |
diff --git a/linden/indra/newview/skins/silver/colors_base.xml b/linden/indra/newview/skins/silver/colors_base.xml index 6a94489..f129230 100644 --- a/linden/indra/newview/skins/silver/colors_base.xml +++ b/linden/indra/newview/skins/silver/colors_base.xml | |||
@@ -162,6 +162,7 @@ | |||
162 | <MapAvatar value="0, 255, 0, 255" /> <!-- Your avatar's glyph color --> | 162 | <MapAvatar value="0, 255, 0, 255" /> <!-- Your avatar's glyph color --> |
163 | <MapFriend value="255, 255, 0, 255" /> <!-- Your friends' glyph color --> | 163 | <MapFriend value="255, 255, 0, 255" /> <!-- Your friends' glyph color --> |
164 | <MapMuted value="128, 128, 128, 255" /> <!-- Muted avatars' glyph color --> | 164 | <MapMuted value="128, 128, 128, 255" /> <!-- Muted avatars' glyph color --> |
165 | <MapSelected value="255, 0, 0, 255" /> <!-- Selected avatars' glyph color --> | ||
165 | 166 | ||
166 | <!-- MINI-MAP --> | 167 | <!-- MINI-MAP --> |
167 | <NetMapBackgroundColor value="0, 0, 0, 77" /> <!-- Mini-map floater background --> | 168 | <NetMapBackgroundColor value="0, 0, 0, 77" /> <!-- Mini-map floater background --> |