train_gui.c
changeset 4541 62465fe43564
parent 4532 381c1bfa450d
child 4547 d37c2d172ad4
equal deleted inserted replaced
4540:ceddbcae93d9 4541:62465fe43564
  1432 			w = AllocateWindowDescFront(&_player_trains_desc, (station << 16) | (VEH_Train << 11) | VLW_flag | player);
  1432 			w = AllocateWindowDescFront(&_player_trains_desc, (station << 16) | (VEH_Train << 11) | VLW_flag | player);
  1433 		} else  {
  1433 		} else  {
  1434 			w = AllocateWindowDescFront(&_other_player_trains_desc, (station << 16) | (VEH_Train << 11) | VLW_flag | player);
  1434 			w = AllocateWindowDescFront(&_other_player_trains_desc, (station << 16) | (VEH_Train << 11) | VLW_flag | player);
  1435 		}
  1435 		}
  1436 	}
  1436 	}
  1437 
       
  1438 	if (w != NULL) {
       
  1439 		w->hscroll.cap = 10 * 29;
       
  1440 		w->vscroll.cap = 7; // maximum number of vehicles shown
       
  1441 		w->widget[7].unkA = (w->vscroll.cap << 8) + 1;
       
  1442 		w->resize.step_height = PLY_WND_PRC__SIZE_OF_ROW_SMALL;
       
  1443 		w->resize.step_width = 1;
       
  1444 		w->resize.height = 220 - (PLY_WND_PRC__SIZE_OF_ROW_SMALL * 3); /* Minimum of 4 vehicles */
       
  1445 	}
       
  1446 }
  1437 }
  1447 
  1438 
  1448 void ShowPlayerTrains(PlayerID player, StationID station)
  1439 void ShowPlayerTrains(PlayerID player, StationID station)
  1449 {
  1440 {
  1450 	ShowPlayerTrainsLocal(player, station, INVALID_ORDER, false);
  1441 	ShowPlayerTrainsLocal(player, station, INVALID_ORDER, false);