- Timestamp:
- Feb 28, 2011, 5:15:14 AM (14 years ago)
- Location:
- code/branches/usability/src/orxonox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/usability/src/orxonox/ChatInputHandler.cc
r7284 r8000 74 74 } 75 75 76 ChatInputHandler::~ChatInputHandler() 77 { 78 /* Clean up */ 79 InputManager::getInstance().destroyState("chatinput"); 80 delete this->inpbuf; 81 } 82 76 83 /* configure input buffer, sub for the constructor */ 77 84 void ChatInputHandler::configureInputBuffer() … … 125 132 // reds 126 133 for( i = 0; i < NumberOfColors/3; ++i ) 127 { this->text_colors[ i ] = new CEGUI::colour( red, green, blue ); 128 assert( this->text_colors[ i ] ); 134 { this->text_colors[ i ] = CEGUI::colour( red, green, blue ); 129 135 green += 0.2f, blue += 0.2f; 130 136 } … … 133 139 red = 0.5, green = 1, blue = 0.5; 134 140 for( ; i < NumberOfColors*2/3; ++i ) 135 { this->text_colors[ i ] = new CEGUI::colour( red, green, blue ); 136 assert( this->text_colors[ i ] ); 141 { this->text_colors[ i ] = CEGUI::colour( red, green, blue ); 137 142 red += 0.2f, blue += 0.2f; 138 143 } … … 141 146 red = 0.5, green = 0.5, blue = 1; 142 147 for( ; i < NumberOfColors; ++i ) 143 { this->text_colors[ i ] = new CEGUI::colour( red, green, blue ); 144 assert( this->text_colors[ i ] ); 148 { this->text_colors[ i ] = CEGUI::colour( red, green, blue ); 145 149 red += 0.2f, green += 0.2f; 146 150 } … … 196 200 197 201 /* set the color according to the hash */ 198 tocolor->setTextColours( *(this->text_colors[ hash ]));202 tocolor->setTextColours( this->text_colors[ hash ] ); 199 203 } 200 204 -
code/branches/usability/src/orxonox/ChatInputHandler.h
r7163 r8000 37 37 #include <cassert> 38 38 #include <CEGUIForwardRefs.h> 39 #include <CEGUIcolour.h> 39 40 40 41 /* project includes */ … … 70 71 /* colors for nickname coloring */ 71 72 static const int NumberOfColors = 10; 72 CEGUI::colour *text_colors[ NumberOfColors ];73 CEGUI::colour text_colors[ NumberOfColors ]; 73 74 74 75 /** input state */ … … 110 111 /** constructor */ 111 112 ChatInputHandler(); 113 ~ChatInputHandler(); 112 114 friend class Singleton<ChatInputHandler>; 113 115
Note: See TracChangeset
for help on using the changeset viewer.