2011-12-15 22:22:55 +00:00
|
|
|
/*
|
|
|
|
* This file is part of OpenTTD.
|
|
|
|
* 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.
|
|
|
|
* 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.
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** @file genworld_widget.h Types related to the genworld widgets. */
|
|
|
|
|
|
|
|
#ifndef WIDGETS_GENWORLD_WIDGET_H
|
|
|
|
#define WIDGETS_GENWORLD_WIDGET_H
|
|
|
|
|
2011-12-19 20:46:17 +00:00
|
|
|
/** Widgets of the #GenerateLandscapeWindow class. */
|
2011-12-16 16:27:45 +00:00
|
|
|
enum GenerateLandscapeWidgets {
|
|
|
|
WID_GL_TEMPERATE, ///< Button with icon "Temperate".
|
|
|
|
WID_GL_ARCTIC, ///< Button with icon "Arctic".
|
|
|
|
WID_GL_TROPICAL, ///< Button with icon "Tropical".
|
|
|
|
WID_GL_TOYLAND, ///< Button with icon "Toyland".
|
|
|
|
|
|
|
|
WID_GL_MAPSIZE_X_PULLDOWN, ///< Dropdown 'map X size'.
|
|
|
|
WID_GL_MAPSIZE_Y_PULLDOWN, ///< Dropdown 'map Y size'.
|
|
|
|
|
|
|
|
WID_GL_TOWN_PULLDOWN, ///< Dropdown 'No. of towns'.
|
2021-01-12 22:02:16 +00:00
|
|
|
WID_GL_TOWNNAME_DROPDOWN, ///< Dropdown 'Townnames'.
|
2011-12-16 16:27:45 +00:00
|
|
|
WID_GL_INDUSTRY_PULLDOWN, ///< Dropdown 'No. of industries'.
|
|
|
|
|
|
|
|
WID_GL_GENERATE_BUTTON, ///< 'Generate' button.
|
|
|
|
|
2021-03-24 19:51:41 +00:00
|
|
|
WID_GL_HEIGHTMAP_HEIGHT_DOWN, ///< Decrease heightmap highest mountain
|
|
|
|
WID_GL_HEIGHTMAP_HEIGHT_TEXT, ///< Max. heightmap highest mountain
|
|
|
|
WID_GL_HEIGHTMAP_HEIGHT_UP, ///< Increase max. heightmap highest mountain
|
2014-09-21 12:25:04 +00:00
|
|
|
|
2011-12-16 16:27:45 +00:00
|
|
|
WID_GL_START_DATE_DOWN, ///< Decrease start year.
|
|
|
|
WID_GL_START_DATE_TEXT, ///< Start year.
|
|
|
|
WID_GL_START_DATE_UP, ///< Increase start year.
|
|
|
|
|
2021-03-24 13:48:12 +00:00
|
|
|
WID_GL_SNOW_COVERAGE_DOWN, ///< Decrease snow coverage.
|
|
|
|
WID_GL_SNOW_COVERAGE_TEXT, ///< Snow coverage.
|
|
|
|
WID_GL_SNOW_COVERAGE_UP, ///< Increase snow coverage.
|
2011-12-16 16:27:45 +00:00
|
|
|
|
2021-03-24 15:38:36 +00:00
|
|
|
WID_GL_DESERT_COVERAGE_DOWN, ///< Decrease desert coverage.
|
|
|
|
WID_GL_DESERT_COVERAGE_TEXT, ///< Desert coverage.
|
|
|
|
WID_GL_DESERT_COVERAGE_UP, ///< Increase desert coverage.
|
|
|
|
|
2011-12-16 16:27:45 +00:00
|
|
|
WID_GL_SNOW_LEVEL_DOWN, ///< Decrease snow level.
|
|
|
|
WID_GL_SNOW_LEVEL_TEXT, ///< Snow level.
|
|
|
|
WID_GL_SNOW_LEVEL_UP, ///< Increase snow level.
|
|
|
|
|
2021-03-20 18:39:33 +00:00
|
|
|
WID_GL_RAINFOREST_LEVEL_DOWN, ///< Decrease rainforest level.
|
|
|
|
WID_GL_RAINFOREST_LEVEL_TEXT, ///< Rainforest level.
|
|
|
|
WID_GL_RAINFOREST_LEVEL_UP, ///< Increase rainforest level.
|
|
|
|
|
2011-12-16 16:27:45 +00:00
|
|
|
WID_GL_LANDSCAPE_PULLDOWN, ///< Dropdown 'Land generator'.
|
|
|
|
|
|
|
|
WID_GL_HEIGHTMAP_NAME_TEXT, ///< Heightmap name.
|
|
|
|
WID_GL_HEIGHTMAP_SIZE_TEXT, ///< Size of heightmap.
|
|
|
|
WID_GL_HEIGHTMAP_ROTATION_PULLDOWN, ///< Dropdown 'Heightmap rotation'.
|
|
|
|
|
|
|
|
WID_GL_TERRAIN_PULLDOWN, ///< Dropdown 'Terrain type'.
|
|
|
|
WID_GL_WATER_PULLDOWN, ///< Dropdown 'Sea level'.
|
|
|
|
WID_GL_RIVER_PULLDOWN, ///< Dropdown 'Rivers'.
|
|
|
|
WID_GL_SMOOTHNESS_PULLDOWN, ///< Dropdown 'Smoothness'.
|
|
|
|
WID_GL_VARIETY_PULLDOWN, ///< Dropdown 'Variety distribution'.
|
|
|
|
|
|
|
|
WID_GL_BORDERS_RANDOM, ///< 'Random'/'Manual' borders.
|
|
|
|
WID_GL_WATER_NW, ///< NW 'Water'/'Freeform'.
|
|
|
|
WID_GL_WATER_NE, ///< NE 'Water'/'Freeform'.
|
|
|
|
WID_GL_WATER_SE, ///< SE 'Water'/'Freeform'.
|
|
|
|
WID_GL_WATER_SW, ///< SW 'Water'/'Freeform'.
|
2021-03-20 18:39:33 +00:00
|
|
|
|
2022-11-10 20:39:09 +00:00
|
|
|
WID_GL_AI_BUTTON, ///< 'AI Settings' button.
|
|
|
|
WID_GL_GS_BUTTON, ///< 'Game Script Settings' button.
|
|
|
|
WID_GL_NEWGRF_BUTTON, ///< 'NewGRF Settings' button.
|
|
|
|
|
2021-03-24 15:38:36 +00:00
|
|
|
WID_GL_CLIMATE_SEL_LABEL, ///< NWID_SELECTION for snow or desert coverage label
|
|
|
|
WID_GL_CLIMATE_SEL_SELECTOR, ///< NWID_SELECTION for snow or desert coverage selector
|
2011-12-15 22:22:55 +00:00
|
|
|
};
|
|
|
|
|
2011-12-19 20:46:17 +00:00
|
|
|
/** Widgets of the #CreateScenarioWindow class. */
|
2011-12-16 16:27:45 +00:00
|
|
|
enum CreateScenarioWidgets {
|
|
|
|
WID_CS_TEMPERATE, ///< Select temperate landscape style.
|
|
|
|
WID_CS_ARCTIC, ///< Select arctic landscape style.
|
|
|
|
WID_CS_TROPICAL, ///< Select tropical landscape style.
|
|
|
|
WID_CS_TOYLAND, ///< Select toy-land landscape style.
|
|
|
|
WID_CS_EMPTY_WORLD, ///< Generate an empty flat world.
|
|
|
|
WID_CS_RANDOM_WORLD, ///< Generate random land button
|
|
|
|
WID_CS_MAPSIZE_X_PULLDOWN, ///< Pull-down arrow for x map size.
|
|
|
|
WID_CS_MAPSIZE_Y_PULLDOWN, ///< Pull-down arrow for y map size.
|
|
|
|
WID_CS_START_DATE_DOWN, ///< Decrease start year (start earlier).
|
|
|
|
WID_CS_START_DATE_TEXT, ///< Clickable start date value.
|
|
|
|
WID_CS_START_DATE_UP, ///< Increase start year (start later).
|
|
|
|
WID_CS_FLAT_LAND_HEIGHT_DOWN, ///< Decrease flat land height.
|
|
|
|
WID_CS_FLAT_LAND_HEIGHT_TEXT, ///< Clickable flat land height value.
|
2011-12-19 17:48:04 +00:00
|
|
|
WID_CS_FLAT_LAND_HEIGHT_UP, ///< Increase flat land height.
|
2011-12-15 22:22:55 +00:00
|
|
|
};
|
|
|
|
|
2011-12-19 20:46:17 +00:00
|
|
|
/** Widgets of the #GenerateProgressWindow class. */
|
2011-12-16 16:27:45 +00:00
|
|
|
enum GenerationProgressWidgets {
|
|
|
|
WID_GP_PROGRESS_BAR, ///< Progress bar.
|
|
|
|
WID_GP_PROGRESS_TEXT, ///< Text with the progress bar.
|
|
|
|
WID_GP_ABORT, ///< Abort button.
|
2011-12-15 22:22:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* WIDGETS_GENWORLD_WIDGET_H */
|