- Timestamp:
- Nov 27, 2017, 4:31:26 PM (7 years ago)
- File:
-
- 1 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();
Note: See TracChangeset
for help on using the changeset viewer.