Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 10, 2007, 4:29:00 PM (18 years ago)
Author:
hejja
Message:

more

File:
1 edited

Legend:

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

    r10213 r10222  
    44   orxonox - the future of 3D-vertical-scrollers
    55
    6    Copyright (C) 2004 orx
     6   Copyright (C) 1004 orx
    77
    88   This program is free software; you can redistribute it and/or modify
     
    7171  this->bKillGui = false;
    7272 
    73   this->background = "maps/pogo_bunny.png";
     73  this->background = "maps/rand2.png";
    7474
    7575  this->myQuest = new Quest(root);
     
    108108  {
    109109    this->questBox= new OrxGui::GLGuiBox(OrxGui::Vertical);
     110    questBox->setBorderTop(10);
     111    questBox->setBorderRight(10);
     112    questBox->setBorderBottom(20);
     113    questBox->setBorderLeft(10);
     114    this->questBox->setBackgroundTexture(background);
    110115    this->bKillGui = false;
    111     this->questBox->setBackgroundTexture(background);
    112116   
    113117    OrxGui::GLGuiBox* headerBox = new OrxGui::GLGuiBox(OrxGui::Horizontal);
     
    115119      OrxGui::GLGuiImage* questImage = new OrxGui::GLGuiImage();
    116120      questImage->setWidgetSize(100, 100);
    117 
    118121      questImage->loadImageFromFile(this->myQuest->getQuestPicture());
    119122      questImage->show();
    120       headerBox->setBackgroundTexture("maps/pogo_bunny.png");
    121123      headerBox->pack(questImage);
    122124     
    123125      OrxGui::GLGuiBox* outlineBox = new OrxGui::GLGuiBox(OrxGui::Vertical);
    124126      {
    125         OrxGui::GLGuiMultiLineText* questDifficulty = new OrxGui::GLGuiMultiLineText();
    126         questDifficulty->setText(this->myQuest->getQuestDifficulty());
    127         outlineBox->setBackgroundTexture("pogo_bunny.png");
    128         outlineBox->pack(questDifficulty);
     127        OrxGui::GLGuiMultiLineText* questDetails = new OrxGui::GLGuiMultiLineText();
     128        questDetails->setText(this->myQuest->getQuestDifficulty());
     129        questDetails->append(this->myQuest->getQuestPersons());
     130        outlineBox->setBorderTop(0);
     131        outlineBox->setBorderRight(0);
     132        outlineBox->setBorderBottom(20);
     133        outlineBox->setBorderLeft(0);
     134        outlineBox->pack(questDetails);
    129135      }
    130       headerBox->setBorderBottom(40);
     136      headerBox->setBorderTop(0);
     137      headerBox->setBorderRight(0);
     138      headerBox->setBorderBottom(20);
     139      headerBox->setBorderLeft(0);
    131140      headerBox->pack(outlineBox);
    132141    }
     
    136145      OrxGui::GLGuiMultiLineText* questTxt = new OrxGui::GLGuiMultiLineText();
    137146      questTxt->setText(this->myQuest->getQuestDescription());
     147      labelBox->setBorderTop(0);
     148      labelBox->setBorderRight(0);
     149      labelBox->setBorderBottom(20);
     150      labelBox->setBorderLeft(0);
    138151      labelBox->pack(questTxt);
    139       labelBox->setBorderBottom(40);
    140152    }
    141153   
     
    151163      OrxGui::GLGuiMultiLineText* rewardTxt = new OrxGui::GLGuiMultiLineText();
    152164      rewardTxt->setText(this->myQuest->getRewardDescription());
    153       rewardBox->setBorderBottom(40);
     165      rewardBox->setBorderTop(0);
     166      rewardBox->setBorderRight(0);
     167      rewardBox->setBorderBottom(20);
     168      rewardBox->setBorderLeft(0);
    154169      rewardBox->pack(rewardTxt);
    155170    }
     
    181196    this->questBox->showAll();
    182197   
    183     this->questBox->setAbsCoor2D(300, 200);
     198    this->questBox->setAbsCoor2D(300, 100);
    184199    OrxGui::GLGuiHandler::getInstance()->activate();
    185200    OrxGui::GLGuiHandler::getInstance()->activateCursor();
Note: See TracChangeset for help on using the changeset viewer.