aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/doc/contributions.txt1
-rw-r--r--linden/indra/newview/llcolorscheme.cpp5
-rw-r--r--linden/indra/newview/llcolorscheme.h2
-rw-r--r--linden/indra/newview/llnetmap.cpp7
-rw-r--r--linden/indra/newview/llnetmap.h3
-rw-r--r--linden/indra/newview/llviewerregion.cpp4
-rw-r--r--linden/indra/newview/llworldmapview.cpp8
-rw-r--r--linden/indra/newview/llworldmapview.h2
-rw-r--r--linden/indra/newview/skins/default/colors_base.xml10
-rw-r--r--linden/indra/newview/skins/silver/colors_base.xml10
10 files changed, 41 insertions, 11 deletions
diff --git a/linden/doc/contributions.txt b/linden/doc/contributions.txt
index 346aba5..48c1429 100644
--- a/linden/doc/contributions.txt
+++ b/linden/doc/contributions.txt
@@ -13,6 +13,7 @@ Adam Marker
13 VWR-2755 13 VWR-2755
14Aimee Trescothick 14Aimee Trescothick
15 VWR-3903 15 VWR-3903
16 VWR-3336
16 VWR-4083 17 VWR-4083
17 VWR-8341 18 VWR-8341
18 VWR-8430 19 VWR-8430
diff --git a/linden/indra/newview/llcolorscheme.cpp b/linden/indra/newview/llcolorscheme.cpp
index ef8b4a8..460f1a2 100644
--- a/linden/indra/newview/llcolorscheme.cpp
+++ b/linden/indra/newview/llcolorscheme.cpp
@@ -37,8 +37,6 @@
37 37
38LLColor4 gTrackColor; 38LLColor4 gTrackColor;
39LLColor4 gSelfMapColor; 39LLColor4 gSelfMapColor;
40LLColor4 gAvatarMapColor;
41LLColor4 gFriendMapColor;
42LLColor4 gLandmarkMapColor; 40LLColor4 gLandmarkMapColor;
43LLColor4 gLocationMapColor; 41LLColor4 gLocationMapColor;
44LLColor4 gTelehubMapColor; 42LLColor4 gTelehubMapColor;
@@ -56,8 +54,7 @@ void init_colors()
56 gDisabledTrackColor.setVec( 0.5f, 0.f, 0.f, 1.f ); 54 gDisabledTrackColor.setVec( 0.5f, 0.f, 0.f, 1.f );
57 55
58 gSelfMapColor = LLColor4::white; 56 gSelfMapColor = LLColor4::white;
59 gAvatarMapColor = LLColor4::green; 57
60 gFriendMapColor = LLColor4::yellow;
61 // fleshy color 58 // fleshy color
62 //gAvatarMapColor.setVec( 255.f/255.f, 223.f/255.f, 170.f/255.f, 1.f); 59 //gAvatarMapColor.setVec( 255.f/255.f, 223.f/255.f, 170.f/255.f, 1.f);
63 60
diff --git a/linden/indra/newview/llcolorscheme.h b/linden/indra/newview/llcolorscheme.h
index e772b11..bf1e053 100644
--- a/linden/indra/newview/llcolorscheme.h
+++ b/linden/indra/newview/llcolorscheme.h
@@ -36,8 +36,6 @@
36 36
37extern LLColor4 gTrackColor; 37extern LLColor4 gTrackColor;
38extern LLColor4 gSelfMapColor; 38extern LLColor4 gSelfMapColor;
39extern LLColor4 gAvatarMapColor;
40extern LLColor4 gFriendMapColor;
41extern LLColor4 gLandmarkMapColor; 39extern LLColor4 gLandmarkMapColor;
42extern LLColor4 gLocationMapColor; 40extern LLColor4 gLocationMapColor;
43extern LLColor4 gTelehubMapColor; 41extern LLColor4 gTelehubMapColor;
diff --git a/linden/indra/newview/llnetmap.cpp b/linden/indra/newview/llnetmap.cpp
index b277998..22dee9d 100644
--- a/linden/indra/newview/llnetmap.cpp
+++ b/linden/indra/newview/llnetmap.cpp
@@ -69,7 +69,7 @@
69 69
70#include "llglheaders.h" 70#include "llglheaders.h"
71 71
72const F32 MAP_SCALE_MIN = 64; 72const F32 MAP_SCALE_MIN = 32;
73const F32 MAP_SCALE_MID = 172; 73const F32 MAP_SCALE_MID = 172;
74const F32 MAP_SCALE_MAX = 512; 74const F32 MAP_SCALE_MAX = 512;
75const F32 MAP_SCALE_INCREMENT = 16; 75const F32 MAP_SCALE_INCREMENT = 16;
@@ -97,6 +97,9 @@ LLNetMap::LLNetMap(
97 mPixelsPerMeter = gMiniMapScale / REGION_WIDTH_METERS; 97 mPixelsPerMeter = gMiniMapScale / REGION_WIDTH_METERS;
98 98
99 LLNetMap::sRotateMap = gSavedSettings.getBOOL( "MiniMapRotate" ); 99 LLNetMap::sRotateMap = gSavedSettings.getBOOL( "MiniMapRotate" );
100
101 glyph_color_avatar = gColors.getColor("NetMapGlyphColorAvatar");
102 glyph_color_friend = gColors.getColor("NetMapGlyphColorFriend");
100 103
101 // Surface texture is dynamically generated/updated. 104 // Surface texture is dynamically generated/updated.
102// createObjectImage(); 105// createObjectImage();
@@ -411,7 +414,7 @@ void LLNetMap::draw()
411 } 414 }
412 LLWorldMapView::drawAvatar( 415 LLWorldMapView::drawAvatar(
413 pos_map.mV[VX], pos_map.mV[VY], 416 pos_map.mV[VX], pos_map.mV[VY],
414 show_as_friend ? gFriendMapColor : gAvatarMapColor, 417 show_as_friend ? glyph_color_friend : glyph_color_avatar,
415 pos_map.mV[VZ]); 418 pos_map.mV[VZ]);
416 } 419 }
417 } 420 }
diff --git a/linden/indra/newview/llnetmap.h b/linden/indra/newview/llnetmap.h
index 3fb20cc..91027c5 100644
--- a/linden/indra/newview/llnetmap.h
+++ b/linden/indra/newview/llnetmap.h
@@ -84,7 +84,10 @@ protected:
84 84
85public: 85public:
86 LLHandle<LLView> mPopupMenuHandle; 86 LLHandle<LLView> mPopupMenuHandle;
87
87 LLColor4 mBackgroundColor; 88 LLColor4 mBackgroundColor;
89 LLColor4 glyph_color_avatar;
90 LLColor4 glyph_color_friend;
88 91
89 F32 mScale; // Size of a region in pixels 92 F32 mScale; // Size of a region in pixels
90 F32 mPixelsPerMeter; // world meters to map pixels 93 F32 mPixelsPerMeter; // world meters to map pixels
diff --git a/linden/indra/newview/llviewerregion.cpp b/linden/indra/newview/llviewerregion.cpp
index 08dc979..2944d9d 100644
--- a/linden/indra/newview/llviewerregion.cpp
+++ b/linden/indra/newview/llviewerregion.cpp
@@ -1022,6 +1022,8 @@ void LLViewerRegion::updateCoarseLocations(LLMessageSystem* msg)
1022 U8 z_pos = 0; 1022 U8 z_pos = 0;
1023 1023
1024 U32 pos = 0x0; 1024 U32 pos = 0x0;
1025
1026 LLUUID agent_id = LLUUID::null;
1025 1027
1026 S16 agent_index; 1028 S16 agent_index;
1027 S16 target_index; 1029 S16 target_index;
@@ -1034,6 +1036,7 @@ void LLViewerRegion::updateCoarseLocations(LLMessageSystem* msg)
1034 msg->getU8Fast(_PREHASH_Location, _PREHASH_X, x_pos, i); 1036 msg->getU8Fast(_PREHASH_Location, _PREHASH_X, x_pos, i);
1035 msg->getU8Fast(_PREHASH_Location, _PREHASH_Y, y_pos, i); 1037 msg->getU8Fast(_PREHASH_Location, _PREHASH_Y, y_pos, i);
1036 msg->getU8Fast(_PREHASH_Location, _PREHASH_Z, z_pos, i); 1038 msg->getU8Fast(_PREHASH_Location, _PREHASH_Z, z_pos, i);
1039 msg->getUUIDFast(_PREHASH_AgentData, _PREHASH_AgentID, agent_id, i);
1037 1040
1038 //llinfos << " object X: " << (S32)x_pos << " Y: " << (S32)y_pos 1041 //llinfos << " object X: " << (S32)x_pos << " Y: " << (S32)y_pos
1039 // << " Z: " << (S32)(z_pos * 4) 1042 // << " Z: " << (S32)(z_pos * 4)
@@ -1059,6 +1062,7 @@ void LLViewerRegion::updateCoarseLocations(LLMessageSystem* msg)
1059 pos <<= 8; 1062 pos <<= 8;
1060 pos |= z_pos; 1063 pos |= z_pos;
1061 mMapAvatars.put(pos); 1064 mMapAvatars.put(pos);
1065 mMapAvatarIDs.put(agent_id);
1062 } 1066 }
1063 } 1067 }
1064} 1068}
diff --git a/linden/indra/newview/llworldmapview.cpp b/linden/indra/newview/llworldmapview.cpp
index 92d9588..0d266dd 100644
--- a/linden/indra/newview/llworldmapview.cpp
+++ b/linden/indra/newview/llworldmapview.cpp
@@ -208,6 +208,8 @@ LLWorldMapView::LLWorldMapView(const std::string& name, const LLRect& rect )
208 mTextBoxNorthWest = new LLTextBox( std::string("NW"), minor_dir_rect ); 208 mTextBoxNorthWest = new LLTextBox( std::string("NW"), minor_dir_rect );
209 mTextBoxNorthWest->setColor( minor_color ); 209 mTextBoxNorthWest->setColor( minor_color );
210 addChild( mTextBoxNorthWest ); 210 addChild( mTextBoxNorthWest );
211
212 glyph_color_avatar = gColors.getColor("NetMapGlyphColorAvatar");
211} 213}
212 214
213 215
@@ -886,8 +888,8 @@ void LLWorldMapView::drawAgents()
886 S32 agent_count = info.mExtra; 888 S32 agent_count = info.mExtra;
887 sim_agent_count += info.mExtra; 889 sim_agent_count += info.mExtra;
888 // Here's how we'd choose the color if info.mID were available but it's not being sent: 890 // Here's how we'd choose the color if info.mID were available but it's not being sent:
889 //LLColor4 color = (agent_count == 1 && is_agent_friend(info.mID)) ? gFriendMapColor : gAvatarMapColor; 891 //LLColor4 color = (agent_count == 1 && is_agent_friend(info.mID)) ? glyph_color_friend : glyph_color_avatar;
890 drawImageStack(info.mPosGlobal, sAvatarSmallImage, agent_count, 3.f, gAvatarMapColor); 892 drawImageStack(info.mPosGlobal, sAvatarSmallImage, agent_count, 3.f, glyph_color_avatar);
891 } 893 }
892 LLWorldMap::getInstance()->mNumAgents[handle] = sim_agent_count; // override mNumAgents for this sim 894 LLWorldMap::getInstance()->mNumAgents[handle] = sim_agent_count; // override mNumAgents for this sim
893 } 895 }
@@ -902,7 +904,7 @@ void LLWorldMapView::drawAgents()
902 region_center[VY] += REGION_WIDTH_METERS / 2; 904 region_center[VY] += REGION_WIDTH_METERS / 2;
903 // Reduce the stack size as you zoom out - always display at lease one agent where there is one or more 905 // Reduce the stack size as you zoom out - always display at lease one agent where there is one or more
904 S32 agent_count = (S32)(((num_agents-1) * agents_scale + (num_agents-1) * 0.1f)+.1f) + 1; 906 S32 agent_count = (S32)(((num_agents-1) * agents_scale + (num_agents-1) * 0.1f)+.1f) + 1;
905 drawImageStack(region_center, sAvatarSmallImage, agent_count, 3.f, gAvatarMapColor); 907 drawImageStack(region_center, sAvatarSmallImage, agent_count, 3.f, glyph_color_avatar);
906 } 908 }
907 } 909 }
908 } 910 }
diff --git a/linden/indra/newview/llworldmapview.h b/linden/indra/newview/llworldmapview.h
index 915a196..53f0bdd 100644
--- a/linden/indra/newview/llworldmapview.h
+++ b/linden/indra/newview/llworldmapview.h
@@ -189,6 +189,8 @@ public:
189 handle_list_t mVisibleRegions; // set every frame 189 handle_list_t mVisibleRegions; // set every frame
190 190
191 static std::map<std::string,std::string> sStringsMap; 191 static std::map<std::string,std::string> sStringsMap;
192
193 LLColor4 glyph_color_avatar;
192}; 194};
193 195
194#endif 196#endif
diff --git a/linden/indra/newview/skins/default/colors_base.xml b/linden/indra/newview/skins/default/colors_base.xml
index 00007c4..ff3d53e 100644
--- a/linden/indra/newview/skins/default/colors_base.xml
+++ b/linden/indra/newview/skins/default/colors_base.xml
@@ -164,6 +164,8 @@
164<NetMapGroupOwnBelowWater value="200, 0, 200, 255" /> <!-- Group owned objects below water --> 164<NetMapGroupOwnBelowWater value="200, 0, 200, 255" /> <!-- Group owned objects below water -->
165<NetMapOtherOwnAboveWater value="60, 60, 60, 255" /> <!-- Objects owned by others above water --> 165<NetMapOtherOwnAboveWater value="60, 60, 60, 255" /> <!-- Objects owned by others above water -->
166<NetMapOtherOwnBelowWater value="30, 30, 30, 255" /> <!-- Objects owned by others below water --> 166<NetMapOtherOwnBelowWater value="30, 30, 30, 255" /> <!-- Objects owned by others below water -->
167<NetMapGlyphColorAvatar value="0, 255, 0, 255" /> <!-- Also the color of avatar glyphs on the map -->
168<NetMapGlyphColorFriend value="255, 255, 0, 255" />
167 169
168<!-- INVENTORY --> 170<!-- INVENTORY -->
169<InventoryBackgroundColor value="62, 62, 62, 80"/> <!-- Inventory floater background --> 171<InventoryBackgroundColor value="62, 62, 62, 80"/> <!-- Inventory floater background -->
@@ -173,6 +175,14 @@
173<FilterTextColor value="255, 200, 70, 255" /> <!-- Inventory search text --> 175<FilterTextColor value="255, 200, 70, 255" /> <!-- Inventory search text -->
174<InventorySearchStatusColor value="255, 255, 255, 255" /> <!-- "Searching..." --> 176<InventorySearchStatusColor value="255, 255, 255, 255" /> <!-- "Searching..." -->
175 177
178<!-- HELP WINDOW -->
179<HelpBgColor value="200, 209, 204, 255" />
180<HelpFgColor value="0, 0, 0, 255" />
181<HelpScrollTrackColor value="183, 184, 188, 255" />
182<HelpScrollThumbColor value="80, 96, 124, 255" />
183<HelpScrollHighlightColor value="115, 132, 155, 255" />
184<HelpScrollShadowColor value="0, 0, 0, 255" />
185
176<!-- MISC --> 186<!-- MISC -->
177<AvatarNameColor value="251, 175, 93, 255" /> <!-- Text color of avatar nametags --> 187<AvatarNameColor value="251, 175, 93, 255" /> <!-- Text color of avatar nametags -->
178<FocusColor value="239, 156, 0, 255" /> <!-- Color of the glow around UI controls with keyboard focus --> 188<FocusColor value="239, 156, 0, 255" /> <!-- Color of the glow around UI controls with keyboard focus -->
diff --git a/linden/indra/newview/skins/silver/colors_base.xml b/linden/indra/newview/skins/silver/colors_base.xml
index 77c8f1f..623b800 100644
--- a/linden/indra/newview/skins/silver/colors_base.xml
+++ b/linden/indra/newview/skins/silver/colors_base.xml
@@ -164,6 +164,8 @@
164<NetMapGroupOwnBelowWater value="200, 0, 200, 255" /> <!-- Group owned objects below water --> 164<NetMapGroupOwnBelowWater value="200, 0, 200, 255" /> <!-- Group owned objects below water -->
165<NetMapOtherOwnAboveWater value="60, 60, 60, 255" /> <!-- Objects owned by others above water --> 165<NetMapOtherOwnAboveWater value="60, 60, 60, 255" /> <!-- Objects owned by others above water -->
166<NetMapOtherOwnBelowWater value="30, 30, 30, 255" /> <!-- Objects owned by others below water --> 166<NetMapOtherOwnBelowWater value="30, 30, 30, 255" /> <!-- Objects owned by others below water -->
167<NetMapGlyphColorAvatar value="0, 255, 0, 255" /> <!-- Also the color of avatar glyphs on the map -->
168<NetMapGlyphColorFriend value="255, 255, 0, 255" />
167 169
168<!-- INVENTORY --> 170<!-- INVENTORY -->
169<InventoryBackgroundColor value="255, 255, 255, 80"/> <!-- Inventory floater background --> 171<InventoryBackgroundColor value="255, 255, 255, 80"/> <!-- Inventory floater background -->
@@ -173,6 +175,14 @@
173<FilterTextColor value="255, 200, 70, 255" /> <!-- Inventory search text --> 175<FilterTextColor value="255, 200, 70, 255" /> <!-- Inventory search text -->
174<InventorySearchStatusColor value="0, 0, 0, 255" /> <!-- "Searching..." --> 176<InventorySearchStatusColor value="0, 0, 0, 255" /> <!-- "Searching..." -->
175 177
178<!-- HELP WINDOW -->
179<HelpBgColor value="200, 209, 204, 255" />
180<HelpFgColor value="0, 0, 0, 255" />
181<HelpScrollTrackColor value="0, 0, 0, 255" />
182<HelpScrollThumbColor value="255, 255, 255, 255" />
183<HelpScrollHighlightColor value="115, 132, 155, 255" />
184<HelpScrollShadowColor value="0, 0, 0, 255" />
185
176<!-- MISC --> 186<!-- MISC -->
177<AvatarNameColor value="251, 175, 93, 255" /> <!-- Text color of avatar nametags --> 187<AvatarNameColor value="251, 175, 93, 255" /> <!-- Text color of avatar nametags -->
178<FocusColor value="239, 156, 0, 255" /> <!-- Color of the glow around UI controls with keyboard focus --> 188<FocusColor value="239, 156, 0, 255" /> <!-- Color of the glow around UI controls with keyboard focus -->