aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llnetmap.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2009-10-29 02:03:04 -0500
committerJacek Antonelli2009-10-29 02:45:02 -0500
commit5969412f5e9342955c79b57a10d3d6f987a06d1c (patch)
tree0eecf3faa609ae2b371641a6ed55de457a0698f9 /linden/indra/newview/llnetmap.cpp
parentMoved radar XML to panel_radar.xml and cleaned it up. (diff)
downloadmeta-impy-5969412f5e9342955c79b57a10d3d6f987a06d1c.zip
meta-impy-5969412f5e9342955c79b57a10d3d6f987a06d1c.tar.gz
meta-impy-5969412f5e9342955c79b57a10d3d6f987a06d1c.tar.bz2
meta-impy-5969412f5e9342955c79b57a10d3d6f987a06d1c.tar.xz
Added PanelRadar class, refactored from LLFloaterMap.
Diffstat (limited to 'linden/indra/newview/llnetmap.cpp')
-rw-r--r--linden/indra/newview/llnetmap.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/linden/indra/newview/llnetmap.cpp b/linden/indra/newview/llnetmap.cpp
index 5aaee1a..64f2fa6 100644
--- a/linden/indra/newview/llnetmap.cpp
+++ b/linden/indra/newview/llnetmap.cpp
@@ -46,6 +46,7 @@
46#include "llviewercontrol.h" 46#include "llviewercontrol.h"
47#include "llfloateravatarinfo.h" 47#include "llfloateravatarinfo.h"
48#include "llfloatermap.h" 48#include "llfloatermap.h"
49#include "panelradar.h"
49#include "llfloaterworldmap.h" 50#include "llfloaterworldmap.h"
50#include "llframetimer.h" 51#include "llframetimer.h"
51#include "llmutelist.h" 52#include "llmutelist.h"
@@ -358,7 +359,7 @@ void LLNetMap::draw()
358 pos_map = globalPosToView(positions[i], rotate_map); 359 pos_map = globalPosToView(positions[i], rotate_map);
359 360
360 // Save this entry to draw last 361 // Save this entry to draw last
361 if (LLFloaterMap::getSelected() == avatar_ids[i]) 362 if (LLFloaterMap::getInstance()->getRadar()->getSelected() == avatar_ids[i])
362 { 363 {
363 selected = i; 364 selected = i;
364 continue; 365 continue;
@@ -370,7 +371,7 @@ void LLNetMap::draw()
370 { 371 {
371 glyph_color = muted_color; 372 glyph_color = muted_color;
372 } 373 }
373 else if (LLFloaterMap::isImpDev(avatar_ids[i])) 374 else if (PanelRadar::isImpDev(avatar_ids[i]))
374 { 375 {
375 glyph_color = imp_dev_color; 376 glyph_color = imp_dev_color;
376 } 377 }
@@ -514,7 +515,7 @@ void LLNetMap::draw()
514 515
515 LLView::draw(); 516 LLView::draw();
516 517
517 LLFloaterMap::updateRadar(); 518 LLFloaterMap::getInstance()->getRadar()->populateRadar();
518} 519}
519 520
520void LLNetMap::reshape(S32 width, S32 height, BOOL called_from_parent) 521void LLNetMap::reshape(S32 width, S32 height, BOOL called_from_parent)