Changeset 11071 for code/trunk/src/modules/overlays/hud/HUDWeaponMode.cc
- Timestamp:
- Jan 17, 2016, 10:29:21 PM (8 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/modules/overlays/hud/HUDWeaponMode.cc
r11052 r11071 29 29 #include "HUDWeaponMode.h" 30 30 31 #include "util/Convert.h" 32 #include "util/StringUtils.h" 31 33 #include "core/CoreIncludes.h" 32 #include "core/XMLPort.h"33 #include "util/Convert.h"34 34 #include "core/class/Super.h" 35 35 … … 76 76 textOverlayLeft_->setPickPoint(Vector2(0.0f,0.0f)); 77 77 textOverlayLeft_->setVisible(true); 78 textOverlayLeft_->setAlignment(OverlayText:: Center);78 textOverlayLeft_->setAlignment(OverlayText::Alignment::Center); 79 79 textOverlayLeft_->setTextSize(0.02f); 80 80 textOverlayLeft_->setColour(ColourValue(0.21,0.70,0.21,1.0)); … … 87 87 textOverlayRight_->setPickPoint(Vector2(0.0f,0.0f)); 88 88 textOverlayRight_->setVisible(true); 89 textOverlayRight_->setAlignment(OverlayText:: Center);89 textOverlayRight_->setAlignment(OverlayText::Alignment::Center); 90 90 textOverlayRight_->setTextSize(0.02f); 91 91 textOverlayRight_->setColour(ColourValue(0.21,0.70,0.21,1.0)); … … 107 107 } 108 108 109 void HUDWeaponMode::XMLPort(Element& xmlelement, XMLPort::Mode mode)110 {111 SUPER(HUDWeaponMode, XMLPort, xmlelement, mode);112 }113 114 109 void HUDWeaponMode::tick(float dt) 115 110 { … … 131 126 Munition* munition = this->weaponMode_->getMunition(); 132 127 133 if (munition != NULL)134 { 135 MunitionDeployment ::Valuedeployment = munition->getMunitionDeployment();128 if (munition != nullptr) 129 { 130 MunitionDeployment deployment = munition->getMunitionDeployment(); 136 131 137 132 if (deployment == MunitionDeployment::Share) … … 242 237 Munition* munition = this->weaponMode_->getMunition(); 243 238 244 if (munition != NULL)245 { 246 MunitionDeployment ::Valuedeployment = munition->getMunitionDeployment();239 if (munition != nullptr) 240 { 241 MunitionDeployment deployment = munition->getMunitionDeployment(); 247 242 248 243 if (deployment == MunitionDeployment::Share)
Note: See TracChangeset
for help on using the changeset viewer.