Changeset 3192 for code/branches/pch/src/orxonox/overlays
- Timestamp:
- Jun 18, 2009, 10:00:15 AM (16 years ago)
- Location:
- code/branches/pch/src/orxonox/overlays
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/orxonox/overlays/OrxonoxOverlay.cc
r3110 r3192 215 215 if (angle < 0.0) 216 216 angle = -angle; 217 angle -= 180.0 * (int)(angle / 180.0);217 angle -= 180.0f * (int)(angle / 180.0); 218 218 219 219 // take the reverse if angle is about 90 degrees 220 220 float tempAspect; 221 if (angle > 89.0 && angle < 91.0)221 if (angle > 89.0f && angle < 91.0f) 222 222 { 223 223 tempAspect = 1.0 / this->windowAspectRatio_; … … 231 231 else 232 232 { 233 tempAspect = 1.0 ;233 tempAspect = 1.0f; 234 234 rotState_ = Inbetween; 235 235 } … … 238 238 // magnitude of the width is about the magnitude of the height. 239 239 // Correctly we would have to take the square root of width*height 240 this->sizeCorrection_.x = 2.0 / (tempAspect + 1.0);240 this->sizeCorrection_.x = 2.0f / (tempAspect + 1.0f); 241 241 this->sizeCorrection_.y = tempAspect * this->sizeCorrection_.x; 242 242 } -
code/branches/pch/src/orxonox/overlays/OrxonoxOverlay.h
r3177 r3192 38 38 39 39 #include <string> 40 #include <OgrePrerequisites.h>41 40 42 41 #include "util/Math.h" 42 #include "util/OgreForwardRefs.h" 43 43 #include "core/BaseObject.h" 44 44 #include "interfaces/WindowEventListener.h" -
code/branches/pch/src/orxonox/overlays/OverlayGroup.h
r3144 r3192 38 38 39 39 #include <set> 40 #include <OgrePrerequisites.h>41 40 #include "util/Math.h" 41 #include "util/OgreForwardRefs.h" 42 42 #include "core/BaseObject.h" 43 43 -
code/branches/pch/src/orxonox/overlays/OverlayText.h
r3144 r3192 34 34 #include <string> 35 35 #include "util/Math.h" 36 #include "util/OgreForwardRefs.h" 36 37 #include "OrxonoxOverlay.h" 37 38 -
code/branches/pch/src/orxonox/overlays/console/InGameConsole.h
r3177 r3192 34 34 35 35 #include <string> 36 #include "util/OgreForwardRefs.h" 36 37 #include "core/Shell.h" 37 38 #include "interfaces/WindowEventListener.h" -
code/branches/pch/src/orxonox/overlays/hud/HUDBar.cc
r3144 r3192 78 78 this->textureUnitState_->setTextureName("bar2.tga"); 79 79 // use the default colour 80 this->textureUnitState_->setColourOperationEx(Ogre::LBX_MODULATE, Ogre::LBS_MANUAL, Ogre::LBS_CURRENT, ColourValue(0.2 , 0.7, 0.2));80 this->textureUnitState_->setColourOperationEx(Ogre::LBX_MODULATE, Ogre::LBS_MANUAL, Ogre::LBS_CURRENT, ColourValue(0.2f, 0.7f, 0.2f)); 81 81 82 82 this->bar_ = static_cast<Ogre::PanelOverlayElement*>(Ogre::OverlayManager::getSingleton() -
code/branches/pch/src/orxonox/overlays/hud/HUDBar.h
r3144 r3192 36 36 #include <map> 37 37 #include <vector> 38 #include <OgrePrerequisites.h>39 38 40 39 #include "util/Math.h" 40 #include "util/OgreForwardRefs.h" 41 41 #include "core/BaseObject.h" 42 42 #include "overlays/OrxonoxOverlay.h" -
code/branches/pch/src/orxonox/overlays/hud/HUDNavigation.h
r3177 r3192 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include <OgrePrerequisites.h>34 #include "util/OgreForwardRefs.h" 35 35 #include "interfaces/Tickable.h" 36 36 #include "overlays/OrxonoxOverlay.h" -
code/branches/pch/src/orxonox/overlays/hud/HUDRadar.h
r3177 r3192 35 35 #include <map> 36 36 #include <vector> 37 #include <OgrePrerequisites.h>38 37 38 #include "util/OgreForwardRefs.h" 39 39 #include "interfaces/RadarListener.h" 40 40 #include "interfaces/RadarViewable.h" -
code/branches/pch/src/orxonox/overlays/hud/UnderAttackHealthBar.cc
r3110 r3192 47 47 this->text_ = new OverlayText(this); 48 48 this->text_->setFont("Monofur"); 49 this->text_->setTextSize(0.04 );49 this->text_->setTextSize(0.04f); 50 50 this->text_->setAlignmentString("center"); 51 51 this->text_->setColour(ColourValue::White); -
code/branches/pch/src/orxonox/overlays/notifications/NotificationQueue.cc
r3158 r3192 48 48 const std::string NotificationQueue::DEFAULT_FONT = "VeraMono"; 49 49 const Vector2 NotificationQueue::DEFAULT_POSITION = Vector2(0.0,0.0); 50 const float NotificationQueue::DEFAULT_FONT_SIZE = 0.025 ;50 const float NotificationQueue::DEFAULT_FONT_SIZE = 0.025f; 51 51 52 52 /** -
code/branches/pch/src/orxonox/overlays/stats/Stats.h
r3177 r3192 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "util/OgreForwardRefs.h" 34 35 #include "interfaces/Tickable.h" 35 36 #include "overlays/OrxonoxOverlay.h"
Note: See TracChangeset
for help on using the changeset viewer.