Changeset 9972
- Timestamp:
- Jan 4, 2014, 2:28:19 PM (11 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/data/gui/scripts/MiscConfigMenu.lua
r9970 r9972 30 30 table.insert(P.commandList, "Gametype initialStartCountdown_") 31 31 table.insert(P.commandList, "Gametype bAutoStart_") 32 table.insert(P.commandList, "Gametype bAutoEnd_")32 --table.insert(P.commandList, "Gametype bAutoEnd_") 33 33 table.insert(P.commandList, "Gametype numberOfBots_") 34 34 table.insert(P.commandList, "UnderAttack gameTime_") … … 55 55 table.insert(P.nameList, "Start countdown") 56 56 table.insert(P.nameList, "Autostart") 57 table.insert(P.nameList, "Autoend")57 --table.insert(P.nameList, "Autoend") 58 58 table.insert(P.nameList, "Number of Bots") 59 59 table.insert(P.nameList, "UnderAttack: game time") -
code/trunk/src/orxonox/gametypes/Gametype.cc
r9969 r9972 35 35 #include "core/GameMode.h" 36 36 #include "core/command/ConsoleCommand.h" 37 #include "gamestates/GSLevel.h"37 //#include "gamestates/GSLevel.h" 38 38 39 39 #include "infos/PlayerInfo.h" … … 62 62 this->bAutoStart_ = false; 63 63 this->bForceSpawn_ = false; 64 this->bAutoEnd_ = true;64 //this->bAutoEnd_ = true; 65 65 this->numberOfBots_ = 0; 66 66 … … 106 106 SetConfigValue(bAutoStart_, false); 107 107 SetConfigValue(bForceSpawn_, false); 108 SetConfigValue(bAutoEnd_, true);108 //SetConfigValue(bAutoEnd_, true); 109 109 SetConfigValue(numberOfBots_, 0); 110 110 SetConfigValue(scoreboardTemplate_, "defaultScoreboard"); … … 154 154 { 155 155 this->gtinfo_->end(); 156 if (this->bAutoEnd_)157 this->showMenuTimer_.setTimer(2.5f, true, createExecutor(createFunctor(&Gametype::showMenu, this)));156 //if (this->bAutoEnd_) 157 // this->showMenuTimer_.setTimer(2.5f, true, createExecutor(createFunctor(&Gametype::showMenu, this))); 158 158 159 159 for (std::map<PlayerInfo*, Player>::iterator it = this->players_.begin(); it != this->players_.end(); ++it) … … 519 519 } 520 520 521 void Gametype::showMenu()522 {523 GSLevel::startMainMenu();524 }521 //void Gametype::showMenu() 522 //{ 523 // GSLevel::startMainMenu(); 524 //} 525 525 } -
code/trunk/src/orxonox/gametypes/Gametype.h
r9969 r9972 40 40 #include "tools/interfaces/Tickable.h" 41 41 #include "infos/GametypeInfo.h" 42 #include "tools/Timer.h"42 //#include "tools/Timer.h" 43 43 44 44 namespace orxonox … … 159 159 inline unsigned int getNumberOfPlayers() const 160 160 { return this->players_.size(); } 161 void showMenu();161 //void showMenu(); 162 162 163 163 … … 176 176 bool bAutoStart_; 177 177 bool bForceSpawn_; 178 bool bAutoEnd_;178 //bool bAutoEnd_; 179 179 180 180 float time_; … … 199 199 ConsoleCommand* dedicatedKillBots_; 200 200 /* HACK HACK HACK */ 201 Timer showMenuTimer_;201 //Timer showMenuTimer_; 202 202 }; 203 203 }
Note: See TracChangeset
for help on using the changeset viewer.