Changeset 10031 in orxonox.OLD for branches/gui
- Timestamp:
- Dec 6, 2006, 6:55:34 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
r10027 r10031 19 19 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY 20 20 21 21 #include "debug.h" 22 22 #include "quest_gui.h" 23 23 … … 57 57 this->toList(OM_GROUP_00); 58 58 59 this->mainMenuBox = NULL; 60 61 this->questBox = NULL; 62 63 this->currentlyOpened = NULL; 64 59 65 60 66 if( root != NULL) … … 86 92 LoadParam(root, "quest-description", this, QuestGUI, setQuestDescription) 87 93 .describe("sets the description of a quest"); 88 89 this->mainMenuBox = NULL;90 91 this->levelsBox = NULL;92 93 this->levelsBox = NULL;94 95 this->currentlyOpened = NULL;96 94 } 97 95 … … 101 99 */ 102 100 void QuestGUI::guiInit() 103 { 104 101 { 105 102 if (mainMenuBox == NULL) 106 103 { … … 112 109 startButton->select(); 113 110 114 OrxGui::GLGuiButton* networkButton = new OrxGui::GLGuiPushButton(" MultiPlayer");111 OrxGui::GLGuiButton* networkButton = new OrxGui::GLGuiPushButton("Bla Bla"); 115 112 //networkButton->released.connect(this, &QuestGUI::showMultiPlayer); 116 113 this->mainMenuBox->pack(networkButton); 117 114 118 OrxGui::GLGuiButton* optionsButton = new OrxGui::GLGuiPushButton(" Options");115 OrxGui::GLGuiButton* optionsButton = new OrxGui::GLGuiPushButton("Blobb"); 119 116 //optionsButton->released.connect(this, &QuestGUI::showOptionsMenu); 120 117 this->mainMenuBox->pack(optionsButton); 121 118 122 119 123 OrxGui::GLGuiButton* quitButton = new OrxGui::GLGuiPushButton("Quit ");120 OrxGui::GLGuiButton* quitButton = new OrxGui::GLGuiPushButton("Quit Menu"); 124 121 this->mainMenuBox->pack(quitButton); 125 122 quitButton->released.connect(this, &QuestGUI::quitMenu); … … 150 147 151 148 OrxGui::GLGuiBox* labelBox = new OrxGui::GLGuiBox(); 149 150 OrxGui::GLGuiText* questTxt = new OrxGui::GLGuiText(); 151 questTxt->setText(this->questDescription); 152 labelBox->pack(questTxt); 152 153 153 154 OrxGui::GLGuiImage* image = new OrxGui::GLGuiImage(); … … 165 166 } 166 167 168 void QuestGUI::quitMenu() 169 { 170 delete this->mainMenuBox; 171 this->mainMenuBox = NULL; 172 } 173 167 174 void QuestGUI::showSecondLevelElement(OrxGui::GLGuiBox* element) 168 175 { … … 178 185 } 179 186 180 void QuestGUI::quitMenu()181 {182 delete this->mainMenuBox;183 this->mainMenuBox = NULL;184 }185 187 186 188 -
branches/gui/src/world_entities/questGUI/quest_gui.h
r10027 r10031 29 29 30 30 void quitMenu(); 31 virtual bool stop();32 31 33 32 … … 40 39 std::string questDescription; 41 40 OrxGui::GLGuiBox* mainMenuBox; 42 OrxGui::GLGuiBox* levelsBox;41 43 42 OrxGui::GLGuiBox* questBox; 44 43
Note: See TracChangeset
for help on using the changeset viewer.