Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10489 in orxonox.OLD for trunk


Ignore:
Timestamp:
Jan 30, 2007, 12:38:10 AM (18 years ago)
Author:
patrick
Message:

nicer gui entries

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/gl/glgui_container.cc

    r10317 r10489  
    4343    this->registerObject(this, GLGuiContainer::_objectList);
    4444
    45     this->setBackgroundTexture("textures/gui/gui_container_background.png");
     45//     this->setBackgroundTexture("textures/gui/gui_container_background.png");
    4646
    4747  }
  • trunk/src/lib/gui/gl/glgui_widget.cc

    r10374 r10489  
    129129
    130130    this->setBorderLeft(15);
    131     this->setBackgroundTexture("textures/gui/gui_element_background.png");
     131//     this->setBackgroundTexture("textures/gui/gui_element_background.png");
    132132
    133133    this->switchState(_state);
     
    565565  }
    566566
    567  
    568  
    569  
    570  
    571  
     567
     568
     569
     570
     571
    572572  /**
    573573  * @brief sets the Background Texture to all States.
     
    594594    }
    595595  }
    596  
    597  
    598  
    599  
     596
     597
     598
     599
    600600  /**
    601601   * @brief sets the Background Texture.
     
    943943  }
    944944
    945   void GLGuiWidget::beginDraw() const 
    946   { 
    947     glPushMatrix(); 
     945  void GLGuiWidget::beginDraw() const
     946  {
     947    glPushMatrix();
    948948    glTranslatef(this->getAbsCoor2D().x, this->getAbsCoor2D().y, 0);
    949949    glRotatef(this->getAbsDir2D(), 0, 0, 1);
  • trunk/src/world_entities/questGUI/quest_gui.cc

    r10374 r10489  
    7676
    7777  this->bKillGui = false;
    78  
     78
    7979  this->bActive = false;
    8080
     
    118118    questBox->setBorderLeft(10);
    119119    questBox->setBorderBottom(10);
    120     this->questBox->setBackgroundTexture("maps/rand.png");
     120    this->questBox->setBackgroundTexture("textures/gui/gui_quest_border.png");
    121121    this->bKillGui = false;
    122122
    123123    OrxGui::GLGuiBox* headerBox = new OrxGui::GLGuiBox(OrxGui::Horizontal);
    124124    {
    125       headerBox->setBackgroundTexture("maps/rand-unten.png");
     125      headerBox->setBackgroundTexture("textures/gui/gui_quest_border_low.png");
    126126      OrxGui::GLGuiImage* questImage = new OrxGui::GLGuiImage();
    127127      questImage->setWidgetSize(100, 100);
     
    131131
    132132      OrxGui::GLGuiBox* outlineBox = new OrxGui::GLGuiBox(OrxGui::Vertical);
    133       {     
     133      {
    134134        OrxGui::GLGuiMultiLineText* questDetails = new OrxGui::GLGuiMultiLineText();
    135135        questDetails->setText(this->myQuest->getQuestDifficulty());
     
    150150    OrxGui::GLGuiBox* labelBox = new OrxGui::GLGuiBox(OrxGui::Horizontal);
    151151    {
    152       labelBox->setBackgroundTexture("maps/rand-unten.png");
     152      labelBox->setBackgroundTexture("textures/gui/gui_quest_border_low.png");
    153153      OrxGui::GLGuiMultiLineText* questTxt = new OrxGui::GLGuiMultiLineText();
    154154      questTxt->setText(this->myQuest->getQuestDescription());
    155155      labelBox->pack(questTxt);
    156      
     156
    157157      OrxGui::GLGuiImage* placeImage = new OrxGui::GLGuiImage();
    158158      placeImage->setWidgetSize(85, 10);
     
    160160      placeImage->show();
    161161      labelBox->pack(placeImage);
    162      
    163      
     162
     163
    164164      labelBox->setBorderTop(0);
    165165      labelBox->setBorderRight(0);
     
    171171    OrxGui::GLGuiBox* rewardBox = new OrxGui::GLGuiBox(OrxGui::Horizontal);
    172172    {
    173       rewardBox->setBackgroundTexture("maps/rand-unten.png");
     173      rewardBox->setBackgroundTexture("textures/gui/gui_quest_border_low.png");
    174174      OrxGui::GLGuiImage* rewardImage = new OrxGui::GLGuiImage();
    175175      rewardImage->setWidgetSize(100, 100);
     
    194194      placeImage->show();
    195195      answerBox->pack(placeImage);
    196      
     196
    197197      OrxGui::GLGuiBox* acceptBox = new OrxGui::GLGuiBox(OrxGui::Horizontal);
    198198      {
    199199        //acceptBox->setBackgroundTexture("maps/accept.png");
    200         acceptBox->setBackgroundTexture("maps/accept.png", OrxGui::Normal);
    201         acceptBox->setBackgroundTexture("maps/acceptrout.png", OrxGui::Selected);
     200        acceptBox->setBackgroundTexture("textures/gui/gui_quest_accept.jpg", OrxGui::Normal);
     201        //acceptBox->setBackgroundTexture("maps/gui_quest_acceptrout.png", OrxGui::Selected);
    202202        OrxGui::GLGuiButton* acceptButton = new OrxGui::GLGuiPushButton("        ");
    203203        acceptButton->released.connect(this, &QuestGUI::accept);
     
    209209      }
    210210      answerBox->pack(acceptBox);
    211      
     211
    212212      OrxGui::GLGuiImage* placeImage2 = new OrxGui::GLGuiImage();
    213213      placeImage2->setWidgetSize(300, 10);
    214       placeImage2->loadImageFromFile("maps/schwarz.png");
     214      placeImage2->loadImageFromFile("textures/gui/gui_quest_black.png");
    215215      placeImage2->show();
    216216      answerBox->pack(placeImage2);
    217      
     217
    218218      OrxGui::GLGuiBox* refuseBox = new OrxGui::GLGuiBox(OrxGui::Horizontal);
    219219      {
    220         refuseBox->setBackgroundTexture("maps/refuserout.png");
     220        refuseBox->setBackgroundTexture("textures/gui/gui_quest_refuserout.gif");
    221221        OrxGui::GLGuiButton* refuseButton = new OrxGui::GLGuiPushButton("        ");
    222222        refuseButton->released.connect(this, &QuestGUI::refuse);
Note: See TracChangeset for help on using the changeset viewer.