Changeset 8738 in orxonox.OLD for branches/network/src
- Timestamp:
- Jun 22, 2006, 5:05:44 PM (18 years ago)
- Location:
- branches/network/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/util/multiplayer_team_deathmatch.cc
r8708 r8738 83 83 subscribeEvent( ES_GAME, SDLK_o ); 84 84 subscribeEvent( ES_GAME, SDLK_TAB ); 85 subscribeEvent( ES_GAME, SDLK_F1 ); 85 86 86 87 this->notifier = new OrxGui::GLGuiNotifier(); … … 104 105 unsubscribeEvent( ES_GAME, SDLK_o ); 105 106 unsubscribeEvent( ES_GAME, SDLK_TAB ); 107 unsubscribeEvent( ES_GAME, SDLK_F1 ); 106 108 107 109 if ( this->notifier ) … … 563 565 if ( event.bPressed ) 564 566 this->bShowTeamChange = true; 567 } else if ( event.type == SDLK_F1 ) 568 { 569 if ( event.bPressed ) 570 this->showStats(); 565 571 } 566 572 else if ( event.type == SDLK_TAB ) … … 623 629 } 624 630 625 626 627 631 /** 632 * show table with frags 633 */ 634 void MultiplayerTeamDeathmatch::showStats( ) 635 { 636 EventHandler::getInstance()->pushState( ES_MENU ); 637 statsBox = new OrxGui::GLGuiBox(); 638 statsBox->setAbsCoor2D( 300, 100 ); 639 640 OrxGui::GLGuiTable * table = new OrxGui::GLGuiTable( 4, 4 ); 641 642 statsBox->pack( table ); 643 644 //table->setColumnWidth( 0, 500.0f ); 645 //table->setColumnWidth( 1, 500.0f ); 646 647 //table->setRowHeight( 0, 500 ); 648 649 table->setEntry( 0, 1, "Red Team" ); 650 table->setEntry( 1, 1, "Blue Team" ); 651 652 //table->setRowHeight( 1, 500 ); 653 //table->setRowHeight( 2, 500 ); 654 655 //table->setEntry( 0, 2, "Johan Vogel" ); 656 //table->setEntry( 1, 2, "Koebi Kuhn" ); 657 658 statsBox->showAll(); 659 } 660 661 /** 662 * hide table with frags 663 */ 664 void MultiplayerTeamDeathmatch::hideStats( ) 665 { 666 } 667 668 669 670 -
branches/network/src/util/multiplayer_team_deathmatch.h
r8708 r8738 100 100 101 101 void onInputEnter( const std::string & text ); 102 103 OrxGui::GLGuiBox* statsBox; 104 105 void showStats(); 106 void hideStats(); 102 107 }; 103 108
Note: See TracChangeset
for help on using the changeset viewer.