Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10334 in orxonox.OLD for branches


Ignore:
Timestamp:
Jan 24, 2007, 4:13:21 PM (18 years ago)
Author:
hejja
Message:

Buttons eingefuegt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/world_entities/questGUI/quest_gui.cc

    r10277 r10334  
    171171    OrxGui::GLGuiBox* rewardBox = new OrxGui::GLGuiBox(OrxGui::Horizontal);
    172172    {
     173      rewardBox->setBackgroundTexture("maps/rand-unten.png");
    173174      OrxGui::GLGuiImage* rewardImage = new OrxGui::GLGuiImage();
    174175      rewardImage->setWidgetSize(100, 100);
     
    188189    OrxGui::GLGuiBox* answerBox = new OrxGui::GLGuiBox(OrxGui::Horizontal);
    189190    {
     191      OrxGui::GLGuiImage* placeImage = new OrxGui::GLGuiImage();
     192      placeImage->setWidgetSize(20, 10);
     193      placeImage->loadImageFromFile("maps/schwarz.png");
     194      placeImage->show();
     195      answerBox->pack(placeImage);
     196     
    190197      OrxGui::GLGuiBox* acceptBox = new OrxGui::GLGuiBox(OrxGui::Horizontal);
    191198      {
    192         //acceptBox->setBackgroundTexture("maps/rand-oben.png");
    193         OrxGui::GLGuiButton* acceptButton = new OrxGui::GLGuiPushButton("Accept");
     199        acceptBox->setBackgroundTexture("maps/accept.png");
     200        //acceptBox->setBackgroundColor(Color::black, OrxGui::Normal);
     201        //acceptBox->setBackgroundColor(Color::green, OrxGui::Selected);
     202        OrxGui::GLGuiButton* acceptButton = new OrxGui::GLGuiPushButton("        ");
    194203        acceptButton->released.connect(this, &QuestGUI::accept);
    195         acceptBox->setBorderTop(10);
    196         acceptBox->setBorderRight(10);
    197         acceptBox->setBorderLeft(10);
    198         acceptBox->setBorderBottom(0);
     204        acceptBox->setBorderTop(5);
     205        acceptBox->setBorderRight(5);
     206        acceptBox->setBorderLeft(5);
     207        acceptBox->setBorderBottom(5);
    199208        acceptBox->pack(acceptButton);
    200209      }
    201210      answerBox->pack(acceptBox);
    202211     
    203       OrxGui::GLGuiImage* placeImage = new OrxGui::GLGuiImage();
    204       placeImage->setWidgetSize(300, 10);
    205       placeImage->loadImageFromFile("maps/schwarz.png");
    206       placeImage->show();
    207       answerBox->pack(placeImage);
     212      OrxGui::GLGuiImage* placeImage2 = new OrxGui::GLGuiImage();
     213      placeImage2->setWidgetSize(300, 10);
     214      placeImage2->loadImageFromFile("maps/schwarz.png");
     215      placeImage2->show();
     216      answerBox->pack(placeImage2);
    208217     
    209218      OrxGui::GLGuiBox* refuseBox = new OrxGui::GLGuiBox(OrxGui::Horizontal);
    210219      {
    211         //refuseBox->setBackgroundTexture("maps/rand-oben.png");
    212         OrxGui::GLGuiButton* refuseButton = new OrxGui::GLGuiPushButton("Refuse");
     220        refuseBox->setBackgroundTexture("maps/refuserout.png");
     221        //refuseBox->setBackgroundColor(Color::black, OrxGui::Normal);
     222        //refuseBox->setBackgroundColor(Color::green, OrxGui::Selected);
     223        OrxGui::GLGuiButton* refuseButton = new OrxGui::GLGuiPushButton("        ");
    213224        refuseButton->released.connect(this, &QuestGUI::refuse);
    214         refuseBox->setBorderTop(10);
    215         refuseBox->setBorderRight(10);
    216         refuseBox->setBorderLeft(10);
    217         refuseBox->setBorderBottom(0);
     225        refuseBox->setBorderTop(5);
     226        refuseBox->setBorderRight(5);
     227        refuseBox->setBorderLeft(5);
     228        refuseBox->setBorderBottom(5);
    218229        refuseBox->pack(refuseButton);
    219230      }
    220       answerBox->setBorderTop(0);
     231      answerBox->setBorderTop(15);
    221232      answerBox->setBorderRight(0);
    222233      answerBox->setBorderLeft(0);
     
    268279  delete this->questBox;
    269280  this->questBox = NULL;
    270 }
     281  this->bKillGui = false;
     282}
Note: See TracChangeset for help on using the changeset viewer.