aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-10-02 05:17:31 -0700
committerMcCabe Maxsted2009-10-02 05:17:31 -0700
commit58aab90cbff6035a2e31bde404b8ceda1fc3ca66 (patch)
tree8f24dbe9ba67b4fbc48c2170b6badd42214d8fdf /linden
parentDraw selected avatars last (and fixed silver skin missing selection color) (diff)
downloadmeta-impy-58aab90cbff6035a2e31bde404b8ceda1fc3ca66.zip
meta-impy-58aab90cbff6035a2e31bde404b8ceda1fc3ca66.tar.gz
meta-impy-58aab90cbff6035a2e31bde404b8ceda1fc3ca66.tar.bz2
meta-impy-58aab90cbff6035a2e31bde404b8ceda1fc3ca66.tar.xz
Draw Imprudence developers as purple dots in the mini-map (name list in LLFloaterMap)
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/newview/llfloatermap.cpp15
-rw-r--r--linden/indra/newview/llfloatermap.h2
-rw-r--r--linden/indra/newview/llnetmap.cpp7
-rw-r--r--linden/indra/newview/skins/default/colors_base.xml1
-rw-r--r--linden/indra/newview/skins/silver/colors_base.xml1
5 files changed, 25 insertions, 1 deletions
diff --git a/linden/indra/newview/llfloatermap.cpp b/linden/indra/newview/llfloatermap.cpp
index 6d23ab4..c60f07f 100644
--- a/linden/indra/newview/llfloatermap.cpp
+++ b/linden/indra/newview/llfloatermap.cpp
@@ -194,6 +194,21 @@ void LLFloaterMap::open()
194*/ 194*/
195 195
196//static 196//static
197bool LLFloaterMap::isImpDev(LLUUID agent_id)
198{
199 // We use strings here as avatar keys change across grids.
200 // Feel free to add/remove yourself.
201 std::string agent_name = getSelectedName(agent_id);
202 if (agent_name == "McCabe Maxsted" ||
203 agent_name == "Jacek Antonelli" ||
204 agent_name == "Armin Weatherwax")
205 {
206 return true;
207 }
208 return false;
209}
210
211//static
197void LLFloaterMap::updateRadar() 212void LLFloaterMap::updateRadar()
198{ 213{
199 LLFloaterMap::getInstance()->populateRadar(); 214 LLFloaterMap::getInstance()->populateRadar();
diff --git a/linden/indra/newview/llfloatermap.h b/linden/indra/newview/llfloatermap.h
index 81e4159..349b0e6 100644
--- a/linden/indra/newview/llfloatermap.h
+++ b/linden/indra/newview/llfloatermap.h
@@ -49,6 +49,8 @@ public:
49 49
50 static void updateRadar(); 50 static void updateRadar();
51 static LLUUID getSelected(); 51 static LLUUID getSelected();
52 // returns true if agent_id belongs to a developer listed in llfloatermap.cpp
53 static bool isImpDev(LLUUID agent_id);
52 54
53 BOOL postBuild(); 55 BOOL postBuild();
54 56
diff --git a/linden/indra/newview/llnetmap.cpp b/linden/indra/newview/llnetmap.cpp
index dc4a4ae..5aaee1a 100644
--- a/linden/indra/newview/llnetmap.cpp
+++ b/linden/indra/newview/llnetmap.cpp
@@ -344,6 +344,7 @@ void LLNetMap::draw()
344 LLColor4 friend_color = gColors.getColor( "MapFriend" ); 344 LLColor4 friend_color = gColors.getColor( "MapFriend" );
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 imp_dev_color = gColors.getColor( "MapImpDev" );
347 LLColor4 glyph_color; 348 LLColor4 glyph_color;
348 int selected = -1; 349 int selected = -1;
349 350
@@ -369,6 +370,10 @@ void LLNetMap::draw()
369 { 370 {
370 glyph_color = muted_color; 371 glyph_color = muted_color;
371 } 372 }
373 else if (LLFloaterMap::isImpDev(avatar_ids[i]))
374 {
375 glyph_color = imp_dev_color;
376 }
372 else if (is_agent_friend(avatar_ids[i])) 377 else if (is_agent_friend(avatar_ids[i]))
373 { 378 {
374 glyph_color = friend_color; 379 glyph_color = friend_color;
@@ -403,7 +408,7 @@ void LLNetMap::draw()
403 } 408 }
404 409
405 // Draw dot for selected avatar last 410 // Draw dot for selected avatar last
406 if (selected >= 0) 411 if (selected >= 0 && avatar_ids[selected].notNull())
407 { 412 {
408 pos_map = globalPosToView(positions[selected], rotate_map); 413 pos_map = globalPosToView(positions[selected], rotate_map);
409 F32 glyph_radius = mDotRadius * 1.7f; 414 F32 glyph_radius = mDotRadius * 1.7f;
diff --git a/linden/indra/newview/skins/default/colors_base.xml b/linden/indra/newview/skins/default/colors_base.xml
index 854c027..14265e0 100644
--- a/linden/indra/newview/skins/default/colors_base.xml
+++ b/linden/indra/newview/skins/default/colors_base.xml
@@ -163,6 +163,7 @@
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<MapImpDev value="90, 45, 101, 255" /> <!-- Imprudence developers glyph color -->
166 167
167 <!-- MINI-MAP --> 168 <!-- MINI-MAP -->
168<NetMapBackgroundColor value="0, 0, 0, 77" /> <!-- Mini-map floater background --> 169<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 f129230..6dc98dc 100644
--- a/linden/indra/newview/skins/silver/colors_base.xml
+++ b/linden/indra/newview/skins/silver/colors_base.xml
@@ -163,6 +163,7 @@
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<MapImpDev value="90, 45, 101, 255" /> <!-- Imprudence developers glyph color -->
166 167
167<!-- MINI-MAP --> 168<!-- MINI-MAP -->
168<NetMapBackgroundColor value="0, 0, 0, 77" /> <!-- Mini-map floater background --> 169<NetMapBackgroundColor value="0, 0, 0, 77" /> <!-- Mini-map floater background -->