Fix some daylength issues, possible division by zero in main menu.
[openttd-joker.git] / src / widgets / terraform_widget.h
blobd79665262eb4c506e43e2d259b222c5555bd0a41
1 /* $Id$ */
3 /*
4 * This file is part of OpenTTD.
5 * 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.
6 * 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.
7 * 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/>.
8 */
10 /** @file terraform_widget.h Types related to the terraform widgets. */
12 #ifndef WIDGETS_TERRAFORM_WIDGET_H
13 #define WIDGETS_TERRAFORM_WIDGET_H
15 /** Widgets of the #TerraformToolbarWindow class. */
16 enum TerraformToolbarWidgets {
17 WID_TT_SHOW_PLACE_OBJECT, ///< Should the place object button be shown?
18 WID_TT_BUTTONS_START, ///< Start of pushable buttons.
19 WID_TT_LOWER_LAND = WID_TT_BUTTONS_START, ///< Lower land button.
20 WID_TT_RAISE_LAND, ///< Raise land button.
21 WID_TT_LEVEL_LAND, ///< Level land button.
22 WID_TT_DEMOLISH, ///< Demolish aka dynamite button.
23 WID_TT_BUY_LAND, ///< Buy land button.
24 WID_TT_PLANT_TREES, ///< Plant trees button (note: opens separate window, no place-push-button).
25 WID_TT_MEASUREMENT_TOOL, ///< Ruler tool button
26 WID_TT_PLACE_SIGN, ///< Place sign button.
27 WID_TT_PLACE_OBJECT, ///< Place object button.
30 /** Widgets of the #ScenarioEditorLandscapeGenerationWindow class. */
31 enum EditorTerraformToolbarWidgets {
32 WID_ETT_SHOW_PLACE_DESERT, ///< Should the place desert button be shown?
33 WID_ETT_START, ///< Used for iterations.
34 WID_ETT_DOTS = WID_ETT_START, ///< Invisible widget for rendering the terraform size on.
35 WID_ETT_BUTTONS_START, ///< Start of pushable buttons.
36 WID_ETT_DEMOLISH = WID_ETT_BUTTONS_START, ///< Demolish aka dynamite button.
37 WID_ETT_LOWER_LAND, ///< Lower land button.
38 WID_ETT_RAISE_LAND, ///< Raise land button.
39 WID_ETT_LEVEL_LAND, ///< Level land button.
40 WID_ETT_PLACE_ROCKS, ///< Place rocks button.
41 WID_ETT_PLACE_DESERT, ///< Place desert button (in tropical climate).
42 WID_ETT_PLACE_OBJECT, ///< Place transmitter button.
43 WID_ETT_BUTTONS_END, ///< End of pushable buttons.
44 WID_ETT_INCREASE_SIZE = WID_ETT_BUTTONS_END, ///< Upwards arrow button to increase terraforming size.
45 WID_ETT_DECREASE_SIZE, ///< Downwards arrow button to decrease terraforming size.
46 WID_ETT_NEW_SCENARIO, ///< Button for generating a new scenario.
47 WID_ETT_RESET_LANDSCAPE, ///< Button for removing all company-owned property.
50 #endif /* WIDGETS_TERRAFORM_WIDGET_H */