Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8004 in orxonox.OLD for branches/gui/src/story_entities


Ignore:
Timestamp:
May 31, 2006, 12:35:02 AM (19 years ago)
Author:
bensch
Message:

gui: box works pretty good now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/story_entities/simple_game_menu.cc

    r8003 r8004  
    9090    ///
    9191    OrxGui::GLGuiButton* dnpb = new OrxGui::GLGuiCheckButton("Push the button");
    92     dnpb->show();
    93     dnpb->setAbsCoor2D(350, 50);
    9492
    9593    box->pack(dnpb);
    9694
    9795    OrxGui::GLGuiPushButton* rdnpb = new OrxGui::GLGuiPushButton("Quit ORXONOX!!");
    98     rdnpb->show();
    99     rdnpb->setAbsCoor2D(200, 180);
    10096    rdnpb->connect(SIGNAL(rdnpb, released), this, SLOT(SimpleGameMenu, quitMenu));
    10197
     
    105101    input->setText("input some text here");
    106102    input->connect(SIGNAL(input, textChanged), this, SLOT(SimpleGameMenu, TEST));
    107     input->show();
    108     input->setAbsCoor2D(200, 230);
    109103    box->pack(input);
    110104
    111105    OrxGui::GLGuiSlider* slider = new OrxGui::GLGuiSlider();
    112106    slider->connect(SIGNAL(slider, valueChanged), this, SLOT(SimpleGameMenu, TEST));
    113     slider->connect(SIGNAL(slider, valueChanged), dnpb, SLOT(OrxGui::GLGuiWidget, setBackgroundColor));
     107    slider->connect(SIGNAL(slider, valueChanged), box, SLOT(OrxGui::GLGuiWidget, setBackgroundColor));
    114108    slider->setRange(0, 1);
    115109    slider->setValue(slider->min());
    116     slider->show();
    117     slider->setAbsCoor2D(200, 270);
    118110    box->pack(slider);
    119111  }
    120112  box->setAbsCoor2D(50, 200);
     113  box->showAll();
    121114  /////
    122115}
Note: See TracChangeset for help on using the changeset viewer.