Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9127 in orxonox.OLD for branches/presentation/src/story_entities


Ignore:
Timestamp:
Jul 4, 2006, 2:24:43 PM (18 years ago)
Author:
bensch
Message:

presentation/src: mouse-cursor rocks everywhere

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/story_entities/menu/game_menu.cc

    r9115 r9127  
    128128  this->levelsBox = NULL;
    129129  this->networkBox = NULL;
    130  
     130
    131131  this->clientNetworkBox = NULL;
    132132  this->serverNetworkBox = NULL;
     
    241241    {
    242242      OrxGui::GLGuiBox * box = new OrxGui::GLGuiBox();
    243      
     243
    244244      OrxGui::GLGuiButton* clientButton = new OrxGui::GLGuiPushButton("Client");
    245245      box->pack(clientButton);
     
    249249      box->pack(serverButton);
    250250      serverButton->connect(SIGNAL(serverButton, released), this, SLOT(GameMenu, showServerMenu));
    251      
     251
    252252      networkBox->pack( box );
    253253    }
     
    342342  OrxGui::GLGuiHandler::getInstance()->activateCursor();
    343343  OrxGui::GLGuiHandler::getInstance()->activate();
    344   OrxGui::GLGuiHandler::getInstance()->cursor()->loadTextureSequence(ResourceManager::getInstance()->getDataDir() + "/" + "maps/reap_mouse/reap_mouse_##.png", 1, 49);
    345344
    346345  /* now call the underlying*/
     
    520519    //this->serverNetworkBox = NULL;
    521520  }
    522  
     521
    523522  if ( !this->clientNetworkBox )
    524523  {
     
    528527      text->setText( "Host:" );
    529528      this->clientNetworkBox->pack( text );
    530      
     529
    531530      this->ipInputLine = new OrxGui::GLGuiInputLine( );
    532531      this->ipInputLine->setText( Preferences::getInstance()->getString( "multiplayer", "lastVisitedServer", "localhost" ) );
     
    534533      this->ipInputLine->connect(SIGNAL(ipInputLine, enterPushed), this, SLOT(GameMenu, connectToServer));
    535534      this->ipInputLine->select();
    536      
     535
    537536      OrxGui::GLGuiButton* connectButton = new OrxGui::GLGuiPushButton("Connect");
    538537      clientNetworkBox->pack(connectButton);
     
    540539    }
    541540  }
    542  
     541
    543542  this->networkBox->pack( this->clientNetworkBox );
    544  
     543
    545544  this->clientNetworkBox->showAll();
    546  
     545
    547546  //this->clientNetworkBox->setAbsCoor2D( 300.0f, 100.0f );
    548547}
     
    560559    //this->clientNetworkBox = NULL;
    561560  }
    562  
     561
    563562  if ( !this->serverNetworkBox )
    564563  {
     
    568567      text->setText( "Map:" );
    569568      this->serverNetworkBox->pack( text );
    570      
     569
    571570      OrxGui::GLGuiText * text2 = new OrxGui::GLGuiText();
    572571      text2->setText( "Multiplayer TeamDeathMatch Arena" );
    573572      this->serverNetworkBox->pack( text2 );
    574      
     573
    575574      OrxGui::GLGuiButton* createButton = new OrxGui::GLGuiPushButton("Create Server");
    576575      serverNetworkBox->pack(createButton);
     
    578577    }
    579578  }
    580  
     579
    581580  this->networkBox->pack( this->serverNetworkBox );
    582  
     581
    583582  this->serverNetworkBox->showAll();
    584  
     583
    585584  //this->serverNetworkBox->setAbsCoor2D( 300.0f, 100.0f );
    586585}
     
    592591{
    593592  PRINTF(0)("Connecting to %s\n", this->ipInputLine->_getText().c_str() );
    594  
     593
    595594  State::setOnline(true);
    596595  NetworkManager::getInstance()->establishConnection( this->ipInputLine->_getText(), 9999 );
    597  
     596
    598597  Preferences::getInstance()->setString( "multiplayer", "lastVisitedServer", this->ipInputLine->_getText() );
    599  
     598
    600599  this->startLevel( 5 );
    601600}
     
    604603{
    605604  PRINTF(0)("Create server\n" );
    606  
     605
    607606  State::setOnline(true);
    608607  NetworkManager::getInstance()->createServer( 9999 );
    609  
     608
    610609  this->startLevel( 5 );
    611610}
Note: See TracChangeset for help on using the changeset viewer.