Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8742 in orxonox.OLD for trunk/src/story_entities/menu


Ignore:
Timestamp:
Jun 23, 2006, 2:55:59 PM (18 years ago)
Author:
bensch
Message:

gui: better switch with keys

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/menu/game_menu.cc

    r8719 r8742  
    217217
    218218void GameMenu::showMultiPlayer()
    219 {}
     219{
     220  if (this->networkBox == NULL)
     221  {
     222    this->networkBox = new OrxGui::GLGuiBox();
     223    {
     224      OrxGui::GLGuiButton* clientButton = new OrxGui::GLGuiPushButton("Client");
     225      networkBox->pack(clientButton);
     226
     227      OrxGui::GLGuiButton* serverButton = new OrxGui::GLGuiPushButton("Server");
     228      networkBox->pack(serverButton);
     229
     230
     231    }
     232  }
     233
     234  this->showSecondLevelElement(this->networkBox);
     235
     236}
    220237
    221238void GameMenu::showOptionsMenu()
Note: See TracChangeset for help on using the changeset viewer.