Changeset 10222 in orxonox.OLD for branches/gui/src/world_entities/questGUI/quest_gui.cc
- Timestamp:
- Jan 10, 2007, 4:29:00 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/world_entities/questGUI/quest_gui.cc
r10213 r10222 4 4 orxonox - the future of 3D-vertical-scrollers 5 5 6 Copyright (C) 2004 orx6 Copyright (C) 1004 orx 7 7 8 8 This program is free software; you can redistribute it and/or modify … … 71 71 this->bKillGui = false; 72 72 73 this->background = "maps/ pogo_bunny.png";73 this->background = "maps/rand2.png"; 74 74 75 75 this->myQuest = new Quest(root); … … 108 108 { 109 109 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); 110 115 this->bKillGui = false; 111 this->questBox->setBackgroundTexture(background);112 116 113 117 OrxGui::GLGuiBox* headerBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); … … 115 119 OrxGui::GLGuiImage* questImage = new OrxGui::GLGuiImage(); 116 120 questImage->setWidgetSize(100, 100); 117 118 121 questImage->loadImageFromFile(this->myQuest->getQuestPicture()); 119 122 questImage->show(); 120 headerBox->setBackgroundTexture("maps/pogo_bunny.png");121 123 headerBox->pack(questImage); 122 124 123 125 OrxGui::GLGuiBox* outlineBox = new OrxGui::GLGuiBox(OrxGui::Vertical); 124 126 { 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); 129 135 } 130 headerBox->setBorderBottom(40); 136 headerBox->setBorderTop(0); 137 headerBox->setBorderRight(0); 138 headerBox->setBorderBottom(20); 139 headerBox->setBorderLeft(0); 131 140 headerBox->pack(outlineBox); 132 141 } … … 136 145 OrxGui::GLGuiMultiLineText* questTxt = new OrxGui::GLGuiMultiLineText(); 137 146 questTxt->setText(this->myQuest->getQuestDescription()); 147 labelBox->setBorderTop(0); 148 labelBox->setBorderRight(0); 149 labelBox->setBorderBottom(20); 150 labelBox->setBorderLeft(0); 138 151 labelBox->pack(questTxt); 139 labelBox->setBorderBottom(40);140 152 } 141 153 … … 151 163 OrxGui::GLGuiMultiLineText* rewardTxt = new OrxGui::GLGuiMultiLineText(); 152 164 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); 154 169 rewardBox->pack(rewardTxt); 155 170 } … … 181 196 this->questBox->showAll(); 182 197 183 this->questBox->setAbsCoor2D(300, 200);198 this->questBox->setAbsCoor2D(300, 100); 184 199 OrxGui::GLGuiHandler::getInstance()->activate(); 185 200 OrxGui::GLGuiHandler::getInstance()->activateCursor();
Note: See TracChangeset
for help on using the changeset viewer.