Changeset 9110 in orxonox.OLD for trunk/src/story_entities/menu
- Timestamp:
- Jul 4, 2006, 11:18:41 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/menu/game_menu.cc
r9059 r9110 236 236 if (this->networkBox == NULL) 237 237 { 238 this->networkBox = new OrxGui::GLGuiBox( );238 this->networkBox = new OrxGui::GLGuiBox( OrxGui::Horizontal ); 239 239 { 240 OrxGui::GLGuiBox * box = new OrxGui::GLGuiBox(); 241 240 242 OrxGui::GLGuiButton* clientButton = new OrxGui::GLGuiPushButton("Client"); 241 networkBox->pack(clientButton);243 box->pack(clientButton); 242 244 clientButton->connect(SIGNAL(clientButton, released), this, SLOT(GameMenu, showClientMenu)); 243 245 244 246 OrxGui::GLGuiButton* serverButton = new OrxGui::GLGuiPushButton("Server"); 245 networkBox->pack(serverButton);247 box->pack(serverButton); 246 248 serverButton->connect(SIGNAL(serverButton, released), this, SLOT(GameMenu, showServerMenu)); 247 248 249 250 networkBox->pack( box ); 249 251 } 250 252 } … … 511 513 if ( this->serverNetworkBox ) 512 514 { 513 delete this->serverNetworkBox; 514 this->serverNetworkBox = NULL; 515 this->networkBox->unpack( this->serverNetworkBox ); 516 this->serverNetworkBox->hideAll(); 517 //delete this->serverNetworkBox; 518 //this->serverNetworkBox = NULL; 515 519 } 516 520 … … 535 539 } 536 540 541 this->networkBox->pack( this->clientNetworkBox ); 542 537 543 this->clientNetworkBox->showAll(); 538 544 539 this->clientNetworkBox->setAbsCoor2D( 300.0f, 100.0f );545 //this->clientNetworkBox->setAbsCoor2D( 300.0f, 100.0f ); 540 546 } 541 547 … … 547 553 if ( this->clientNetworkBox ) 548 554 { 549 delete this->clientNetworkBox; 550 this->clientNetworkBox = NULL; 555 this->networkBox->unpack( this->clientNetworkBox ); 556 this->clientNetworkBox->hideAll(); 557 //delete this->clientNetworkBox; 558 //this->clientNetworkBox = NULL; 551 559 } 552 560 … … 569 577 } 570 578 579 this->networkBox->pack( this->serverNetworkBox ); 580 571 581 this->serverNetworkBox->showAll(); 572 582 573 this->serverNetworkBox->setAbsCoor2D( 300.0f, 100.0f );583 //this->serverNetworkBox->setAbsCoor2D( 300.0f, 100.0f ); 574 584 } 575 585
Note: See TracChangeset
for help on using the changeset viewer.