Changeset 10213 in orxonox.OLD for branches/gui/src/world_entities
- Timestamp:
- Jan 10, 2007, 2:42:50 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/world_entities/questGUI/quest_gui.cc
r10211 r10213 43 43 #include "glgui.h" 44 44 #include "menu/glgui_imagebutton.h" 45 #include "glgui_multiline_text.h" background45 #include "glgui_multiline_text.h" 46 46 #include <glgui_image.h> 47 47 … … 71 71 this->bKillGui = false; 72 72 73 this->background = " pogo_bunny.png";73 this->background = "maps/pogo_bunny.png"; 74 74 75 75 this->myQuest = new Quest(root); … … 109 109 this->questBox= new OrxGui::GLGuiBox(OrxGui::Vertical); 110 110 this->bKillGui = false; 111 this->questBox->setBackgroundTexture(background); 111 112 112 113 OrxGui::GLGuiBox* headerBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); 113 114 { 114 115 OrxGui::GLGuiImage* questImage = new OrxGui::GLGuiImage(); 115 questImage->setWidgetSize(100, 100); pictures/rand.gif maps/rand.gif116 questImage->setWidgetSize(100, 100); 116 117 117 118 questImage->loadImageFromFile(this->myQuest->getQuestPicture()); 118 119 questImage->show(); 120 headerBox->setBackgroundTexture("maps/pogo_bunny.png"); 119 121 headerBox->pack(questImage); 120 122 … … 123 125 OrxGui::GLGuiMultiLineText* questDifficulty = new OrxGui::GLGuiMultiLineText(); 124 126 questDifficulty->setText(this->myQuest->getQuestDifficulty()); 127 outlineBox->setBackgroundTexture("pogo_bunny.png"); 125 128 outlineBox->pack(questDifficulty); 126 129 } … … 132 135 { 133 136 OrxGui::GLGuiMultiLineText* questTxt = new OrxGui::GLGuiMultiLineText(); 134 questTxt->setText(this->myQuest->getQuestDescription()); background137 questTxt->setText(this->myQuest->getQuestDescription()); 135 138 labelBox->pack(questTxt); 136 139 labelBox->setBorderBottom(40); … … 172 175 answerBox->pack(refuseBox); 173 176 } 174 this->questBox->setBackgroundTexture(background);175 177 this->questBox->pack(headerBox); 176 178 this->questBox->pack(labelBox);
Note: See TracChangeset
for help on using the changeset viewer.