Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10031 in orxonox.OLD for branches/gui/src/world_entities


Ignore:
Timestamp:
Dec 6, 2006, 6:55:34 PM (18 years ago)
Author:
hejja
Message:

Quest-Dialog mit Weissem Bild gecodet

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  
    1919#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
    2020
    21 
     21#include "debug.h"
    2222#include "quest_gui.h"
    2323
     
    5757  this->toList(OM_GROUP_00);
    5858 
     59  this->mainMenuBox = NULL;
     60 
     61  this->questBox = NULL;
     62
     63  this->currentlyOpened = NULL;
     64 
    5965
    6066  if( root != NULL)
     
    8692   LoadParam(root, "quest-description", this, QuestGUI, setQuestDescription)
    8793       .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;
    9694}
    9795
     
    10199 */
    102100void QuestGUI::guiInit()
    103 {
    104 
     101
    105102  if (mainMenuBox == NULL)
    106103  {
     
    112109      startButton->select();
    113110
    114       OrxGui::GLGuiButton* networkButton = new OrxGui::GLGuiPushButton("MultiPlayer");
     111      OrxGui::GLGuiButton* networkButton = new OrxGui::GLGuiPushButton("Bla Bla");
    115112      //networkButton->released.connect(this, &QuestGUI::showMultiPlayer);
    116113      this->mainMenuBox->pack(networkButton);
    117114
    118       OrxGui::GLGuiButton* optionsButton = new OrxGui::GLGuiPushButton("Options");
     115      OrxGui::GLGuiButton* optionsButton = new OrxGui::GLGuiPushButton("Blobb");
    119116      //optionsButton->released.connect(this, &QuestGUI::showOptionsMenu);
    120117      this->mainMenuBox->pack(optionsButton);
    121118
    122119
    123       OrxGui::GLGuiButton* quitButton = new OrxGui::GLGuiPushButton("Quit");
     120      OrxGui::GLGuiButton* quitButton = new OrxGui::GLGuiPushButton("Quit Menu");
    124121      this->mainMenuBox->pack(quitButton);
    125122      quitButton->released.connect(this, &QuestGUI::quitMenu);
     
    150147   
    151148    OrxGui::GLGuiBox* labelBox = new OrxGui::GLGuiBox();
     149   
     150    OrxGui::GLGuiText* questTxt = new OrxGui::GLGuiText();
     151    questTxt->setText(this->questDescription);
     152    labelBox->pack(questTxt);
    152153
    153154    OrxGui::GLGuiImage* image = new OrxGui::GLGuiImage();
     
    165166}
    166167
     168void QuestGUI::quitMenu()
     169{
     170  delete this->mainMenuBox;
     171  this->mainMenuBox = NULL;
     172}
     173
    167174void QuestGUI::showSecondLevelElement(OrxGui::GLGuiBox* element)
    168175{
     
    178185}
    179186
    180 void QuestGUI::quitMenu()
    181 {
    182   delete this->mainMenuBox;
    183   this->mainMenuBox = NULL;
    184 }
    185187
    186188
  • branches/gui/src/world_entities/questGUI/quest_gui.h

    r10027 r10031  
    2929   
    3030   void quitMenu();
    31    virtual bool stop();
    3231
    3332
     
    4039    std::string             questDescription;
    4140    OrxGui::GLGuiBox*       mainMenuBox;
    42     OrxGui::GLGuiBox*       levelsBox;
     41   
    4342    OrxGui::GLGuiBox*       questBox;
    4443
Note: See TracChangeset for help on using the changeset viewer.