summaryrefslogtreecommitdiff
path: root/src/widgets
diff options
context:
space:
mode:
authorNiels Martin Hansen <nielsm@indvikleren.dk>2020-06-22 18:48:51 +0200
committerPatric Stout <github@truebrain.nl>2020-12-27 01:03:27 +0100
commite0ee2d530aaa7bcf0bf80012f27024337d0ac4e7 (patch)
treeaa88fa17cf2c44806f765079335a26c51b337c93 /src/widgets
parent4d0f19406b8ab841f920fc1206796be90d7643ea (diff)
downloadopenttd-e0ee2d530aaa7bcf0bf80012f27024337d0ac4e7.tar.xz
Change: Switch tree GUI to use dynamically generated buttons
This makes it look a bit better in climates with fewer tree types.
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/tree_widget.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/widgets/tree_widget.h b/src/widgets/tree_widget.h
index 7da9fa4a8..7474667a8 100644
--- a/src/widgets/tree_widget.h
+++ b/src/widgets/tree_widget.h
@@ -12,20 +12,10 @@
/** Widgets of the #BuildTreesWindow class. */
enum BuildTreesWidgets {
- WID_BT_TYPE_11, ///< Tree 1st column 1st row.
- WID_BT_TYPE_12, ///< Tree 1st column 2nd row.
- WID_BT_TYPE_13, ///< Tree 1st column 3rd row.
- WID_BT_TYPE_14, ///< Tree 1st column 4th row.
- WID_BT_TYPE_21, ///< Tree 2st column 1st row.
- WID_BT_TYPE_22, ///< Tree 2st column 2nd row.
- WID_BT_TYPE_23, ///< Tree 2st column 3rd row.
- WID_BT_TYPE_24, ///< Tree 2st column 4th row.
- WID_BT_TYPE_31, ///< Tree 3st column 1st row.
- WID_BT_TYPE_32, ///< Tree 3st column 2nd row.
- WID_BT_TYPE_33, ///< Tree 3st column 3rd row.
- WID_BT_TYPE_34, ///< Tree 3st column 4th row.
WID_BT_TYPE_RANDOM, ///< Button to build random type of tree.
+ WID_BT_SE_PANE, ///< Selection pane to show/hide scenario editor tools.
WID_BT_MANY_RANDOM, ///< Button to build many random trees.
+ WID_BT_TYPE_BUTTON_FIRST, ///< First tree type selection button. (This must be last in the enum.)
};
#endif /* WIDGETS_TREE_WIDGET_H */