Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8750 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Jun 23, 2006, 5:28:13 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: now one can also close orxonox when the datadir is not found by the user

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/qt/qt_gui_datadir_fallback.cc

    r8749 r8750  
    4949      bannerWidget->setImage(bannerImage);
    5050      mainLayout->addWidget(bannerWidget, 0,0, 3, 1);
     51
     52      QLabel* label = new QLabel();
     53      label->setText("ORXONOX needs its DataDirectory to be configured.\n Just Select the ORXONOX-dataDirectory with the browse-button, and start the Game\n");
     54
     55      mainLayout->addWidget(label, 0,1);
    5156
    5257      mainLayout->addWidget(new GuiGeneral(this), 1, 1, 1, 3);
  • trunk/src/orxonox.cc

    r8749 r8750  
    348348    OrxGui::Gui* gui = new OrxGui::QtGuiDataDirFallback(argc, argv);
    349349    gui->startGui();
     350    if (gui->getState() == OrxGui::Gui::Quitting)
     351      return(-1);
    350352    delete gui;
    351353    ResourceManager::getInstance()->setDataDir(Preferences::getInstance()->getString(CONFIG_SECTION_GENERAL, CONFIG_NAME_DATADIR, ""));
Note: See TracChangeset for help on using the changeset viewer.