OpenTTD Source
20240915-master-g3784a3d3d6
|
Go to the documentation of this file.
28 void CheckRedrawRailWaypointCoverage(
const Window *w);
29 void CheckRedrawRoadWaypointCoverage(
const Window *w);
31 using StationPickerCmdProc = std::function<bool(
bool test, StationID to_join)>;
void ShowSelectStationIfNeeded(TileArea ta, StationPickerCmdProc proc)
Show the station selection window when needed.
@ SCT_PASSENGERS_ONLY
Draw only passenger class cargoes.
void CheckRedrawStationCoverage(const Window *w)
Check whether we need to redraw the station coverage text.
StationCoverageType
Types of cargo to display for station coverage.
Represents the covered area of e.g.
@ SCT_ALL
Draw all cargoes.
int DrawStationCoverageAreaText(int left, int right, int top, StationCoverageType sct, int rad, bool supplies)
Calculates and draws the accepted or supplied cargo around the selected tile(s)
@ SCT_NON_PASSENGERS_ONLY
Draw all non-passenger class cargoes.
void ShowSelectRoadWaypointIfNeeded(TileArea ta, StationPickerCmdProc proc)
Show the road waypoint selection window when needed.
Data structure for an opened window.
void ShowSelectRailWaypointIfNeeded(TileArea ta, StationPickerCmdProc proc)
Show the rail waypoint selection window when needed.