Public Member Functions | |
BuildRoadStationWindow (WindowDesc *desc, Window *parent, RoadStopType rs) | |
virtual void | OnPaint () |
The window must be repainted. | |
virtual void | DrawWidget (const Rect &r, int widget) const |
Draw the contents of a nested widget. | |
virtual void | OnClick (Point pt, int widget, int click_count) |
A click with the left mouse button has been made on the window. | |
virtual void | OnTick () |
Called once per (game) tick. |
Definition at line 932 of file road_gui.cpp.
virtual void BuildRoadStationWindow::DrawWidget | ( | const Rect & | r, | |
int | widget | |||
) | const [inline, virtual] |
Draw the contents of a nested widget.
r | Rectangle occupied by the widget. | |
widget | Number of the widget to draw. |
Reimplemented from Window.
Definition at line 991 of file road_gui.cpp.
References INVALID_RAILTYPE, IsInsideMM(), ROADTYPE_ROAD, TILE_PIXELS, WID_BROS_STATION_NE, WID_BROS_STATION_X, WID_BROS_STATION_Y, and Window::window_class.
virtual void BuildRoadStationWindow::OnClick | ( | Point | pt, | |
int | widget, | |||
int | click_count | |||
) | [inline, virtual] |
A click with the left mouse button has been made on the window.
pt | the point inside the window that has been clicked. | |
widget | the clicked widget. | |
click_count | Number of fast consecutive clicks at same position |
Reimplemented from Window.
Definition at line 999 of file road_gui.cpp.
References _settings_client, SoundSettings::click_beep, DeleteWindowById(), ClientSettings::gui, Window::LowerWidget(), Window::RaiseWidget(), Window::SetDirty(), ClientSettings::sound, GUISettings::station_show_coverage, WC_SELECT_STATION, WID_BROS_LT_OFF, WID_BROS_LT_ON, WID_BROS_STATION_NE, WID_BROS_STATION_NW, WID_BROS_STATION_SE, WID_BROS_STATION_SW, WID_BROS_STATION_X, and WID_BROS_STATION_Y.
virtual void BuildRoadStationWindow::OnPaint | ( | ) | [inline, virtual] |
The window must be repainted.
Reimplemented from Window.
Definition at line 964 of file road_gui.cpp.
References _settings_client, _settings_game, CA_BUS, CA_TRUCK, NWidgetBase::current_x, NWidgetBase::current_y, DrawStationCoverageAreaText(), Window::DrawWidgets(), ClientSettings::gui, StationSettings::modified_catchment, NWidgetBase::pos_x, NWidgetBase::pos_y, ResizeWindow(), SCT_NON_PASSENGERS_ONLY, SCT_PASSENGERS_ONLY, SetTileSelectSize(), GameSettings::station, GUISettings::station_show_coverage, Window::top, WD_FRAMERECT_LEFT, WD_FRAMERECT_RIGHT, WID_BROS_LT_ON, and Window::window_class.