- Timestamp:
- Jan 24, 2007, 4:13:21 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/world_entities/questGUI/quest_gui.cc
r10277 r10334 171 171 OrxGui::GLGuiBox* rewardBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); 172 172 { 173 rewardBox->setBackgroundTexture("maps/rand-unten.png"); 173 174 OrxGui::GLGuiImage* rewardImage = new OrxGui::GLGuiImage(); 174 175 rewardImage->setWidgetSize(100, 100); … … 188 189 OrxGui::GLGuiBox* answerBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); 189 190 { 191 OrxGui::GLGuiImage* placeImage = new OrxGui::GLGuiImage(); 192 placeImage->setWidgetSize(20, 10); 193 placeImage->loadImageFromFile("maps/schwarz.png"); 194 placeImage->show(); 195 answerBox->pack(placeImage); 196 190 197 OrxGui::GLGuiBox* acceptBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); 191 198 { 192 //acceptBox->setBackgroundTexture("maps/rand-oben.png"); 193 OrxGui::GLGuiButton* acceptButton = new OrxGui::GLGuiPushButton("Accept"); 199 acceptBox->setBackgroundTexture("maps/accept.png"); 200 //acceptBox->setBackgroundColor(Color::black, OrxGui::Normal); 201 //acceptBox->setBackgroundColor(Color::green, OrxGui::Selected); 202 OrxGui::GLGuiButton* acceptButton = new OrxGui::GLGuiPushButton(" "); 194 203 acceptButton->released.connect(this, &QuestGUI::accept); 195 acceptBox->setBorderTop( 10);196 acceptBox->setBorderRight( 10);197 acceptBox->setBorderLeft( 10);198 acceptBox->setBorderBottom( 0);204 acceptBox->setBorderTop(5); 205 acceptBox->setBorderRight(5); 206 acceptBox->setBorderLeft(5); 207 acceptBox->setBorderBottom(5); 199 208 acceptBox->pack(acceptButton); 200 209 } 201 210 answerBox->pack(acceptBox); 202 211 203 OrxGui::GLGuiImage* placeImage = new OrxGui::GLGuiImage();204 placeImage ->setWidgetSize(300, 10);205 placeImage ->loadImageFromFile("maps/schwarz.png");206 placeImage ->show();207 answerBox->pack(placeImage );212 OrxGui::GLGuiImage* placeImage2 = new OrxGui::GLGuiImage(); 213 placeImage2->setWidgetSize(300, 10); 214 placeImage2->loadImageFromFile("maps/schwarz.png"); 215 placeImage2->show(); 216 answerBox->pack(placeImage2); 208 217 209 218 OrxGui::GLGuiBox* refuseBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); 210 219 { 211 //refuseBox->setBackgroundTexture("maps/rand-oben.png"); 212 OrxGui::GLGuiButton* refuseButton = new OrxGui::GLGuiPushButton("Refuse"); 220 refuseBox->setBackgroundTexture("maps/refuserout.png"); 221 //refuseBox->setBackgroundColor(Color::black, OrxGui::Normal); 222 //refuseBox->setBackgroundColor(Color::green, OrxGui::Selected); 223 OrxGui::GLGuiButton* refuseButton = new OrxGui::GLGuiPushButton(" "); 213 224 refuseButton->released.connect(this, &QuestGUI::refuse); 214 refuseBox->setBorderTop( 10);215 refuseBox->setBorderRight( 10);216 refuseBox->setBorderLeft( 10);217 refuseBox->setBorderBottom( 0);225 refuseBox->setBorderTop(5); 226 refuseBox->setBorderRight(5); 227 refuseBox->setBorderLeft(5); 228 refuseBox->setBorderBottom(5); 218 229 refuseBox->pack(refuseButton); 219 230 } 220 answerBox->setBorderTop( 0);231 answerBox->setBorderTop(15); 221 232 answerBox->setBorderRight(0); 222 233 answerBox->setBorderLeft(0); … … 268 279 delete this->questBox; 269 280 this->questBox = NULL; 270 } 281 this->bKillGui = false; 282 }
Note: See TracChangeset
for help on using the changeset viewer.