Changeset 9396 in orxonox.OLD for branches/proxy/src/story_entities/menu
- Timestamp:
- Jul 23, 2006, 10:07:23 PM (18 years ago)
- Location:
- branches/proxy/src/story_entities/menu
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/story_entities/menu/game_menu.cc
r9369 r9396 574 574 OrxGui::GLGuiButton* createButton = new OrxGui::GLGuiPushButton("Create Server"); 575 575 serverNetworkBox->pack(createButton); 576 createButton->released.connect(this, &GameMenu::create Server);576 createButton->released.connect(this, &GameMenu::createMasterServer); 577 577 } 578 578 } … … 593 593 594 594 State::setOnline(true); 595 NetworkManager::getInstance()-> establishConnection( this->ipInputLine->_getText(), 9999 );595 NetworkManager::getInstance()->createClient( this->ipInputLine->_getText(), 9999 ); 596 596 597 597 Preferences::getInstance()->setString( "multiplayer", "lastVisitedServer", this->ipInputLine->_getText() ); … … 600 600 } 601 601 602 void GameMenu::create Server( )602 void GameMenu::createMasterServer( ) 603 603 { 604 604 PRINTF(0)("Create server\n" ); 605 605 606 606 State::setOnline(true); 607 NetworkManager::getInstance()->create Server( 9999 );607 NetworkManager::getInstance()->createMasterServer( 9999 ); 608 608 609 609 this->startLevel( 5 ); -
branches/proxy/src/story_entities/menu/game_menu.h
r9059 r9396 50 50 51 51 void showServerMenu(); 52 void create Server();52 void createMasterServer(); 53 53 54 54
Note: See TracChangeset
for help on using the changeset viewer.