diff options
Diffstat (limited to 'linden/indra/newview')
-rw-r--r-- | linden/indra/newview/llnetmap.cpp | 30 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/textures/map_avatar_32.tga | bin | 0 -> 2894 bytes | |||
-rw-r--r-- | linden/indra/newview/skins/default/textures/map_avatar_above_32.tga | bin | 0 -> 2909 bytes | |||
-rw-r--r-- | linden/indra/newview/skins/default/textures/map_avatar_below_32.tga | bin | 0 -> 3037 bytes | |||
-rw-r--r-- | linden/indra/newview/skins/default/textures/map_avatar_you_32.tga | bin | 0 -> 3395 bytes |
5 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) |
diff --git a/linden/indra/newview/skins/default/textures/map_avatar_32.tga b/linden/indra/newview/skins/default/textures/map_avatar_32.tga new file mode 100644 index 0000000..aebeab4 --- /dev/null +++ b/linden/indra/newview/skins/default/textures/map_avatar_32.tga | |||
Binary files differ | |||
diff --git a/linden/indra/newview/skins/default/textures/map_avatar_above_32.tga b/linden/indra/newview/skins/default/textures/map_avatar_above_32.tga new file mode 100644 index 0000000..65bd056 --- /dev/null +++ b/linden/indra/newview/skins/default/textures/map_avatar_above_32.tga | |||
Binary files differ | |||
diff --git a/linden/indra/newview/skins/default/textures/map_avatar_below_32.tga b/linden/indra/newview/skins/default/textures/map_avatar_below_32.tga new file mode 100644 index 0000000..496c44b --- /dev/null +++ b/linden/indra/newview/skins/default/textures/map_avatar_below_32.tga | |||
Binary files differ | |||
diff --git a/linden/indra/newview/skins/default/textures/map_avatar_you_32.tga b/linden/indra/newview/skins/default/textures/map_avatar_you_32.tga new file mode 100644 index 0000000..782207e --- /dev/null +++ b/linden/indra/newview/skins/default/textures/map_avatar_you_32.tga | |||
Binary files differ | |||