Example #1
0
 bool GameDialog::showOpenDocumentDialog(wxWindow* parent, String& gameName, Model::MapFormat::Type& mapFormat) {
     GameDialog dialog;
     dialog.createDialog(parent, "Select Game", "TrenchBroom was unable to detect the game for the map document. Please choose a game in the game list and click OK.");
     if (dialog.ShowModal() != wxID_OK)
         return false;
     gameName = dialog.selectedGameName();
     mapFormat = dialog.selectedMapFormat();
     return true;        }
Example #2
0
 bool GameDialog::showNewDocumentDialog(wxWindow* parent, String& gameName, Model::MapFormat::Type& mapFormat) {
     GameDialog dialog;
     dialog.createDialog(parent, "Select Game", "Select a game from the list on the right, then click OK. Once the new document is created, you can set up mod directories, entity definitions and textures by going to the map inspector, the entity inspector and the face inspector, respectively.");
     if (dialog.ShowModal() != wxID_OK)
         return false;
     gameName = dialog.selectedGameName();
     mapFormat = dialog.selectedMapFormat();
     return true;
 }