Changeset 10167 in orxonox.OLD for branches/gui/src/world_entities/questGUI/quest_gui.cc
- Timestamp:
- Jan 3, 2007, 4:38:00 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/world_entities/questGUI/quest_gui.cc
r10164 r10167 64 64 { 65 65 this->registerObject(this, QuestGUI::_objectList); 66 66 67 67 this->toList(OM_GROUP_00); 68 68 … … 116 116 questImage->loadImageFromFile(this->myQuest->getQuestPicture()); 117 117 questImage->show(); 118 //questImage->setBorderBottom(20);119 118 headerBox->pack(questImage); 120 119 … … 125 124 outlineBox->pack(questDifficulty); 126 125 } 126 headerBox->setBorderBottom(40); 127 127 headerBox->pack(outlineBox); 128 headerBox->setBorderBottom(100);129 130 128 } 131 129 … … 135 133 questTxt->setText(this->myQuest->getQuestDescription()); 136 134 labelBox->pack(questTxt); 137 labelBox->setBorderBottom(100); 138 labelBox->setBorderTop(100); 135 labelBox->setBorderBottom(40); 139 136 } 140 137 … … 147 144 rewardImage->show(); 148 145 rewardBox->pack(rewardImage); 149 //rewardImage->setBorderBottom(50);150 146 151 147 OrxGui::GLGuiMultiLineText* rewardTxt = new OrxGui::GLGuiMultiLineText(); 152 148 rewardTxt->setText(this->myQuest->getRewardDescription()); 149 rewardBox->setBorderBottom(40); 153 150 rewardBox->pack(rewardTxt); 154 rewardBox->setBorderBottom(100);155 156 151 } 157 152 158 153 OrxGui::GLGuiBox* answerBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); 159 154 { 160 OrxGui::GLGuiButton* acceptButton = new OrxGui::GLGuiPushButton("Accept"); 161 acceptButton->released.connect(this, &QuestGUI::accept); 162 answerBox->pack(acceptButton); 163 acceptButton->select(); 155 OrxGui::GLGuiBox* acceptBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); 156 { 157 OrxGui::GLGuiButton* acceptButton = new OrxGui::GLGuiPushButton("Accept"); 158 acceptButton->released.connect(this, &QuestGUI::accept); 159 acceptBox->setBorderRight(70); 160 acceptBox->pack(acceptButton); 161 } 164 162 165 OrxGui::GLGuiButton* refuseButton = new OrxGui::GLGuiPushButton("Refuse"); 166 refuseButton->released.connect(this, &QuestGUI::refuse); 167 answerBox->pack(refuseButton); 168 } 169 163 OrxGui::GLGuiBox* refuseBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); 164 { 165 OrxGui::GLGuiButton* refuseButton = new OrxGui::GLGuiPushButton("Refuse"); 166 refuseButton->released.connect(this, &QuestGUI::refuse); 167 refuseBox->setBorderLeft(0); 168 refuseBox->pack(refuseButton); 169 } 170 answerBox->pack(acceptBox); 171 answerBox->pack(refuseBox); 172 } 170 173 this->questBox->pack(headerBox); 171 174 this->questBox->pack(labelBox); … … 195 198 void QuestGUI::accept() 196 199 { 200 this->myQuest->setQuestActive(); 197 201 this->bKillGui = true; 198 199 202 } 200 203
Note: See TracChangeset
for help on using the changeset viewer.