aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llnetmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llnetmap.cpp')
-rw-r--r--linden/indra/newview/llnetmap.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/linden/indra/newview/llnetmap.cpp b/linden/indra/newview/llnetmap.cpp
index 8f5d90d..c66e816 100644
--- a/linden/indra/newview/llnetmap.cpp
+++ b/linden/indra/newview/llnetmap.cpp
@@ -45,6 +45,7 @@
45#include "llcolorscheme.h" 45#include "llcolorscheme.h"
46#include "llviewercontrol.h" 46#include "llviewercontrol.h"
47#include "llfloateravatarinfo.h" 47#include "llfloateravatarinfo.h"
48#include "llfloatermap.h"
48#include "llfloaterworldmap.h" 49#include "llfloaterworldmap.h"
49#include "llframetimer.h" 50#include "llframetimer.h"
50#include "llmutelist.h" 51#include "llmutelist.h"
@@ -117,6 +118,11 @@ LLNetMap::LLNetMap(const std::string& name) :
117 mPopupMenuHandle = menu->getHandle(); 118 mPopupMenuHandle = menu->getHandle();
118} 119}
119 120
121BOOL LLNetMap::postBuild()
122{
123 return TRUE;
124}
125
120LLNetMap::~LLNetMap() 126LLNetMap::~LLNetMap()
121{ 127{
122} 128}
@@ -330,6 +336,7 @@ void LLNetMap::draw()
330 LLColor4 avatar_color = gColors.getColor( "MapAvatar" ); 336 LLColor4 avatar_color = gColors.getColor( "MapAvatar" );
331 LLColor4 friend_color = gColors.getColor( "MapFriend" ); 337 LLColor4 friend_color = gColors.getColor( "MapFriend" );
332 LLColor4 muted_color = gColors.getColor( "MapMuted" ); 338 LLColor4 muted_color = gColors.getColor( "MapMuted" );
339 LLColor4 selected_color = gColors.getColor( "MapSelected" );
333 LLColor4 glyph_color; 340 LLColor4 glyph_color;
334 341
335 std::vector<LLUUID> avatar_ids; 342 std::vector<LLUUID> avatar_ids;
@@ -350,6 +357,10 @@ void LLNetMap::draw()
350 { 357 {
351 glyph_color = friend_color; 358 glyph_color = friend_color;
352 } 359 }
360 else if (LLFloaterMap::isSelected(avatar_ids[i]))
361 {
362 glyph_color = selected_color;
363 }
353 else 364 else
354 { 365 {
355 glyph_color = avatar_color; 366 glyph_color = avatar_color;
@@ -460,6 +471,8 @@ void LLNetMap::draw()
460 setDirectionPos( getChild<LLTextBox>("se_label"), rotation + F_PI + F_PI_BY_TWO + F_PI_BY_TWO / 2); 471 setDirectionPos( getChild<LLTextBox>("se_label"), rotation + F_PI + F_PI_BY_TWO + F_PI_BY_TWO / 2);
461 472
462 LLView::draw(); 473 LLView::draw();
474
475 LLFloaterMap::updateRadar();
463} 476}
464 477
465void LLNetMap::reshape(S32 width, S32 height, BOOL called_from_parent) 478void LLNetMap::reshape(S32 width, S32 height, BOOL called_from_parent)