Changeset 9108 in orxonox.OLD for branches/presentation
- Timestamp:
- Jul 4, 2006, 11:10:19 AM (19 years ago)
- Location:
- branches/presentation/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/lib/gui/gl/glgui_box.cc
r8717 r9108 59 59 void GLGuiBox::unpack(GLGuiWidget* widget) 60 60 { 61 assert(widget == NULL);61 assert(widget != NULL); 62 62 63 63 std::vector<GLGuiWidget*>::iterator delWidget = std::find(this->children.begin(), this->children.end(), widget); -
branches/presentation/src/story_entities/menu/game_menu.cc
r9059 r9108 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.