Changeset 10273 in orxonox.OLD for branches/gui/src/world_entities
- Timestamp:
- Jan 17, 2007, 6:27:36 PM (18 years ago)
- Location:
- branches/gui/src/world_entities/questGUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/world_entities/questGUI/quest_gui.cc
r10265 r10273 55 55 CREATE_FACTORY(QuestGUI); 56 56 SHELL_COMMAND(gui, QuestGUI, guiInit); 57 //SHELL_COMMAND(cancel, QuestGUI, guiDestruct);58 57 59 58 … … 76 75 77 76 this->bKillGui = false; 78 79 this->background = "maps/rand2.png";80 81 this->backgroundBottom = "maps/rand-untent.png";82 77 83 78 this->myQuest = new Quest(root); … … 120 115 questBox->setBorderLeft(10); 121 116 questBox->setBorderBottom(10); 122 this->questBox->setBackgroundTexture( background);117 this->questBox->setBackgroundTexture("maps/rand.png"); 123 118 this->bKillGui = false; 124 119 125 120 OrxGui::GLGuiBox* headerBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); 126 121 { 127 headerBox->setBackgroundTexture( backgroundBottom);122 headerBox->setBackgroundTexture("maps/rand-unten.png"); 128 123 OrxGui::GLGuiImage* questImage = new OrxGui::GLGuiImage(); 129 124 questImage->setWidgetSize(100, 100); … … 152 147 OrxGui::GLGuiBox* labelBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); 153 148 { 154 labelBox->setWidgetSize(500,500); 155 labelBox->setBackgroundTexture(backgroundBottom); 149 labelBox->setBackgroundTexture("maps/rand-unten.png"); 156 150 OrxGui::GLGuiMultiLineText* questTxt = new OrxGui::GLGuiMultiLineText(); 157 151 questTxt->setText(this->myQuest->getQuestDescription()); 158 //questTxt->setLineWidth( 400);159 152 labelBox->pack(questTxt); 153 154 OrxGui::GLGuiImage* placeImage = new OrxGui::GLGuiImage(); 155 placeImage->setWidgetSize(85, 10); 156 placeImage->loadImageFromFile("maps/schwarz.png"); 157 placeImage->show(); 158 labelBox->pack(placeImage); 159 160 160 161 labelBox->setBorderTop(0); 161 162 labelBox->setBorderRight(0); 162 labelBox->setBorderLeft( 40);163 labelBox->setBorderLeft(55); 163 164 labelBox->setBorderBottom(10); 164 165 } … … 186 187 OrxGui::GLGuiBox* acceptBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); 187 188 { 189 //acceptBox->setBackgroundTexture("maps/rand-oben.png"); 188 190 OrxGui::GLGuiButton* acceptButton = new OrxGui::GLGuiPushButton("Accept"); 189 191 acceptButton->released.connect(this, &QuestGUI::accept); 190 acceptBox->setBorderLeft(50); 191 acceptBox->setBorderRight(150); 192 acceptBox->setBorderTop(10); 193 acceptBox->setBorderRight(10); 194 acceptBox->setBorderLeft(10); 195 acceptBox->setBorderBottom(0); 192 196 acceptBox->pack(acceptButton); 193 197 } 194 198 answerBox->pack(acceptBox); 199 200 OrxGui::GLGuiImage* placeImage = new OrxGui::GLGuiImage(); 201 placeImage->setWidgetSize(300, 10); 202 placeImage->loadImageFromFile("maps/schwarz.png"); 203 placeImage->show(); 204 answerBox->pack(placeImage); 205 195 206 OrxGui::GLGuiBox* refuseBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); 196 207 { 208 //refuseBox->setBackgroundTexture("maps/rand-oben.png"); 197 209 OrxGui::GLGuiButton* refuseButton = new OrxGui::GLGuiPushButton("Refuse"); 198 210 refuseButton->released.connect(this, &QuestGUI::refuse); 199 refuseBox->setBorderLeft(0); 211 refuseBox->setBorderTop(10); 212 refuseBox->setBorderRight(10); 213 refuseBox->setBorderLeft(10); 214 refuseBox->setBorderBottom(0); 200 215 refuseBox->pack(refuseButton); 201 216 } … … 203 218 answerBox->setBorderRight(0); 204 219 answerBox->setBorderLeft(0); 205 answerBox->setBorderBottom(0); 206 answerBox->pack(acceptBox); 220 answerBox->setBorderBottom(20); 207 221 answerBox->pack(refuseBox); 208 222 } -
branches/gui/src/world_entities/questGUI/quest_gui.h
r10265 r10273 28 28 Quest* myQuest; 29 29 bool bKillGui; 30 std::string background;31 std::string backgroundBottom;32 30 33 31 OrxGui::GLGuiBox* headerBox; 34 32 OrxGui::GLGuiBox* outlineBox; 35 33 OrxGui::GLGuiBox* labelBox; 34 OrxGui::GLGuiImage* placeImage; 36 35 OrxGui::GLGuiBox* questBox; 37 36 OrxGui::GLGuiImage* questImage; … … 39 38 OrxGui::GLGuiImage* rewardImage; 40 39 OrxGui::GLGuiBox* answerBox; 40 OrxGui::GLGuiImage* placeImage2; 41 41 OrxGui::GLGuiBox* acceptBox; 42 42 OrxGui::GLGuiBox* refuseBox;
Note: See TracChangeset
for help on using the changeset viewer.