Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8738 in orxonox.OLD for branches/network/src/util


Ignore:
Timestamp:
Jun 22, 2006, 5:05:44 PM (18 years ago)
Author:
rennerc
Message:

started implementing frag table

Location:
branches/network/src/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/util/multiplayer_team_deathmatch.cc

    r8708 r8738  
    8383  subscribeEvent( ES_GAME, SDLK_o );
    8484  subscribeEvent( ES_GAME, SDLK_TAB );
     85  subscribeEvent( ES_GAME, SDLK_F1 );
    8586 
    8687  this->notifier = new OrxGui::GLGuiNotifier();
     
    104105  unsubscribeEvent( ES_GAME, SDLK_o );
    105106  unsubscribeEvent( ES_GAME, SDLK_TAB );
     107  unsubscribeEvent( ES_GAME, SDLK_F1 );
    106108 
    107109  if ( this->notifier )
     
    563565    if ( event.bPressed )
    564566      this->bShowTeamChange = true;
     567  } else if ( event.type == SDLK_F1 )
     568  {
     569    if ( event.bPressed )
     570      this->showStats();
    565571  }
    566572  else if ( event.type == SDLK_TAB )
     
    623629}
    624630
    625 
    626 
    627 
     631/**
     632 * show table with frags
     633 */
     634void 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 */
     664void MultiplayerTeamDeathmatch::hideStats( )
     665{
     666}
     667
     668
     669
     670
  • branches/network/src/util/multiplayer_team_deathmatch.h

    r8708 r8738  
    100100   
    101101    void onInputEnter( const std::string & text );
     102   
     103    OrxGui::GLGuiBox* statsBox;
     104   
     105    void showStats();
     106    void hideStats();
    102107};
    103108
Note: See TracChangeset for help on using the changeset viewer.