- Timestamp:
- Jul 4, 2006, 2:24:43 PM (18 years ago)
- Location:
- branches/presentation/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/lib/gui/gl/glgui_handler.cc
r9022 r9127 33 33 /// TAKE THIS OUT OF HERE. 34 34 #include "graphics_engine.h" 35 #include "loading/resource_manager.h" 35 36 36 37 namespace OrxGui … … 74 75 this->_cursor->show(); 75 76 this->_cursor->setMaxBorders(Vector2D(GraphicsEngine::getInstance()->getResolutionX(), GraphicsEngine::getInstance()->getResolutionY())); 77 78 _cursor->loadTextureSequence(ResourceManager::getInstance()->getDataDir() + "/" + "maps/reap_mouse/reap_mouse_##.png", 1, 49); 79 76 80 } 77 81 -
branches/presentation/src/story_entities/menu/game_menu.cc
r9115 r9127 128 128 this->levelsBox = NULL; 129 129 this->networkBox = NULL; 130 130 131 131 this->clientNetworkBox = NULL; 132 132 this->serverNetworkBox = NULL; … … 241 241 { 242 242 OrxGui::GLGuiBox * box = new OrxGui::GLGuiBox(); 243 243 244 244 OrxGui::GLGuiButton* clientButton = new OrxGui::GLGuiPushButton("Client"); 245 245 box->pack(clientButton); … … 249 249 box->pack(serverButton); 250 250 serverButton->connect(SIGNAL(serverButton, released), this, SLOT(GameMenu, showServerMenu)); 251 251 252 252 networkBox->pack( box ); 253 253 } … … 342 342 OrxGui::GLGuiHandler::getInstance()->activateCursor(); 343 343 OrxGui::GLGuiHandler::getInstance()->activate(); 344 OrxGui::GLGuiHandler::getInstance()->cursor()->loadTextureSequence(ResourceManager::getInstance()->getDataDir() + "/" + "maps/reap_mouse/reap_mouse_##.png", 1, 49);345 344 346 345 /* now call the underlying*/ … … 520 519 //this->serverNetworkBox = NULL; 521 520 } 522 521 523 522 if ( !this->clientNetworkBox ) 524 523 { … … 528 527 text->setText( "Host:" ); 529 528 this->clientNetworkBox->pack( text ); 530 529 531 530 this->ipInputLine = new OrxGui::GLGuiInputLine( ); 532 531 this->ipInputLine->setText( Preferences::getInstance()->getString( "multiplayer", "lastVisitedServer", "localhost" ) ); … … 534 533 this->ipInputLine->connect(SIGNAL(ipInputLine, enterPushed), this, SLOT(GameMenu, connectToServer)); 535 534 this->ipInputLine->select(); 536 535 537 536 OrxGui::GLGuiButton* connectButton = new OrxGui::GLGuiPushButton("Connect"); 538 537 clientNetworkBox->pack(connectButton); … … 540 539 } 541 540 } 542 541 543 542 this->networkBox->pack( this->clientNetworkBox ); 544 543 545 544 this->clientNetworkBox->showAll(); 546 545 547 546 //this->clientNetworkBox->setAbsCoor2D( 300.0f, 100.0f ); 548 547 } … … 560 559 //this->clientNetworkBox = NULL; 561 560 } 562 561 563 562 if ( !this->serverNetworkBox ) 564 563 { … … 568 567 text->setText( "Map:" ); 569 568 this->serverNetworkBox->pack( text ); 570 569 571 570 OrxGui::GLGuiText * text2 = new OrxGui::GLGuiText(); 572 571 text2->setText( "Multiplayer TeamDeathMatch Arena" ); 573 572 this->serverNetworkBox->pack( text2 ); 574 573 575 574 OrxGui::GLGuiButton* createButton = new OrxGui::GLGuiPushButton("Create Server"); 576 575 serverNetworkBox->pack(createButton); … … 578 577 } 579 578 } 580 579 581 580 this->networkBox->pack( this->serverNetworkBox ); 582 581 583 582 this->serverNetworkBox->showAll(); 584 583 585 584 //this->serverNetworkBox->setAbsCoor2D( 300.0f, 100.0f ); 586 585 } … … 592 591 { 593 592 PRINTF(0)("Connecting to %s\n", this->ipInputLine->_getText().c_str() ); 594 593 595 594 State::setOnline(true); 596 595 NetworkManager::getInstance()->establishConnection( this->ipInputLine->_getText(), 9999 ); 597 596 598 597 Preferences::getInstance()->setString( "multiplayer", "lastVisitedServer", this->ipInputLine->_getText() ); 599 598 600 599 this->startLevel( 5 ); 601 600 } … … 604 603 { 605 604 PRINTF(0)("Create server\n" ); 606 605 607 606 State::setOnline(true); 608 607 NetworkManager::getInstance()->createServer( 9999 ); 609 608 610 609 this->startLevel( 5 ); 611 610 }
Note: See TracChangeset
for help on using the changeset viewer.