diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llnetmap.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llnetmap.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/linden/indra/newview/llnetmap.cpp b/linden/indra/newview/llnetmap.cpp index 9629d06..b277998 100644 --- a/linden/indra/newview/llnetmap.cpp +++ b/linden/indra/newview/llnetmap.cpp | |||
@@ -114,52 +114,52 @@ LLNetMap::LLNetMap( | |||
114 | //mTextBoxNorth = new LLTextBox( "N", major_dir_rect ); | 114 | //mTextBoxNorth = new LLTextBox( "N", major_dir_rect ); |
115 | //mTextBoxNorth->setFontStyle(LLFontGL::DROP_SHADOW_SOFT); | 115 | //mTextBoxNorth->setFontStyle(LLFontGL::DROP_SHADOW_SOFT); |
116 | //addChild( mTextBoxNorth ); | 116 | //addChild( mTextBoxNorth ); |
117 | mTextBoxNorth = new LLTextBox( "N", major_dir_rect ); | 117 | mTextBoxNorth = new LLTextBox( std::string("N"), major_dir_rect ); |
118 | mTextBoxNorth->setColor( minor_color ); | 118 | mTextBoxNorth->setColor( minor_color ); |
119 | addChild( mTextBoxNorth ); | 119 | addChild( mTextBoxNorth ); |
120 | 120 | ||
121 | mTextBoxEast = new LLTextBox( "E", major_dir_rect ); | 121 | mTextBoxEast = new LLTextBox( std::string("E"), major_dir_rect ); |
122 | mTextBoxEast->setColor( minor_color ); | 122 | mTextBoxEast->setColor( minor_color ); |
123 | addChild( mTextBoxEast ); | 123 | addChild( mTextBoxEast ); |
124 | 124 | ||
125 | major_dir_rect.mRight += 1 ; | 125 | major_dir_rect.mRight += 1 ; |
126 | mTextBoxWest = new LLTextBox( "W", major_dir_rect ); | 126 | mTextBoxWest = new LLTextBox( std::string("W"), major_dir_rect ); |
127 | mTextBoxWest->setColor( minor_color ); | 127 | mTextBoxWest->setColor( minor_color ); |
128 | addChild( mTextBoxWest ); | 128 | addChild( mTextBoxWest ); |
129 | major_dir_rect.mRight -= 1 ; | 129 | major_dir_rect.mRight -= 1 ; |
130 | 130 | ||
131 | mTextBoxSouth = new LLTextBox( "S", major_dir_rect ); | 131 | mTextBoxSouth = new LLTextBox( std::string("S"), major_dir_rect ); |
132 | mTextBoxSouth->setColor( minor_color ); | 132 | mTextBoxSouth->setColor( minor_color ); |
133 | addChild( mTextBoxSouth ); | 133 | addChild( mTextBoxSouth ); |
134 | 134 | ||
135 | mTextBoxSouthEast = new LLTextBox( "SE", minor_dir_rect ); | 135 | mTextBoxSouthEast = new LLTextBox( std::string("SE"), minor_dir_rect ); |
136 | mTextBoxSouthEast->setColor( minor_color ); | 136 | mTextBoxSouthEast->setColor( minor_color ); |
137 | addChild( mTextBoxSouthEast ); | 137 | addChild( mTextBoxSouthEast ); |
138 | 138 | ||
139 | mTextBoxNorthEast = new LLTextBox( "NE", minor_dir_rect ); | 139 | mTextBoxNorthEast = new LLTextBox( std::string("NE"), minor_dir_rect ); |
140 | mTextBoxNorthEast->setColor( minor_color ); | 140 | mTextBoxNorthEast->setColor( minor_color ); |
141 | addChild( mTextBoxNorthEast ); | 141 | addChild( mTextBoxNorthEast ); |
142 | 142 | ||
143 | mTextBoxSouthWest = new LLTextBox( "SW", minor_dir_rect ); | 143 | mTextBoxSouthWest = new LLTextBox( std::string("SW"), minor_dir_rect ); |
144 | mTextBoxSouthWest->setColor( minor_color ); | 144 | mTextBoxSouthWest->setColor( minor_color ); |
145 | addChild( mTextBoxSouthWest ); | 145 | addChild( mTextBoxSouthWest ); |
146 | 146 | ||
147 | mTextBoxNorthWest = new LLTextBox( "NW", minor_dir_rect ); | 147 | mTextBoxNorthWest = new LLTextBox( std::string("NW"), minor_dir_rect ); |
148 | mTextBoxNorthWest->setColor( minor_color ); | 148 | mTextBoxNorthWest->setColor( minor_color ); |
149 | addChild( mTextBoxNorthWest ); | 149 | addChild( mTextBoxNorthWest ); |
150 | 150 | ||
151 | // Right-click menu | 151 | // Right-click menu |
152 | LLMenuGL* menu; | 152 | LLMenuGL* menu; |
153 | menu = new LLMenuGL("popup"); | 153 | menu = new LLMenuGL(std::string("popup")); |
154 | menu->setCanTearOff(FALSE); | 154 | menu->setCanTearOff(FALSE); |
155 | menu->append(new LLMenuItemCallGL("Zoom Close", handleZoomLevel, | 155 | menu->append(new LLMenuItemCallGL(std::string("Zoom Close"), handleZoomLevel, |
156 | NULL, (void*)2) ); | 156 | NULL, (void*)2) ); |
157 | menu->append(new LLMenuItemCallGL("Zoom Medium", handleZoomLevel, | 157 | menu->append(new LLMenuItemCallGL(std::string("Zoom Medium"), handleZoomLevel, |
158 | NULL, (void*)1) ); | 158 | NULL, (void*)1) ); |
159 | menu->append(new LLMenuItemCallGL("Zoom Far", handleZoomLevel, | 159 | menu->append(new LLMenuItemCallGL(std::string("Zoom Far"), handleZoomLevel, |
160 | NULL, (void*)0) ); | 160 | NULL, (void*)0) ); |
161 | menu->appendSeparator(); | 161 | menu->appendSeparator(); |
162 | menu->append(new LLMenuItemCallGL("Stop Tracking", &LLTracker::stopTracking, | 162 | menu->append(new LLMenuItemCallGL(std::string("Stop Tracking"), &LLTracker::stopTracking, |
163 | &LLTracker::isTracking, NULL) ); | 163 | &LLTracker::isTracking, NULL) ); |
164 | menu->setVisible(FALSE); | 164 | menu->setVisible(FALSE); |
165 | addChild(menu); | 165 | addChild(menu); |
@@ -279,7 +279,7 @@ void LLNetMap::draw() | |||
279 | gGL.color4f(0.8f, 0.8f, 0.8f, 1.f); | 279 | gGL.color4f(0.8f, 0.8f, 0.8f, 1.f); |
280 | } | 280 | } |
281 | 281 | ||
282 | if (!regionp->mAlive) | 282 | if (!regionp->isAlive()) |
283 | { | 283 | { |
284 | gGL.color4f(1.f, 0.5f, 0.5f, 1.f); | 284 | gGL.color4f(1.f, 0.5f, 0.5f, 1.f); |
285 | } | 285 | } |
@@ -580,7 +580,7 @@ BOOL LLNetMap::handleScrollWheel(S32 x, S32 y, S32 clicks) | |||
580 | return TRUE; | 580 | return TRUE; |
581 | } | 581 | } |
582 | 582 | ||
583 | BOOL LLNetMap::handleToolTip( S32 x, S32 y, LLString& msg, LLRect* sticky_rect_screen ) | 583 | BOOL LLNetMap::handleToolTip( S32 x, S32 y, std::string& msg, LLRect* sticky_rect_screen ) |
584 | { | 584 | { |
585 | BOOL handled = FALSE; | 585 | BOOL handled = FALSE; |
586 | if (gDisconnected) | 586 | if (gDisconnected) |
@@ -593,12 +593,12 @@ BOOL LLNetMap::handleToolTip( S32 x, S32 y, LLString& msg, LLRect* sticky_rect_s | |||
593 | msg.assign( region->getName() ); | 593 | msg.assign( region->getName() ); |
594 | 594 | ||
595 | #ifndef LL_RELEASE_FOR_DOWNLOAD | 595 | #ifndef LL_RELEASE_FOR_DOWNLOAD |
596 | char buffer[MAX_STRING]; /*Flawfinder: ignore*/ | 596 | std::string buffer; |
597 | msg.append("\n"); | 597 | msg.append("\n"); |
598 | region->getHost().getHostName(buffer, MAX_STRING); | 598 | buffer = region->getHost().getHostName(); |
599 | msg.append(buffer); | 599 | msg.append(buffer); |
600 | msg.append("\n"); | 600 | msg.append("\n"); |
601 | region->getHost().getString(buffer, MAX_STRING); | 601 | buffer = region->getHost().getString(); |
602 | msg.append(buffer); | 602 | msg.append(buffer); |
603 | #endif | 603 | #endif |
604 | // *TODO: put this under the control of XUI so it can be | 604 | // *TODO: put this under the control of XUI so it can be |