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
Files:
3 added
7 edited

Legend:

Unmodified
Added
Removed
  • code/branches/CampaignMap_HS17/data/levels/NC_StoryModeLevel.oxw

    r11588 r11605  
    1010  include("templates/lodInformation.oxt")
    1111  include("templates/StoryMode.oxt")
    12   include("HUDTemplates3.oxo")
     12  include("StoryModeHUD2.oxo")
    1313  include("templates/spaceshipAssff.oxt")
    14   include("templates/spaceshipEscort.oxt")
     14  include("templates/StoryModeEscort.oxt")
    1515  include("templates/endurancetest_template.oxt")
    1616?>
     
    2828  >
    2929
    30   <SpawnPoint position="000.000, 000.000, 1000.000" spawnclass=SpaceShip orientation="0, 0, 0, -1" pawndesign= spaceshipescort />
     30  <SpawnPoint position="000.000, 000.000, 1000.000" spawnclass=SpaceShip orientation="0, 0, 0, 1" pawndesign= StoryModeEscort />
    3131   
    3232
  • code/branches/CampaignMap_HS17/data/levels/templates/StoryMode.oxt

    r11560 r11605  
    11<Template name=StoryMode>
    22  <SpaceShip
    3    hudtemplate            = StoryModeHUD2
     3   hudtemplate            = StoryModeMap
    44   camerapositiontemplate = spaceshipghostcameras
    5    
    65  >
    76   
  • code/branches/CampaignMap_HS17/data/overlays/HUDTemplates3.oxo

    r11588 r11605  
    4747<Template name="spaceshiphud">
    4848  <OverlayGroup name = "spaceshiphud" scale = "1, 1">
    49     <Map />
    50 
    51 
    52 
    53     <StoryModeHUD
    54      name           = "StoryMode"
    55      correctaspect  = false
    56      font           = "Monofur"
    57      textSize       = 0.01
    58      align          = "center"
    59     />
    60 
    6149
    6250
  • code/branches/CampaignMap_HS17/data/overlays/StoryModeHUD.oxo

    r11359 r11605  
    22<Template name="StoryModeMap">
    33  <OverlayGroup name = "spaceshiphud" scale = "1, 1">
    4     <Map />
    5 
    64
    75     <GUIOverlay
  • code/branches/CampaignMap_HS17/data/overlays/StoryModeHUD2.oxo

    r11588 r11605  
     1<Template name="StoryModeHUD">
     2  <OverlayGroup name = "StoryModeHUD" scale = "1, 1">\
    13
    2 <Template name="StoryModeHUD2">
    3   <OverlayGroup name = "spaceshiphud" scale = "1, 1">
    4 
    5     <!-- This is the storymode HUD we implemented, to give names to planet objects, rather than using the HUDnavigation-->
    64    <StoryModeHUD
    75     name           = "StoryMode"
    8      correctaspect  = true
    9      font           = "Arial"
    10      textSize       = 0.01f
     6     correctaspect  = false
     7     font           = "VeraMono"
     8     textSize       = 0.05
     9     align          = "center"
    1110    />
    1211
  • 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.