Changeset 11269 for code/branches
- Timestamp:
- Nov 7, 2016, 3:56:14 PM (8 years ago)
- Location:
- code/branches/StoryModeMap_HS16
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/StoryModeMap_HS16/data/gui/scripts/CampaignMenu.lua
r11052 r11269 97 97 98 98 function P.loadLevel(level) 99 orxonox.execute(" startGame " .. level:getXMLFilename())99 orxonox.execute("changeGame " .. level:getXMLFilename()) 100 100 hideAllMenuSheets() 101 101 end … … 118 118 119 119 function P.CampaignMenuBackButton_clicked(e) 120 hideMenuSheet(P.name) 120 orxonox.execute("startMainMenu") 121 hideMenuSheet("CampaignMenu") 121 122 end 122 123 -
code/branches/StoryModeMap_HS16/data/gui/scripts/SingleplayerMenu.lua
r10258 r11269 172 172 173 173 function P.CampaignButton_clicked(e) 174 showMenuSheet("CampaignMenu", true) 174 -- showMenuSheet("CampaignMenu", true) 175 hideAllMenuSheets() 176 orxonox.execute("startGame StoryModeMap.oxw") 175 177 end 176 178 -
code/branches/StoryModeMap_HS16/data/levels/StoryModeMap.oxw
r11255 r11269 12 12 include("StoryModeHUD.oxo") 13 13 include("templates/lodInformation.oxt") 14 include("templates/spaceshipAssff.oxt") 15 include("templates/spaceshipEscort.oxt") 14 include("templates/StoryMode.oxt") 16 15 17 16 include("templates/lodInformation.oxt") … … 113 112 114 113 </ControllableEntity> 114 115 115 116 </Template> 116 117 … … 118 119 119 120 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/> 120 121 <!--<SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />/-->122 121 123 <SpawnPoint position="000.000, 000.000, 1000.000" orientation="0, 0, 0, -1" pawndesign= spaceshipassff/>122 <SpawnPoint position="000.000, 000.000, 1000.000" orientation="0, 0, 0, -1" pawndesign=StoryMode /> 124 123 125 124 </Scene> -
code/branches/StoryModeMap_HS16/data/overlays/StoryModeHUD.oxo
r11255 r11269 1 <!--2 <Template name="defaultHUD">3 <OverlayGroup name = "defaultHUD" scale = "1, 1">4 <ChatOverlay5 name = "chat"6 position = "0.03, 0.5"7 font = "VeraMono"8 caption = ""9 textsize = 0.02510 />11 1 12 <GametypeStatus 13 name = "state" 14 position = "0.5, 0.85" 15 font = "VeraMono" 16 textsize = 0.05 17 colour = "1.0, 1.0, 0.0, 0.8" 18 align = "center" 19 /> 20 </OverlayGroup> 21 </Template> 22 --> 23 24 <Template name="spectatorhud"> 25 <OverlayGroup name = "spectatorhud" scale = "1, 1"> 26 </OverlayGroup> 27 </Template> 28 29 30 31 <Template name="spaceshiphud"> 2 <Template name="StoryModeMap"> 32 3 <OverlayGroup name = "spaceshiphud" scale = "1, 1"> 33 4 <Map /> 34 5 35 36 37 38 <GUIOverlay39 name = "QuestGUI"40 guiname = "QuestGUI"41 visible = "false"42 />43 6 44 7 <GUIOverlay -
code/branches/StoryModeMap_HS16/src/orxonox/gametypes/StoryMode.cc
r11255 r11269 42 42 { 43 43 44 SetConsoleCommand("StoryMode", "exit", &StoryMode::exit); 44 45 RegisterUnloadableClass(StoryMode); 45 46 … … 61 62 this->gtinfo_->sendAnnounceMessage("Marvin isch Chef"); 62 63 } 63 64 void StoryMode::end()64 */ 65 void StoryMode::exit() 65 66 { 66 if (this->missionAccomplished_ && !this->gtinfo_->hasEnded()) 67 { 68 this->gtinfo_->sendAnnounceMessage("StoryMode accomplished!"); 69 70 LevelManager::getInstance().setLastFinishedCampaignMission(this->getFilename()); 67 orxout() << "s funktioniert"<< endl; 68 for (StoryMode* mission : ObjectList<StoryMode>()) 69 { //TODO: make sure that only the desired mission is ended !! This is a dirty HACK, that would end ALL missions! 70 mission->end(); 71 71 } 72 else if (!this->gtinfo_->hasEnded()) 73 this->gtinfo_->sendAnnounceMessage("StoryMode failed!"); 74 75 Gametype::end(); 72 //Gametype::end(); 76 73 } 77 74 /* 78 75 void Mission::setTeams() 79 76 { //Set pawn-colours -
code/branches/StoryModeMap_HS16/src/orxonox/gametypes/StoryMode.h
r11242 r11269 40 40 StoryMode(Context* context); 41 41 virtual ~StoryMode() {} 42 static void exit(); 42 43 43 44
Note: See TracChangeset
for help on using the changeset viewer.