Changeset 9675 for code/trunk/src/orxonox
- Timestamp:
- Sep 26, 2013, 11:03:33 PM (11 years ago)
- Location:
- code/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/libs (added) merged: 9668-9671
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/chat/ChatInputHandler.cc
r9672 r9675 32 32 #include <cstddef> 33 33 #include <string> 34 #include <CEGUIWindow.h> 35 #include <CEGUIWindowManager.h> 36 #include <elements/CEGUIListbox.h> 37 #include <elements/CEGUIListboxItem.h> 38 #include <elements/CEGUIListboxTextItem.h> 34 35 #if CEGUI_VERSION >= 0x000800 36 # include <CEGUI/Window.h> 37 # include <CEGUI/WindowManager.h> 38 # include <CEGUI/widgets/Listbox.h> 39 # include <CEGUI/widgets/ListboxItem.h> 40 # include <CEGUI/widgets/ListboxTextItem.h> 41 #else 42 # include <CEGUIWindow.h> 43 # include <CEGUIWindowManager.h> 44 # include <elements/CEGUIListbox.h> 45 # include <elements/CEGUIListboxItem.h> 46 # include <elements/CEGUIListboxTextItem.h> 47 #endif 39 48 40 49 #include "util/ScopedSingletonManager.h" … … 119 128 120 129 /* GET WINDOW POINTERS */ 130 #if CEGUI_VERSION >= 0x000800 131 input = CEGUI::System::getSingleton().getDefaultGUIContext().getRootWindow()->getChild( "orxonox/ChatBox/input" ); 132 inputonly = CEGUI::System::getSingleton().getDefaultGUIContext().getRootWindow()->getChild( "orxonox/ChatBox-inputonly/input" ); 133 CEGUI::Window *history = CEGUI::System::getSingleton().getDefaultGUIContext().getRootWindow()->getChild( "orxonox/ChatBox/history" ); 134 #else 121 135 input = CEGUI::WindowManager::getSingleton().getWindow( "orxonox/ChatBox/input" ); 122 136 inputonly = CEGUI::WindowManager::getSingleton().getWindow( "orxonox/ChatBox-inputonly/input" ); 123 124 /* get pointer to the history window */125 137 CEGUI::Window *history = CEGUI::WindowManager::getSingleton().getWindow( "orxonox/ChatBox/history" ); 138 #endif 126 139 127 140 /* cast it to a listbox */ … … 142 155 // reds 143 156 for( i = 0; i < NumberOfColors/3; ++i ) 144 { this->text_colors[ i ] = CEGUI ::colour( red, green, blue );157 { this->text_colors[ i ] = CEGUIColour( red, green, blue ); 145 158 green += 0.2f, blue += 0.2f; 146 159 } … … 149 162 red = 0.5, green = 1, blue = 0.5; 150 163 for( ; i < NumberOfColors*2/3; ++i ) 151 { this->text_colors[ i ] = CEGUI ::colour( red, green, blue );164 { this->text_colors[ i ] = CEGUIColour( red, green, blue ); 152 165 red += 0.2f, blue += 0.2f; 153 166 } … … 156 169 red = 0.5, green = 0.5, blue = 1; 157 170 for( ; i < NumberOfColors; ++i ) 158 { this->text_colors[ i ] = CEGUI ::colour( red, green, blue );171 { this->text_colors[ i ] = CEGUIColour( red, green, blue ); 159 172 red += 0.2f, green += 0.2f; 160 173 } … … 273 286 { 274 287 /* adjust curser position - magic number 5 for font width */ 275 sub_adjust_dispoffset( (int)(this->input->getUnclippedInnerRect().getWidth()/6), 276 cursorpos, assembled.length() ); 288 #if CEGUI_VERSION >= 0x000800 289 sub_adjust_dispoffset( (int)(this->input->getUnclippedInnerRect().get().getWidth()/6), cursorpos, assembled.length() ); 290 #else 291 sub_adjust_dispoffset( (int)(this->input->getUnclippedInnerRect().getWidth()/6), cursorpos, assembled.length() ); 292 #endif 277 293 this->input->setProperty( "Text", assembled.substr( disp_offset ) ); 278 294 } … … 280 296 { 281 297 /* adjust curser position - magic number 5 for font width */ 282 sub_adjust_dispoffset( (int)(this->inputonly->getUnclippedInnerRect().getWidth()/6), 283 cursorpos, assembled.length() ); 298 #if CEGUI_VERSION >= 0x000800 299 sub_adjust_dispoffset( (int)(this->inputonly->getUnclippedInnerRect().get().getWidth()/6), cursorpos, assembled.length() ); 300 #else 301 sub_adjust_dispoffset( (int)(this->inputonly->getUnclippedInnerRect().getWidth()/6), cursorpos, assembled.length() ); 302 #endif 284 303 this->inputonly->setProperty( "Text", assembled.substr( disp_offset) ); 285 304 } -
code/trunk/src/orxonox/chat/ChatInputHandler.h
r8858 r9675 33 33 34 34 #include <string> 35 #include <CEGUIForwardRefs.h> 36 #include <CEGUIcolour.h> 35 36 #if CEGUI_VERSION >= 0x000800 37 # include <CEGUI/ForwardRefs.h> 38 # include <CEGUI/Colour.h> 39 #else 40 # include <CEGUIForwardRefs.h> 41 # include <CEGUIcolour.h> 42 #endif 37 43 38 44 #include "util/Singleton.h" … … 41 47 namespace orxonox // tolua_export 42 48 { // tolua_export 49 50 #if CEGUI_VERSION >= 0x000800 51 typedef CEGUI::Colour CEGUIColour; 52 #else 53 typedef CEGUI::colour CEGUIColour; 54 #endif 55 43 56 /* class to handle chat using an InputBuffer */ 44 57 class _OrxonoxExport ChatInputHandler // tolua_export … … 55 68 /* colors for nickname coloring */ 56 69 static const int NumberOfColors = 10; 57 CEGUI ::colour text_colors[ NumberOfColors ];70 CEGUIColour text_colors[ NumberOfColors ]; 58 71 59 72 /** input state */ -
code/trunk/src/orxonox/graphics/Model.cc
r9667 r9675 30 30 31 31 #include <OgreEntity.h> 32 #include <OgreProgressiveMesh.h> 32 33 33 34 #include "core/CoreIncludes.h" … … 162 163 orxout(verbose, context::lod) << "Setting lodLevel for " << this->meshSrc_<< " with lodLevel_: " << this->lodLevel_ <<" and volume: "<< volume << ":" << endl; 163 164 164 #if OGRE_VERSION >= 0x010700 165 #if OGRE_VERSION >= 0x010800 166 Ogre::ProgressiveMesh::LodValueList distList; 167 #elif OGRE_VERSION >= 0x010700 165 168 Ogre::Mesh::LodValueList distList; 166 169 #else … … 190 193 191 194 //Generiert LOD-Levels 195 #if OGRE_VERSION >= 0x010800 196 Ogre::ProgressiveMesh::generateLodLevels(this->mesh_.getEntity()->getMesh().get(), distList, Ogre::ProgressiveMesh::VRQ_PROPORTIONAL, 197 this->lodReductionRate_); 198 #else 192 199 this->mesh_.getEntity()->getMesh()->generateLodLevels(distList, Ogre::ProgressiveMesh::VRQ_PROPORTIONAL, this->lodReductionRate_); 200 #endif 193 201 } 194 202 else
Note: See TracChangeset
for help on using the changeset viewer.