Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10164 in orxonox.OLD for branches/gui/src/world_entities


Ignore:
Timestamp:
Jan 3, 2007, 2:56:10 PM (18 years ago)
Author:
hejja
Message:

border made

Location:
branches/gui/src/world_entities
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/world_entities/elements/glgui_energywidget.cc

    r9406 r10164  
    3737    this->_valueText.setChangedTextColor(Color::white);
    3838
    39     //this->setBackgroundTexture("maps/gui_element_background_2.png");
     39    this->setBackgroundTexture("maps/gui_element_background_2.png");
    4040    this->setBackgroundColor(Color(.5,.5,.5,1));
    4141
  • branches/gui/src/world_entities/questGUI/quest.cc

    r10129 r10164  
    3737#include "glgui.h"
    3838#include "menu/glgui_imagebutton.h"
    39 #include "glgui_text.h"
     39#include "glgui_multiline_text.h"
    4040#include <glgui_image.h>
    4141
  • branches/gui/src/world_entities/questGUI/quest_gui.cc

    r10129 r10164  
    4343#include "glgui.h"
    4444#include "menu/glgui_imagebutton.h"
    45 #include "glgui_text.h"
     45#include "glgui_multiline_text.h"
    4646#include <glgui_image.h>
    4747
     
    7070 
    7171  this->bKillGui = false;
     72 
     73  this->background = "/pictures/map.jpg";
    7274
    7375  this->myQuest = new Quest(root);
     
    114116      questImage->loadImageFromFile(this->myQuest->getQuestPicture());
    115117      questImage->show();
    116       questImage->setBorderBottom(20);
     118      //questImage->setBorderBottom(20);
    117119      headerBox->pack(questImage);
    118       headerBox->setBorderBottom(20);
    119120     
    120121      OrxGui::GLGuiBox* outlineBox = new OrxGui::GLGuiBox(OrxGui::Vertical);
    121122      {
    122         OrxGui::GLGuiText* questDifficulty = new OrxGui::GLGuiText();
     123        OrxGui::GLGuiMultiLineText* questDifficulty = new OrxGui::GLGuiMultiLineText();
    123124        questDifficulty->setText(this->myQuest->getQuestDifficulty());
    124125        outlineBox->pack(questDifficulty);
    125126      }
    126127      headerBox->pack(outlineBox);
    127       headerBox->setBorderBottom(75);
     128      headerBox->setBorderBottom(100);
    128129     
    129130    }
     
    131132    OrxGui::GLGuiBox* labelBox = new OrxGui::GLGuiBox(OrxGui::Vertical);
    132133    {
    133       OrxGui::GLGuiText* questTxt = new OrxGui::GLGuiText();
     134      OrxGui::GLGuiMultiLineText* questTxt = new OrxGui::GLGuiMultiLineText();
    134135      questTxt->setText(this->myQuest->getQuestDescription());
    135136      labelBox->pack(questTxt);
    136       labelBox->setBorderBottom(75);
     137      labelBox->setBorderBottom(100);
     138      labelBox->setBorderTop(100);
    137139    }
    138140   
     
    145147      rewardImage->show();
    146148      rewardBox->pack(rewardImage);
    147       rewardImage->setBorderBottom(50);
    148    
    149       OrxGui::GLGuiText* rewardTxt = new OrxGui::GLGuiText();
     149      //rewardImage->setBorderBottom(50);
     150   
     151      OrxGui::GLGuiMultiLineText* rewardTxt = new OrxGui::GLGuiMultiLineText();
    150152      rewardTxt->setText(this->myQuest->getRewardDescription());
    151153      rewardBox->pack(rewardTxt);
    152       rewardBox->setBorderBottom(75);
     154      rewardBox->setBorderBottom(100);
    153155     
    154156    }
     
    172174    this->questBox->showAll();
    173175   
    174     this->questBox->setAbsCoor2D(300, 40);
     176    this->questBox->setAbsCoor2D(300, 200);
    175177    OrxGui::GLGuiHandler::getInstance()->activate();
    176178    OrxGui::GLGuiHandler::getInstance()->activateCursor();
  • branches/gui/src/world_entities/questGUI/quest_gui.h

    r10129 r10164  
    2828    Quest*                  myQuest;
    2929    bool                    bKillGui;
     30    std::string             background;
    3031   
    3132    OrxGui::GLGuiBox*       headerBox;
Note: See TracChangeset for help on using the changeset viewer.