From 1d527c58cb7036d6d12b1c23046723248ce9ce47 Mon Sep 17 00:00:00 2001 From: celestar Date: Wed, 3 Aug 2005 11:08:13 +0000 Subject: (svn r2798) -Codechange: Unified the rail toolbars into one that is modified by request using the RailtypeInfo struct --- rail.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'rail.h') 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; -- cgit v1.2.3-70-g09d2