src/station_gui.cpp
changeset 9203 082fbf0500c4
parent 9191 471b623a46b8
child 9214 933c86db8e44
equal deleted inserted replaced
9202:a29a19e1aea9 9203:082fbf0500c4
   285 {
   285 {
   286 	static Listing station_sort;
   286 	static Listing station_sort;
   287 	static byte facilities;
   287 	static byte facilities;
   288 	static bool include_empty;
   288 	static bool include_empty;
   289 
   289 
   290 	PlayerStationsWindow(const WindowDesc *desc, void *data, WindowNumber window_number) : Window(desc, data, window_number)
   290 	PlayerStationsWindow(const WindowDesc *desc, WindowNumber window_number) : Window(desc, window_number)
   291 	{
   291 	{
   292 		this->caption_color = (byte)this->window_number;
   292 		this->caption_color = (byte)this->window_number;
   293 		this->vscroll.cap = 12;
   293 		this->vscroll.cap = 12;
   294 		this->resize.step_height = 10;
   294 		this->resize.step_height = 10;
   295 		this->resize.height = this->height - 10 * 7; // minimum if 5 in the list
   295 		this->resize.height = this->height - 10 * 7; // minimum if 5 in the list
   735  */
   735  */
   736 struct StationViewWindow : public Window {
   736 struct StationViewWindow : public Window {
   737 	uint32 cargo;                 ///< Bitmask of cargo types to expand
   737 	uint32 cargo;                 ///< Bitmask of cargo types to expand
   738 	uint16 cargo_rows[NUM_CARGO]; ///< Header row for each cargo type
   738 	uint16 cargo_rows[NUM_CARGO]; ///< Header row for each cargo type
   739 
   739 
   740 	StationViewWindow(const WindowDesc *desc, void *data, WindowNumber window_number) : Window(desc, data, window_number)
   740 	StationViewWindow(const WindowDesc *desc, WindowNumber window_number) : Window(desc, window_number)
   741 	{
   741 	{
   742 		PlayerID owner = GetStation(window_number)->owner;
   742 		PlayerID owner = GetStation(window_number)->owner;
   743 		if (owner != OWNER_NONE) this->caption_color = owner;
   743 		if (owner != OWNER_NONE) this->caption_color = owner;
   744 		this->vscroll.cap = 5;
   744 		this->vscroll.cap = 5;
   745 		this->resize.step_height = 10;
   745 		this->resize.step_height = 10;