Changeset 11605 for code/branches/CampaignMap_HS17
- Timestamp:
- Nov 27, 2017, 4:31:26 PM (7 years ago)
- 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 10 10 include("templates/lodInformation.oxt") 11 11 include("templates/StoryMode.oxt") 12 include(" HUDTemplates3.oxo")12 include("StoryModeHUD2.oxo") 13 13 include("templates/spaceshipAssff.oxt") 14 include("templates/ spaceshipEscort.oxt")14 include("templates/StoryModeEscort.oxt") 15 15 include("templates/endurancetest_template.oxt") 16 16 ?> … … 28 28 > 29 29 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 /> 31 31 32 32 -
code/branches/CampaignMap_HS17/data/levels/templates/StoryMode.oxt
r11560 r11605 1 1 <Template name=StoryMode> 2 2 <SpaceShip 3 hudtemplate = StoryMode HUD23 hudtemplate = StoryModeMap 4 4 camerapositiontemplate = spaceshipghostcameras 5 6 5 > 7 6 -
code/branches/CampaignMap_HS17/data/overlays/HUDTemplates3.oxo
r11588 r11605 47 47 <Template name="spaceshiphud"> 48 48 <OverlayGroup name = "spaceshiphud" scale = "1, 1"> 49 <Map />50 51 52 53 <StoryModeHUD54 name = "StoryMode"55 correctaspect = false56 font = "Monofur"57 textSize = 0.0158 align = "center"59 />60 61 49 62 50 -
code/branches/CampaignMap_HS17/data/overlays/StoryModeHUD.oxo
r11359 r11605 2 2 <Template name="StoryModeMap"> 3 3 <OverlayGroup name = "spaceshiphud" scale = "1, 1"> 4 <Map />5 6 4 7 5 <GUIOverlay -
code/branches/CampaignMap_HS17/data/overlays/StoryModeHUD2.oxo
r11588 r11605 1 <Template name="StoryModeHUD"> 2 <OverlayGroup name = "StoryModeHUD" scale = "1, 1">\ 1 3 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-->6 4 <StoryModeHUD 7 5 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" 11 10 /> 12 11 -
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(); -
code/branches/CampaignMap_HS17/src/modules/overlays/hud/StoryModeHUD.h
r11588 r11605 62 62 std::string fontName_; 63 63 float textSize_; 64 bool firstTick = true; 64 65 65 66 };
Note: See TracChangeset
for help on using the changeset viewer.