Changeset 11663 for code/branches/CampaignMap_HS17/src/modules/overlays/hud
- Timestamp:
- Dec 11, 2017, 5:39:48 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/CampaignMap_HS17/src/modules/overlays/hud/StoryModeHUD.cc
r11605 r11663 54 54 #include "core/config/ConfigValueIncludes.h" 55 55 #include "tools/TextureGenerator.h" 56 #include "controllers/NewHumanController.h" 56 57 57 58 #include "worldentities/StoryModePlanet.h" … … 91 92 float yScale = this->getActualSize().y; 92 93 93 94 //Sets the Camera angle at 30 degrees above it, so levels can be seen better 95 CameraManager::getInstance().getActiveCamera()->setOrientation(Vector3::UNIT_X, Degree(-30)); 96 94 97 int i = 0; 95 98 for(StoryModePlanet* planet : ObjectList<StoryModePlanet>()){ … … 101 104 texts.push_back(text); 102 105 texts[i]->setDimensions(xScale, yScale); 103 104 //PROBLEM: function doesn't get called automatically by the xml macro,105 //which is why we need to call it manually here. works with storymodeplanet.h...106 //this->setFont("Monofur");107 //this->setTextSize(0.05f);108 106 109 107 //font name of the text needs to be set here, not in the xml setter function
Note: See TracChangeset
for help on using the changeset viewer.