Changeset 10768 for code/branches/cpp11_v2/src/modules/overlays/stats
- Timestamp:
- Nov 6, 2015, 10:54:34 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/modules/overlays/stats
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/overlays/stats/CreateLines.cc
r6502 r10768 37 37 CreateLines::CreateLines(float leftOffset, float topOffset, float width, float height) 38 38 { 39 playerNameText_ = new OverlayText( 0);39 playerNameText_ = new OverlayText(nullptr); 40 40 playerNameText_->setTextSize(0.04f); 41 41 playerNameText_->setColour(ColourValue(0.0f, 0.75f, 0.2f, 1.0f)); 42 42 playerNameText_->setPosition(Vector2(0.1f, topOffset + 0.01f)); 43 43 44 scoreText_ = new OverlayText( 0);44 scoreText_ = new OverlayText(nullptr); 45 45 scoreText_->setTextSize(0.04f); 46 46 scoreText_->setColour(ColourValue(0.0f, 0.75f, 0.2f, 1.0f)); 47 47 scoreText_->setPosition(Vector2(0.6f, topOffset + 0.01f)); 48 48 49 deathsText_ = new OverlayText( 0);49 deathsText_ = new OverlayText(nullptr); 50 50 deathsText_->setTextSize(0.04f); 51 51 deathsText_->setColour(ColourValue(0, 0.75f, 0.2f, 1.0f)); 52 52 deathsText_->setPosition(Vector2(0.8f, topOffset + 0.01f)); 53 53 54 background_ = new Stats( 0);54 background_ = new Stats(nullptr); 55 55 background_->setPosition(Vector2(leftOffset, topOffset)); 56 56 background_->setSize(Vector2(width, height)); -
code/branches/cpp11_v2/src/modules/overlays/stats/Stats.cc
r9667 r10768 46 46 Stats::Stats(Context* context) 47 47 : OrxonoxOverlay(context) 48 , statsOverlayNoise_( 0)49 , statsOverlayBorder_( 0)48 , statsOverlayNoise_(nullptr) 49 , statsOverlayBorder_(nullptr) 50 50 { 51 51 RegisterObject(Stats);
Note: See TracChangeset
for help on using the changeset viewer.