#include "command_type.h"
Go to the source code of this file.
Enumerations | |
| enum | StationViewWidgets { SVW_CLOSEBOX = 0, SVW_CAPTION = 1, SVW_WAITING = 3, SVW_ACCEPTLIST = 5, SVW_RATINGLIST = 5, SVW_LOCATION = 6, SVW_RATINGS = 7, SVW_ACCEPTS = 7, SVW_RENAME = 8, SVW_TRAINS = 9, SVW_ROADVEHS, SVW_PLANES, SVW_SHIPS, SVW_RESIZE } |
| Enum for StationView, referring to _station_view_widgets and _station_view_expanded_widgets. More... | |
| enum | StationCoverageType { SCT_PASSENGERS_ONLY, SCT_NON_PASSENGERS_ONLY, SCT_ALL } |
Functions | |
| int | DrawStationCoverageAreaText (int sx, int sy, StationCoverageType sct, int rad, bool supplies) |
| Calculates and draws the accepted or supplied cargo around the selected tile(s). | |
| void | CheckRedrawStationCoverage (const Window *w) |
| void | ShowSelectStationIfNeeded (CommandContainer cmd, int w, int h) |
| Show the station selection window when needed. | |
Definition in file station_gui.h.
| enum StationViewWidgets |
Enum for StationView, referring to _station_view_widgets and _station_view_expanded_widgets.
Definition at line 11 of file station_gui.h.
| int DrawStationCoverageAreaText | ( | int | sx, | |
| int | sy, | |||
| StationCoverageType | sct, | |||
| int | rad, | |||
| bool | supplies | |||
| ) |
Calculates and draws the accepted or supplied cargo around the selected tile(s).
| sx | x position where the string is to be drawn | |
| sy | y position where the string is to be drawn | |
| sct | which type of cargo is to be displayed (passengers/non-passengers) | |
| rad | radius around selected tile(s) to be searched | |
| supplies | if supplied cargos should be drawn, else accepted cargos |
Definition at line 748 of file misc_gui.cpp.
References GetAcceptanceAroundTiles(), GetProductionAroundTiles(), MapSize(), and TILE_SIZE.
| void ShowSelectStationIfNeeded | ( | CommandContainer | cmd, | |
| int | w, | |||
| int | h | |||
| ) |
Show the station selection window when needed.
If not, build the station.
| cmd | Command to build the station. | |
| w | Width of the to-be-built station | |
| h | Height of the to-be-built station |
Definition at line 1252 of file station_gui.cpp.
References _settings_client, BringWindowToFrontById(), DoCommandP(), ClientSettings::gui, GUISettings::persistent_buildingtools, and StationJoinerNeeded().
1.5.6