Changeset 9911 in orxonox.OLD for branches/network/src/util
- Timestamp:
- Nov 1, 2006, 2:22:00 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/util/multiplayer_team_deathmatch.cc
r9907 r9911 148 148 box->setAbsCoor2D( 300, 100 ); 149 149 150 if( SharedNetworkData::getInstance()->isClient() || SharedNetworkData::getInstance()->isProxyServerActive()) 151 { 152 OrxGui::GLGuiPushButton * buttonSpectator = new OrxGui::GLGuiPushButton("Spectator"); 153 box->pack( buttonSpectator ); 154 buttonSpectator->released.connect(this, &MultiplayerTeamDeathmatch::onButtonSpectator); 155 156 OrxGui::GLGuiPushButton * buttonRandom = new OrxGui::GLGuiPushButton("Random"); 157 box->pack( buttonRandom ); 158 buttonRandom->released.connect(this, &MultiplayerTeamDeathmatch::onButtonRandom); 159 160 OrxGui::GLGuiPushButton * buttonTeam0 = new OrxGui::GLGuiPushButton("Blue Team"); 161 box->pack( buttonTeam0 ); 162 buttonTeam0->released.connect(this, &MultiplayerTeamDeathmatch::onButtonTeam0); 163 164 OrxGui::GLGuiPushButton * buttonTeam1 = new OrxGui::GLGuiPushButton("Red Team"); 165 box->pack( buttonTeam1 ); 166 buttonTeam1->released.connect(this, &MultiplayerTeamDeathmatch::onButtonTeam1); 167 } 168 else 169 { 170 OrxGui::GLGuiText* text = new OrxGui::GLGuiText(); 171 text->setText("Server Mode: not able to play at this node"); 172 box->pack( text); 173 } 174 150 OrxGui::GLGuiPushButton * buttonSpectator = new OrxGui::GLGuiPushButton("Spectator"); 151 box->pack( buttonSpectator ); 152 buttonSpectator->released.connect(this, &MultiplayerTeamDeathmatch::onButtonSpectator); 153 154 OrxGui::GLGuiPushButton * buttonRandom = new OrxGui::GLGuiPushButton("Random"); 155 box->pack( buttonRandom ); 156 buttonRandom->released.connect(this, &MultiplayerTeamDeathmatch::onButtonRandom); 157 158 OrxGui::GLGuiPushButton * buttonTeam0 = new OrxGui::GLGuiPushButton("Blue Team"); 159 box->pack( buttonTeam0 ); 160 buttonTeam0->released.connect(this, &MultiplayerTeamDeathmatch::onButtonTeam0); 161 162 OrxGui::GLGuiPushButton * buttonTeam1 = new OrxGui::GLGuiPushButton("Red Team"); 163 box->pack( buttonTeam1 ); 164 buttonTeam1->released.connect(this, &MultiplayerTeamDeathmatch::onButtonTeam1); 175 165 176 166 if ( bShowTeamChange ) … … 307 297 308 298 if ( team == 0 || team == 1 ) 309 return ObjectListBase::retrieveIdentity(" TurbineHover");299 return ObjectListBase::retrieveIdentity("FPSPlayer"); 310 300 311 301 assert( false );
Note: See TracChangeset
for help on using the changeset viewer.