Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 27, 2017, 4:31:26 PM (7 years ago)
Author:
fanconic
Message:

Beschriftung Funktioniert nun. Zusaetzlich ist das Levelfile mit neuem HUD Template funktionsfaehig. Erste Schritte zur Kameraeinstellung.

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  
    6565    {
    6666        RegisterObject(StoryModeHUD);
    67         this->initialize();
    6867    }
    6968
     
    8786
    8887    void StoryModeHUD::initialize(){
     88        firstTick = false;
    8989        // Scales used for dimensions and text size
    9090        float xScale = this->getActualSize().x;
     
    104104            //PROBLEM: function doesn't get called automatically by the xml macro,
    105105            //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);
    108108
    109109            //font name of the text needs to be set here, not in the xml setter function
     
    164164        SUPER(StoryModeHUD, tick, dt);
    165165
     166        if(firstTick)
     167            this->initialize();
     168
    166169        // cam is the pointer which represents your camera
    167170        Camera* cam = CameraManager::getInstance().getActiveCamera();
  • code/branches/CampaignMap_HS17/src/modules/overlays/hud/StoryModeHUD.h

    r11588 r11605  
    6262            std::string fontName_;
    6363            float textSize_;
     64            bool firstTick = true;
    6465   
    6566    };
Note: See TracChangeset for help on using the changeset viewer.