Changeset 9049 in orxonox.OLD for branches/multi_player_map/src/util
- Timestamp:
- Jul 3, 2006, 5:04:47 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/multi_player_map/src/util/multiplayer_team_deathmatch.cc
r9023 r9049 83 83 subscribeEvent( ES_GAME, SDLK_TAB ); 84 84 subscribeEvent( ES_GAME, SDLK_F1 ); 85 subscribeEvent( ES_MENU, SDLK_F1 );86 85 subscribeEvent( ES_MENU, KeyMapper::PEV_FIRE1 ); 87 86 … … 99 98 unsubscribeEvent( ES_GAME, SDLK_TAB ); 100 99 unsubscribeEvent( ES_GAME, SDLK_F1 ); 101 unsubscribeEvent( ES_MENU, SDLK_F1 );102 100 unsubscribeEvent( ES_MENU, KeyMapper::PEV_FIRE1 ); 103 101 … … 534 532 } else if ( event.type == SDLK_F1 ) 535 533 { 534 if ( this->statsBox && !this->bLocalPlayerDead && event.bPressed ) 535 { 536 PRINTF(0)("hide stats\n"); 537 this->hideStats(); 538 } 536 539 if ( !this->statsBox && event.bPressed ) 537 540 { 538 541 PRINTF(0)("show stats\n"); 539 542 this->showStats(); 540 }541 if ( this->statsBox && !this->bLocalPlayerDead && event.bPressed && this->table->rowCount() != 0 && this->table->columnCount() != 0 )542 {543 PRINTF(0)("hide stats\n");544 this->hideStats();545 543 } 546 544 } … … 613 611 void MultiplayerTeamDeathmatch::showStats( ) 614 612 { 615 EventHandler::getInstance()->pushState( ES_MENU );616 613 statsBox = new OrxGui::GLGuiBox(); 617 614 statsBox->setAbsCoor2D( 300, 100 ); 618 615 619 this->table = new OrxGui::GLGuiTable( 0,0);616 this->table = new OrxGui::GLGuiTable(5,5); 620 617 621 618 statsBox->pack( this->table ); … … 634 631 statsBox = NULL; 635 632 } 636 637 EventHandler::getInstance()->popState();638 633 } 639 634
Note: See TracChangeset
for help on using the changeset viewer.