Changeset View
Changeset View
Standalone View
Standalone View
source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Map/Map.cpp
/* Copyright (C) 2016 Wildfire Games. | /* Copyright (C) 2017 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | void MapSettingsControl::CreateWidgets() | ||||
// TODO: replace by filenames in binaries/data/mods/public/simulation/data/settings/victory_conditions/ | // TODO: replace by filenames in binaries/data/mods/public/simulation/data/settings/victory_conditions/ | ||||
wxArrayString gameTypes; | wxArrayString gameTypes; | ||||
gameTypes.Add(_T("conquest")); | gameTypes.Add(_T("conquest")); | ||||
gameTypes.Add(_T("conquest_structures")); | gameTypes.Add(_T("conquest_structures")); | ||||
gameTypes.Add(_T("conquest_units")); | gameTypes.Add(_T("conquest_units")); | ||||
gameTypes.Add(_T("wonder")); | gameTypes.Add(_T("wonder")); | ||||
gameTypes.Add(_T("endless")); | gameTypes.Add(_T("endless")); | ||||
gameTypes.Add(_T("regicide")); | gameTypes.Add(_T("regicide")); | ||||
gameTypes.Add(_T("capture_the_relic")); | |||||
wxFlexGridSizer* gridSizer = new wxFlexGridSizer(2, 5, 5); | wxFlexGridSizer* gridSizer = new wxFlexGridSizer(2, 5, 5); | ||||
gridSizer->AddGrowableCol(1); | gridSizer->AddGrowableCol(1); | ||||
// TODO: have preview selector tool? | // TODO: have preview selector tool? | ||||
gridSizer->Add(new wxStaticText(this, wxID_ANY, _("Preview")), wxSizerFlags().Align(wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT)); | gridSizer->Add(new wxStaticText(this, wxID_ANY, _("Preview")), wxSizerFlags().Align(wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT)); | ||||
gridSizer->Add(Tooltipped(new wxTextCtrl(this, ID_MapPreview, wxEmptyString), | gridSizer->Add(Tooltipped(new wxTextCtrl(this, ID_MapPreview, wxEmptyString), | ||||
_("Texture used for map preview")), wxSizerFlags().Expand()); | _("Texture used for map preview")), wxSizerFlags().Expand()); | ||||
gridSizer->Add(new wxStaticText(this, wxID_ANY, _("Reveal map")), wxSizerFlags().Align(wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT)); | gridSizer->Add(new wxStaticText(this, wxID_ANY, _("Reveal map")), wxSizerFlags().Align(wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT)); | ||||
▲ Show 20 Lines • Show All 418 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator