src/vehicle_gui.cpp
branchgamebalance
changeset 9909 dce9a6923bb7
parent 9908 0fa543611bbe
child 9910 0b2aebc8283e
equal deleted inserted replaced
9908:0fa543611bbe 9909:dce9a6923bb7
   277 	return list;
   277 	return list;
   278 }
   278 }
   279 
   279 
   280 /** Draw the list of available refit options for a consist.
   280 /** Draw the list of available refit options for a consist.
   281  * Draw the list and highlight the selected refit option (if any)
   281  * Draw the list and highlight the selected refit option (if any)
   282  * @param *v first vehicle in consist to get the refit-options of
   282  * @param *list first vehicle in consist to get the refit-options of
   283  * @param sel selected refit cargo-type in the window
   283  * @param sel selected refit cargo-type in the window
       
   284  * @param pos position of the selected item in caller widow
       
   285  * @param rows number of rows(capacity) in caller window
       
   286  * @param delta step height in caller window
   284  * @return the refit option that is hightlighted, NULL if none
   287  * @return the refit option that is hightlighted, NULL if none
   285  */
   288  */
   286 static RefitOption *DrawVehicleRefitWindow(const RefitList *list, int sel, uint pos, uint rows, uint delta)
   289 static RefitOption *DrawVehicleRefitWindow(const RefitList *list, int sel, uint pos, uint rows, uint delta)
   287 {
   290 {
   288 	RefitOption *refit = list->items;
   291 	RefitOption *refit = list->items;