diff options
author | McCabe Maxsted | 2009-09-22 13:50:20 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-09-22 13:50:20 -0700 |
commit | b8d46a1c011351352ff2edf16912c3ee7e9cb883 (patch) | |
tree | 65b943fdc76e4f217b4f10c951208c8a1502ebc9 /linden/indra/newview/llnetmap.cpp | |
parent | Merged 1.2.0-minimap-magnify into 1.2.0-radarzoom (diff) | |
download | meta-impy-b8d46a1c011351352ff2edf16912c3ee7e9cb883.zip meta-impy-b8d46a1c011351352ff2edf16912c3ee7e9cb883.tar.gz meta-impy-b8d46a1c011351352ff2edf16912c3ee7e9cb883.tar.bz2 meta-impy-b8d46a1c011351352ff2edf16912c3ee7e9cb883.tar.xz |
Display selected avatars larger than normal, zoom in at a reasonable speed. Included missing artwork
Diffstat (limited to 'linden/indra/newview/llnetmap.cpp')
-rw-r--r-- | linden/indra/newview/llnetmap.cpp | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/linden/indra/newview/llnetmap.cpp b/linden/indra/newview/llnetmap.cpp index b8bf0cb..cac35b9 100644 --- a/linden/indra/newview/llnetmap.cpp +++ b/linden/indra/newview/llnetmap.cpp | |||
@@ -73,7 +73,7 @@ const F32 MAP_SCALE_MIN = 32; | |||
73 | const F32 MAP_SCALE_MID = 1024; | 73 | const F32 MAP_SCALE_MID = 1024; |
74 | const F32 MAP_SCALE_MAX = 4096; | 74 | const F32 MAP_SCALE_MAX = 4096; |
75 | const F32 MAP_SCALE_INCREMENT = 16; | 75 | const F32 MAP_SCALE_INCREMENT = 16; |
76 | const F32 MAP_SCALE_ZOOM_FACTOR = 1.04f; // Zoom in factor per click of the scroll wheel (4%) | 76 | const F32 MAP_SCALE_ZOOM_FACTOR = 1.25f; // Zoom in factor per click of the scroll wheel (25%) |
77 | const F32 MAP_MINOR_DIR_THRESHOLD = 0.08f; | 77 | const F32 MAP_MINOR_DIR_THRESHOLD = 0.08f; |
78 | const F32 MIN_DOT_RADIUS = 3.5f; | 78 | const F32 MIN_DOT_RADIUS = 3.5f; |
79 | const F32 DOT_SCALE = 0.75f; | 79 | const F32 DOT_SCALE = 0.75f; |
@@ -345,6 +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 | 349 | ||
349 | std::vector<LLUUID> avatar_ids; | 350 | std::vector<LLUUID> avatar_ids; |
350 | std::vector<LLVector3d> positions; | 351 | std::vector<LLVector3d> positions; |
@@ -357,20 +358,25 @@ void LLNetMap::draw() | |||
357 | 358 | ||
358 | if (LLFloaterMap::getSelected() == avatar_ids[i]) | 359 | if (LLFloaterMap::getSelected() == avatar_ids[i]) |
359 | { | 360 | { |
361 | glyph_radius = mDotRadius * 1.7f; | ||
360 | glyph_color = selected_color; | 362 | glyph_color = selected_color; |
361 | } | 363 | } |
362 | // Show them muted even if they're friends | ||
363 | else if (LLMuteList::getInstance()->isMuted(avatar_ids[i])) | ||
364 | { | ||
365 | glyph_color = muted_color; | ||
366 | } | ||
367 | else if (is_agent_friend(avatar_ids[i])) | ||
368 | { | ||
369 | glyph_color = friend_color; | ||
370 | } | ||
371 | else | 364 | else |
372 | { | 365 | { |
373 | glyph_color = avatar_color; | 366 | glyph_radius = mDotRadius; |
367 | // Show them muted even if they're friends | ||
368 | if (LLMuteList::getInstance()->isMuted(avatar_ids[i])) | ||
369 | { | ||
370 | glyph_color = muted_color; | ||
371 | } | ||
372 | else if (is_agent_friend(avatar_ids[i])) | ||
373 | { | ||
374 | glyph_color = friend_color; | ||
375 | } | ||
376 | else | ||
377 | { | ||
378 | glyph_color = avatar_color; | ||
379 | } | ||
374 | } | 380 | } |
375 | 381 | ||
376 | // [RLVa:KB] | 382 | // [RLVa:KB] |
@@ -386,7 +392,7 @@ void LLNetMap::draw() | |||
386 | pos_map.mV[VX], pos_map.mV[VY], | 392 | pos_map.mV[VX], pos_map.mV[VY], |
387 | glyph_color, | 393 | glyph_color, |
388 | pos_map.mV[VZ], | 394 | pos_map.mV[VZ], |
389 | mDotRadius); | 395 | glyph_radius); |
390 | 396 | ||
391 | 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)); |
392 | 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) |