1 /* 2 * This file is part of OpenTTD. 3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. 4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>. 6 */ 7 8 /** @file genworld_widget.h Types related to the genworld widgets. */ 9 10 #ifndef WIDGETS_GENWORLD_WIDGET_H 11 #define WIDGETS_GENWORLD_WIDGET_H 12 13 /** Widgets of the #GenerateLandscapeWindow class. */ 14 enum GenerateLandscapeWidgets { 15 WID_GL_TEMPERATE, ///< Button with icon "Temperate". 16 WID_GL_ARCTIC, ///< Button with icon "Arctic". 17 WID_GL_TROPICAL, ///< Button with icon "Tropical". 18 WID_GL_TOYLAND, ///< Button with icon "Toyland". 19 20 WID_GL_MAPSIZE_X_PULLDOWN, ///< Dropdown 'map X size'. 21 WID_GL_MAPSIZE_Y_PULLDOWN, ///< Dropdown 'map Y size'. 22 23 WID_GL_TOWN_PULLDOWN, ///< Dropdown 'No. of towns'. 24 WID_GL_TOWNNAME_DROPDOWN, ///< Dropdown 'Townnames'. 25 WID_GL_INDUSTRY_PULLDOWN, ///< Dropdown 'No. of industries'. 26 27 WID_GL_GENERATE_BUTTON, ///< 'Generate' button. 28 29 WID_GL_HEIGHTMAP_HEIGHT_DOWN, ///< Decrease heightmap highest mountain 30 WID_GL_HEIGHTMAP_HEIGHT_TEXT, ///< Max. heightmap highest mountain 31 WID_GL_HEIGHTMAP_HEIGHT_UP, ///< Increase max. heightmap highest mountain 32 33 WID_GL_START_DATE_DOWN, ///< Decrease start year. 34 WID_GL_START_DATE_TEXT, ///< Start year. 35 WID_GL_START_DATE_UP, ///< Increase start year. 36 37 WID_GL_SNOW_COVERAGE_DOWN, ///< Decrease snow coverage. 38 WID_GL_SNOW_COVERAGE_TEXT, ///< Snow coverage. 39 WID_GL_SNOW_COVERAGE_UP, ///< Increase snow coverage. 40 41 WID_GL_DESERT_COVERAGE_DOWN, ///< Decrease desert coverage. 42 WID_GL_DESERT_COVERAGE_TEXT, ///< Desert coverage. 43 WID_GL_DESERT_COVERAGE_UP, ///< Increase desert coverage. 44 45 WID_GL_LANDSCAPE_PULLDOWN, ///< Dropdown 'Land generator'. 46 47 WID_GL_HEIGHTMAP_NAME_TEXT, ///< Heightmap name. 48 WID_GL_HEIGHTMAP_SIZE_TEXT, ///< Size of heightmap. 49 WID_GL_HEIGHTMAP_ROTATION_PULLDOWN, ///< Dropdown 'Heightmap rotation'. 50 51 WID_GL_TERRAIN_PULLDOWN, ///< Dropdown 'Terrain type'. 52 WID_GL_WATER_PULLDOWN, ///< Dropdown 'Sea level'. 53 WID_GL_RIVER_PULLDOWN, ///< Dropdown 'Rivers'. 54 WID_GL_SMOOTHNESS_PULLDOWN, ///< Dropdown 'Smoothness'. 55 WID_GL_VARIETY_PULLDOWN, ///< Dropdown 'Variety distribution'. 56 57 WID_GL_BORDERS_RANDOM, ///< 'Random'/'Manual' borders. 58 WID_GL_WATER_NW, ///< NW 'Water'/'Freeform'. 59 WID_GL_WATER_NE, ///< NE 'Water'/'Freeform'. 60 WID_GL_WATER_SE, ///< SE 'Water'/'Freeform'. 61 WID_GL_WATER_SW, ///< SW 'Water'/'Freeform'. 62 63 WID_GL_CLIMATE_SEL_LABEL, ///< NWID_SELECTION for snow or desert coverage label 64 WID_GL_CLIMATE_SEL_SELECTOR, ///< NWID_SELECTION for snow or desert coverage selector 65 }; 66 67 /** Widgets of the #CreateScenarioWindow class. */ 68 enum CreateScenarioWidgets { 69 WID_CS_TEMPERATE, ///< Select temperate landscape style. 70 WID_CS_ARCTIC, ///< Select arctic landscape style. 71 WID_CS_TROPICAL, ///< Select tropical landscape style. 72 WID_CS_TOYLAND, ///< Select toy-land landscape style. 73 WID_CS_EMPTY_WORLD, ///< Generate an empty flat world. 74 WID_CS_RANDOM_WORLD, ///< Generate random land button 75 WID_CS_MAPSIZE_X_PULLDOWN, ///< Pull-down arrow for x map size. 76 WID_CS_MAPSIZE_Y_PULLDOWN, ///< Pull-down arrow for y map size. 77 WID_CS_START_DATE_DOWN, ///< Decrease start year (start earlier). 78 WID_CS_START_DATE_TEXT, ///< Clickable start date value. 79 WID_CS_START_DATE_UP, ///< Increase start year (start later). 80 WID_CS_FLAT_LAND_HEIGHT_DOWN, ///< Decrease flat land height. 81 WID_CS_FLAT_LAND_HEIGHT_TEXT, ///< Clickable flat land height value. 82 WID_CS_FLAT_LAND_HEIGHT_UP, ///< Increase flat land height. 83 }; 84 85 /** Widgets of the #GenerateProgressWindow class. */ 86 enum GenerationProgressWidgets { 87 WID_GP_PROGRESS_BAR, ///< Progress bar. 88 WID_GP_PROGRESS_TEXT, ///< Text with the progress bar. 89 WID_GP_ABORT, ///< Abort button. 90 }; 91 92 #endif /* WIDGETS_GENWORLD_WIDGET_H */ 93