Changeset 10164 in orxonox.OLD for branches/gui/src/world_entities/questGUI
- Timestamp:
- Jan 3, 2007, 2:56:10 PM (18 years ago)
- Location:
- branches/gui/src/world_entities/questGUI
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/world_entities/questGUI/quest.cc
r10129 r10164 37 37 #include "glgui.h" 38 38 #include "menu/glgui_imagebutton.h" 39 #include "glgui_ text.h"39 #include "glgui_multiline_text.h" 40 40 #include <glgui_image.h> 41 41 -
branches/gui/src/world_entities/questGUI/quest_gui.cc
r10129 r10164 43 43 #include "glgui.h" 44 44 #include "menu/glgui_imagebutton.h" 45 #include "glgui_ text.h"45 #include "glgui_multiline_text.h" 46 46 #include <glgui_image.h> 47 47 … … 70 70 71 71 this->bKillGui = false; 72 73 this->background = "/pictures/map.jpg"; 72 74 73 75 this->myQuest = new Quest(root); … … 114 116 questImage->loadImageFromFile(this->myQuest->getQuestPicture()); 115 117 questImage->show(); 116 questImage->setBorderBottom(20);118 //questImage->setBorderBottom(20); 117 119 headerBox->pack(questImage); 118 headerBox->setBorderBottom(20);119 120 120 121 OrxGui::GLGuiBox* outlineBox = new OrxGui::GLGuiBox(OrxGui::Vertical); 121 122 { 122 OrxGui::GLGui Text* questDifficulty = new OrxGui::GLGuiText();123 OrxGui::GLGuiMultiLineText* questDifficulty = new OrxGui::GLGuiMultiLineText(); 123 124 questDifficulty->setText(this->myQuest->getQuestDifficulty()); 124 125 outlineBox->pack(questDifficulty); 125 126 } 126 127 headerBox->pack(outlineBox); 127 headerBox->setBorderBottom( 75);128 headerBox->setBorderBottom(100); 128 129 129 130 } … … 131 132 OrxGui::GLGuiBox* labelBox = new OrxGui::GLGuiBox(OrxGui::Vertical); 132 133 { 133 OrxGui::GLGui Text* questTxt = new OrxGui::GLGuiText();134 OrxGui::GLGuiMultiLineText* questTxt = new OrxGui::GLGuiMultiLineText(); 134 135 questTxt->setText(this->myQuest->getQuestDescription()); 135 136 labelBox->pack(questTxt); 136 labelBox->setBorderBottom(75); 137 labelBox->setBorderBottom(100); 138 labelBox->setBorderTop(100); 137 139 } 138 140 … … 145 147 rewardImage->show(); 146 148 rewardBox->pack(rewardImage); 147 rewardImage->setBorderBottom(50);148 149 OrxGui::GLGui Text* rewardTxt = new OrxGui::GLGuiText();149 //rewardImage->setBorderBottom(50); 150 151 OrxGui::GLGuiMultiLineText* rewardTxt = new OrxGui::GLGuiMultiLineText(); 150 152 rewardTxt->setText(this->myQuest->getRewardDescription()); 151 153 rewardBox->pack(rewardTxt); 152 rewardBox->setBorderBottom( 75);154 rewardBox->setBorderBottom(100); 153 155 154 156 } … … 172 174 this->questBox->showAll(); 173 175 174 this->questBox->setAbsCoor2D(300, 40);176 this->questBox->setAbsCoor2D(300, 200); 175 177 OrxGui::GLGuiHandler::getInstance()->activate(); 176 178 OrxGui::GLGuiHandler::getInstance()->activateCursor(); -
branches/gui/src/world_entities/questGUI/quest_gui.h
r10129 r10164 28 28 Quest* myQuest; 29 29 bool bKillGui; 30 std::string background; 30 31 31 32 OrxGui::GLGuiBox* headerBox;
Note: See TracChangeset
for help on using the changeset viewer.