Public Member Functions | |
BuildDocksStationWindow (const WindowDesc *desc, Window *parent) | |
virtual void | OnPaint () |
The window must be repainted. | |
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 393 of file dock_gui.cpp.
virtual void BuildDocksStationWindow::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 433 of file dock_gui.cpp.
References _settings_client, BDSW_LT_OFF, BDSW_LT_ON, SoundSettings::click_beep, ClientSettings::gui, Window::LowerWidget(), Window::RaiseWidget(), Window::SetDirty(), ClientSettings::sound, and GUISettings::station_show_coverage.
virtual void BuildDocksStationWindow::OnPaint | ( | ) | [inline, virtual] |
The window must be repainted.
Reimplemented from Window.
Definition at line 406 of file dock_gui.cpp.
References _settings_client, _settings_game, BDSW_LT_OFF, CA_DOCK, CA_UNMODIFIED, NWidgetBase::current_x, NWidgetBase::current_y, DrawStationCoverageAreaText(), Window::DrawWidgets(), ClientSettings::gui, StationSettings::modified_catchment, NWidgetBase::pos_x, NWidgetBase::pos_y, ResizeWindow(), SCT_ALL, SetTileSelectSize(), GameSettings::station, GUISettings::station_show_coverage, Window::top, WD_FRAMERECT_LEFT, and WD_FRAMERECT_RIGHT.