summaryrefslogtreecommitdiff
path: root/rail.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-08-03 11:08:13 +0000
committercelestar <celestar@openttd.org>2005-08-03 11:08:13 +0000
commit940872e51f8c2e40fdf646415b0dc5a5902d6114 (patch)
tree92e5a080fa0aed7e583ee0bde14b418812f4161c /rail.h
parent2412ad5a2015770876eb6099f88fd217dba351eb (diff)
downloadopenttd-940872e51f8c2e40fdf646415b0dc5a5902d6114.tar.xz
(svn r2798) -Codechange: Unified the rail toolbars into one that is modified by
request using the RailtypeInfo struct
Diffstat (limited to 'rail.h')
-rw-r--r--rail.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/rail.h b/rail.h
index 753e7d001..6aecc6859 100644
--- a/rail.h
+++ b/rail.h
@@ -142,6 +142,8 @@ typedef enum SignalStates {
/** This struct contains all the info that is needed to draw and construct tracks.
*/
typedef struct RailtypeInfo {
+ /** Struct containing the main sprites. @note not all sprites are listed, but only
+ * the ones used directly in the code */
struct {
SpriteID track_y; ///< single piece of rail in Y direction, with ground
SpriteID track_ns; ///< two pieces of rail in North and South corner (East-West direction)
@@ -154,6 +156,23 @@ typedef struct RailtypeInfo {
SpriteID single_w; ///< single piece of rail in the western corner
} base_sprites;
+ /** struct containing the sprites for the rail GUI. @note only sprites referred to
+ * directly in the code are listed */
+ struct {
+ SpriteID build_ns_rail; ///< button for building single rail in N-S direction
+ SpriteID build_x_rail; ///< button for building single rail in X direction
+ SpriteID build_ew_rail; ///< button for building single rail in E-W direction
+ SpriteID build_y_rail; ///< button for building single rail in Y direction
+ SpriteID auto_rail; ///< button for the autorail construction
+ SpriteID build_depot; ///< button for building depots
+ SpriteID build_tunnel; ///< button for building a tunnel
+ SpriteID convert_rail; ///< button for converting rail
+ } gui_sprites;
+
+ struct {
+ StringID toolbar_caption;
+ } strings;
+
/** sprite number difference between a piece of track on a snowy ground and the corresponding one on normal ground */
SpriteID snow_offset;