src/station_gui.h
branchnoai
changeset 9724 b39bc69bb2f2
parent 9723 eee46cb39750
child 9869 6404afe43575
equal deleted inserted replaced
9723:eee46cb39750 9724:b39bc69bb2f2
    22 	SLW_NOCARGOWAITING = 13, ///< 'NO' button - list stations where no cargo is waiting
    22 	SLW_NOCARGOWAITING = 13, ///< 'NO' button - list stations where no cargo is waiting
    23 	SLW_CARGOALL       = 14, ///< 'ALL' button - list all stations
    23 	SLW_CARGOALL       = 14, ///< 'ALL' button - list all stations
    24 	SLW_PAN_RIGHT      = 15, ///< Panel right of list of cargo types
    24 	SLW_PAN_RIGHT      = 15, ///< Panel right of list of cargo types
    25 
    25 
    26 	SLW_SORTBY         = 16, ///< 'Sort by' button - reverse sort direction
    26 	SLW_SORTBY         = 16, ///< 'Sort by' button - reverse sort direction
    27 	SLW_SORTCRITERIA   = 17, ///< Button - list of criteria
    27 	SLW_SORTDROPBTN    = 17, ///< Dropdown button
    28 	SLW_SORTDROPBTN    = 18, ///< Dropdown button
    28 	SLW_PAN_SORT_RIGHT = 18, ///< Panel right of sorting options
    29 	SLW_PAN_SORT_RIGHT = 19, ///< Panel right of sorting options
       
    30 
    29 
    31 	SLW_CARGOSTART     = 20, ///< Widget numbers used for list of cargo types (not present in _player_stations_widgets)
    30 	SLW_CARGOSTART     = 19, ///< Widget numbers used for list of cargo types (not present in _player_stations_widgets)
    32 };
    31 };
    33 
    32 
    34 /** Enum for StationView, referring to _station_view_widgets and _station_view_expanded_widgets */
    33 /** Enum for StationView, referring to _station_view_widgets and _station_view_expanded_widgets */
    35 enum StationViewWidgets {
    34 enum StationViewWidgets {
    36 	SVW_CLOSEBOX   =  0, ///< Close 'X' button
    35 	SVW_CLOSEBOX   =  0, ///< Close 'X' button
    37 	SVW_CAPTION    =  1, ///< Caption of the window
    36 	SVW_CAPTION    =  1, ///< Caption of the window
    38 	SVW_WAITING    =  3, ///< List of waiting cargo
    37 	SVW_WAITING    =  3, ///< List of waiting cargo
    39 	SVW_ACCEPTLIST =  5, ///< List of accepted cargos
    38 	SVW_ACCEPTLIST =  5, ///< List of accepted cargos
    40 	SVW_RATINGLIST =  6, ///< Ratings of cargos
    39 	SVW_RATINGLIST =  5, ///< Ratings of cargos
    41 	SVW_LOCATION   =  7, ///< 'Location' button
    40 	SVW_LOCATION   =  6, ///< 'Location' button
    42 	SVW_RATINGS    =  8, ///< 'Ratings' button
    41 	SVW_RATINGS    =  7, ///< 'Ratings' button
    43 	SVW_ACCEPTS    =  8, ///< 'Accepts' button
    42 	SVW_ACCEPTS    =  7, ///< 'Accepts' button
    44 	SVW_RENAME     =  9, ///< 'Rename' button
    43 	SVW_RENAME     =  8, ///< 'Rename' button
    45 	SVW_TRAINS     = 10, ///< List of scheduled trains button
    44 	SVW_TRAINS     =  9, ///< List of scheduled trains button
    46 	SVW_ROADVEHS,        ///< List of scheduled road vehs button
    45 	SVW_ROADVEHS,        ///< List of scheduled road vehs button
    47 	SVW_PLANES,          ///< List of scheduled planes button
    46 	SVW_PLANES,          ///< List of scheduled planes button
    48 	SVW_SHIPS,           ///< List of scheduled ships button
    47 	SVW_SHIPS,           ///< List of scheduled ships button
       
    48 	SVW_RESIZE,          ///< Resize button
    49 };
    49 };
    50 
    50 
    51 /* sorter stuff */
    51 /* sorter stuff */
    52 void RebuildStationLists();
    52 void RebuildStationLists();
    53 void ResortStationLists();
    53 void ResortStationLists();
    56 	SCT_PASSENGERS_ONLY,
    56 	SCT_PASSENGERS_ONLY,
    57 	SCT_NON_PASSENGERS_ONLY,
    57 	SCT_NON_PASSENGERS_ONLY,
    58 	SCT_ALL
    58 	SCT_ALL
    59 };
    59 };
    60 
    60 
    61 void DrawStationCoverageAreaText(int sx, int sy, StationCoverageType sct, int rad);
    61 int DrawStationCoverageAreaText(int sx, int sy, StationCoverageType sct, int rad);
    62 void CheckRedrawStationCoverage(const Window *w);
    62 void CheckRedrawStationCoverage(const Window *w);
    63 
    63 
       
    64 extern bool _station_show_coverage;
       
    65 
    64 #endif /* STATION_GUI_H */
    66 #endif /* STATION_GUI_H */