Changeset 11605 for code/branches/CampaignMap_HS17/src
- Timestamp:
- Nov 27, 2017, 4:31:26 PM (7 years ago)
- Location:
- code/branches/CampaignMap_HS17/src
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/CampaignMap_HS17/src/modules/overlays/hud/StoryModeHUD.cc
r11588 r11605 65 65 { 66 66 RegisterObject(StoryModeHUD); 67 this->initialize();68 67 } 69 68 … … 87 86 88 87 void StoryModeHUD::initialize(){ 88 firstTick = false; 89 89 // Scales used for dimensions and text size 90 90 float xScale = this->getActualSize().x; … … 104 104 //PROBLEM: function doesn't get called automatically by the xml macro, 105 105 //which is why we need to call it manually here. works with storymodeplanet.h... 106 this->setFont("Monofur");107 this->setTextSize(0.05f);106 //this->setFont("Monofur"); 107 //this->setTextSize(0.05f); 108 108 109 109 //font name of the text needs to be set here, not in the xml setter function … … 164 164 SUPER(StoryModeHUD, tick, dt); 165 165 166 if(firstTick) 167 this->initialize(); 168 166 169 // cam is the pointer which represents your camera 167 170 Camera* cam = CameraManager::getInstance().getActiveCamera(); -
code/branches/CampaignMap_HS17/src/modules/overlays/hud/StoryModeHUD.h
r11588 r11605 62 62 std::string fontName_; 63 63 float textSize_; 64 bool firstTick = true; 64 65 65 66 };
Note: See TracChangeset
for help on using the changeset viewer.