Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 11, 2017, 5:39:48 PM (7 years ago)
Author:
fanconic
Message:

Changes in the Cameraorientation aswell as new objects inside the level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/CampaignMap_HS17/src/modules/overlays/hud/StoryModeHUD.cc

    r11605 r11663  
    5454#include "core/config/ConfigValueIncludes.h"
    5555#include "tools/TextureGenerator.h"
     56#include "controllers/NewHumanController.h"
    5657
    5758#include "worldentities/StoryModePlanet.h"
     
    9192        float yScale = this->getActualSize().y;
    9293
    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
    9497        int i = 0;
    9598        for(StoryModePlanet* planet : ObjectList<StoryModePlanet>()){
     
    101104            texts.push_back(text);
    102105            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);
    108106
    109107            //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.