OpenTTD Source 20241224-master-gf74b0cf984
|
File for dealing with rail construction user interface More...
#include "stdafx.h"
#include "gui.h"
#include "station_base.h"
#include "waypoint_base.h"
#include "window_gui.h"
#include "station_gui.h"
#include "terraform_gui.h"
#include "viewport_func.h"
#include "command_func.h"
#include "waypoint_func.h"
#include "newgrf_station.h"
#include "company_base.h"
#include "strings_func.h"
#include "window_func.h"
#include "sound_func.h"
#include "company_func.h"
#include "dropdown_type.h"
#include "dropdown_func.h"
#include "tunnelbridge.h"
#include "tilehighlight_func.h"
#include "spritecache.h"
#include "core/geometry_func.hpp"
#include "hotkeys.h"
#include "engine_base.h"
#include "vehicle_func.h"
#include "zoom_func.h"
#include "rail_gui.h"
#include "station_cmd.h"
#include "tunnelbridge_cmd.h"
#include "waypoint_cmd.h"
#include "rail_cmd.h"
#include "timer/timer.h"
#include "timer/timer_game_calendar.h"
#include "picker_gui.h"
#include "station_map.h"
#include "tunnelbridge_map.h"
#include "widgets/rail_widget.h"
#include "safeguards.h"
Go to the source code of this file.
Data Structures | |
struct | WaypointPickerSelection |
struct | StationPickerSelection |
struct | BuildRailToolbarWindow |
Rail toolbar management class. More... | |
class | StationPickerCallbacks |
struct | BuildRailStationWindow |
struct | BuildSignalWindow |
struct | BuildRailDepotWindow |
class | WaypointPickerCallbacks |
struct | BuildRailWaypointWindow |
Functions | |
static void | HandleStationPlacement (TileIndex start, TileIndex end) |
static void | ShowBuildTrainDepotPicker (Window *parent) |
static void | ShowBuildWaypointPicker (Window *parent) |
static Window * | ShowStationBuilder (Window *parent) |
Open station build window. | |
static void | ShowSignalBuilder (Window *parent) |
Open the signal selection window. | |
static bool | IsStationAvailable (const StationSpec *statspec) |
Check whether a station type can be build. | |
void | CcPlaySound_CONSTRUCTION_RAIL (Commands, const CommandCost &result, TileIndex tile) |
static void | GenericPlaceRail (TileIndex tile, Track track) |
static void | PlaceExtraDepotRail (TileIndex tile, DiagDirection dir, Track track) |
Try to add an additional rail-track at the entrance of a depot. | |
void | CcRailDepot (Commands, const CommandCost &result, TileIndex tile, RailType, DiagDirection dir) |
static void | PlaceRail_Waypoint (TileIndex tile) |
Place a rail waypoint. | |
void | CcStation (Commands, const CommandCost &result, TileIndex tile) |
static void | PlaceRail_Station (TileIndex tile) |
Place a rail station. | |
static void | GenericPlaceSignals (TileIndex tile) |
Build a new signal or edit/remove a present signal, use CmdBuildSingleSignal() or CmdRemoveSingleSignal() in rail_cmd.cpp. | |
static void | PlaceRail_Bridge (TileIndex tile, Window *w) |
Start placing a rail bridge. | |
void | CcBuildRailTunnel (Commands, const CommandCost &result, TileIndex tile) |
Command callback for building a tunnel. | |
static void | ToggleRailButton_Remove (Window *w) |
Toggles state of the Remove button of Build rail toolbar. | |
static bool | RailToolbar_CtrlChanged (Window *w) |
Updates the Remove button because of Ctrl state change. | |
static void | BuildRailClick_Remove (Window *w) |
The "remove"-button click proc of the build-rail toolbar. | |
static void | DoRailroadTrack (Track track) |
static void | HandleAutodirPlacement () |
static void | HandleAutoSignalPlacement () |
Build new signals or remove signals or (if only one tile marked) edit a signal. | |
Window * | ShowBuildRailToolbar (RailType railtype) |
Open the build rail toolbar window for a specific rail type. | |
static bool | StationUsesDefaultType (const BaseStation *bst) |
Test if a station/waypoint uses the default graphics. | |
void | InitializeRailGui () |
Initialize rail building GUI settings. | |
void | ReinitGuiAfterToggleElrail (bool disable) |
Re-initialize rail-build toolbar after toggling support for electric trains. | |
static void | SetDefaultRailGui () |
Set the initial (default) railtype to use. | |
void | ResetSignalVariant (int32_t) |
Updates the current signal variant used in the signal GUI to the one adequate to current year. | |
void | InitializeRailGUI () |
Resets the rail GUI - sets default railtype to build and resets the signal GUI. | |
DropDownList | GetRailTypeDropDownList (bool for_replacement, bool all_option) |
Create a drop down list for all the rail types of the local company. | |
Variables | |
static RailType | _cur_railtype |
Rail type of the current build-rail toolbar. | |
static bool | _remove_button_clicked |
Flag whether 'remove' toggle-button is currently enabled. | |
static DiagDirection | _build_depot_direction |
Currently selected depot direction. | |
static bool | _convert_signal_button |
convert signal button in the signal GUI pressed | |
static SignalVariant | _cur_signal_variant |
set the signal variant (for signal GUI) | |
static SignalType | _cur_signal_type |
set the signal type (for signal GUI) | |
static WaypointPickerSelection | _waypoint_gui |
Settings of the waypoint picker. | |
static StationPickerSelection | _station_gui |
Settings of the station picker. | |
static const Track | _place_depot_extra_track [12] |
Additional pieces of track to add at the entrance of a depot. | |
static const DiagDirection | _place_depot_extra_dir [12] |
Direction to check for existing track pieces. | |
static constexpr NWidgetPart | _nested_build_rail_widgets [] |
static WindowDesc | _build_rail_desc (WDP_ALIGN_TOOLBAR, "toolbar_rail", 0, 0, WC_BUILD_TOOLBAR, WC_NONE, WDF_CONSTRUCTION, _nested_build_rail_widgets, &BuildRailToolbarWindow::hotkeys) |
static constexpr NWidgetPart | _nested_station_builder_widgets [] |
static WindowDesc | _station_builder_desc (WDP_AUTO, "build_station_rail", 0, 0, WC_BUILD_STATION, WC_BUILD_TOOLBAR, WDF_CONSTRUCTION, _nested_station_builder_widgets, &BuildRailStationWindow::hotkeys) |
High level window description of the station-build window (default & newGRF) | |
static constexpr NWidgetPart | _nested_signal_builder_widgets [] |
Nested widget definition of the build signal window. | |
static WindowDesc | _signal_builder_desc (WDP_AUTO, nullptr, 0, 0, WC_BUILD_SIGNAL, WC_BUILD_TOOLBAR, WDF_CONSTRUCTION, _nested_signal_builder_widgets) |
Signal selection window description. | |
static constexpr NWidgetPart | _nested_build_depot_widgets [] |
Nested widget definition of the build rail depot window. | |
static WindowDesc | _build_depot_desc (WDP_AUTO, nullptr, 0, 0, WC_BUILD_DEPOT, WC_BUILD_TOOLBAR, WDF_CONSTRUCTION, _nested_build_depot_widgets) |
static constexpr NWidgetPart | _nested_build_waypoint_widgets [] |
Nested widget definition for the build NewGRF rail waypoint window. | |
static WindowDesc | _build_waypoint_desc (WDP_AUTO, "build_waypoint", 0, 0, WC_BUILD_WAYPOINT, WC_BUILD_TOOLBAR, WDF_CONSTRUCTION, _nested_build_waypoint_widgets, &BuildRailWaypointWindow::hotkeys) |
static IntervalTimer< TimerGameCalendar > | _check_reset_signal ({TimerGameCalendar::YEAR, TimerGameCalendar::Priority::NONE}, [](auto) { if(TimerGameCalendar::year !=_settings_client.gui.semaphore_build_before) return;ResetSignalVariant();}) |
File for dealing with rail construction user interface
Definition in file rail_gui.cpp.
|
static |
The "remove"-button click proc of the build-rail toolbar.
w | Build-rail toolbar window |
Definition at line 352 of file rail_gui.cpp.
References _remove_button_clicked, _settings_client, _settings_game, _station_gui, StationPickerSelection::axis, SoundSettings::click_beep, ClientSettings::gui, Window::IsWidgetDisabled(), Window::IsWidgetLowered(), SetTileSelectSize(), SND_15_BEEP, ClientSettings::sound, GameSettings::station, GUISettings::station_dragdrop, GUISettings::station_numtracks, GUISettings::station_platlength, StationSettings::station_spread, Swap(), ToggleRailButton_Remove(), WID_RAT_BUILD_STATION, and WID_RAT_REMOVE.
Referenced by BuildRailToolbarWindow::OnClick().
void CcBuildRailTunnel | ( | Commands | , |
const CommandCost & | result, | ||
TileIndex | tile | ||
) |
Command callback for building a tunnel.
Definition at line 303 of file rail_gui.cpp.
References _build_tunnel_endtile, _settings_client, SoundSettings::confirm, ClientSettings::gui, GUISettings::persistent_buildingtools, ResetObjectToPlace(), SetRedErrorSquare(), SND_20_CONSTRUCTION_RAIL, ClientSettings::sound, and CommandCost::Succeeded().
void CcPlaySound_CONSTRUCTION_RAIL | ( | Commands | , |
const CommandCost & | result, | ||
TileIndex | tile | ||
) |
Definition at line 94 of file rail_gui.cpp.
void CcRailDepot | ( | Commands | cmd, |
const CommandCost & | result, | ||
TileIndex | tile, | ||
RailType | rt, | ||
DiagDirection | dir | ||
) |
Definition at line 140 of file rail_gui.cpp.
void CcStation | ( | Commands | , |
const CommandCost & | result, | ||
TileIndex | tile | ||
) |
Definition at line 184 of file rail_gui.cpp.
|
static |
Definition at line 381 of file rail_gui.cpp.
Definition at line 99 of file rail_gui.cpp.
|
static |
Build a new signal or edit/remove a present signal, use CmdBuildSingleSignal() or CmdRemoveSingleSignal() in rail_cmd.cpp.
tile | The tile where the signal will build or edit |
Definition at line 233 of file rail_gui.cpp.
References _convert_signal_button, _ctrl_pressed, _cur_signal_type, _cur_signal_variant, _remove_button_clicked, _settings_client, GUISettings::cycle_signal_types, GUISettings::default_signal_type, FindFirstTrack(), FindWindowById(), GetTileTrackStatus(), ClientSettings::gui, HasSignalOnTrack(), IsPlainRailTile(), IsValidTrack(), GUISettings::semaphore_build_before, SIG_ELECTRIC, SIG_SEMAPHORE, SIGNAL_CYCLE_ALL, SIGNAL_GUI_ALL, GUISettings::signal_gui_mode, SIGTYPE_BLOCK, SIGTYPE_PBS, TRACK_BIT_HORZ, TRACK_BIT_LEFT, TRACK_BIT_LOWER, TRACK_BIT_RIGHT, TRACK_BIT_UPPER, TRACK_BIT_VERT, TrackStatusToTrackBits(), TRANSPORT_RAIL, WC_BUILD_SIGNAL, and TimerGameCalendar::year.
Referenced by HandleAutoSignalPlacement().
DropDownList GetRailTypeDropDownList | ( | bool | for_replacement, |
bool | all_option | ||
) |
Create a drop down list for all the rail types of the local company.
for_replacement | Whether this list is for the replacement window. |
all_option | Whether to add an 'all types' item. |
Definition at line 2011 of file rail_gui.cpp.
References _local_company, Company::avail_railtypes, RailTypeInfo::build_x_rail, Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_company_pool >::Get(), GetCompanyRailTypes(), GetRailTypeInfo(), GetRailTypes(), GetSpriteSize(), RailTypeInfo::gui_sprites, HasBit(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem< Tpool >::index, INVALID_RAILTYPE, RailTypeInfo::max_speed, maxdim(), RailTypeInfo::menu_text, RailTypeInfo::replace_text, SetDParam(), and RailTypeInfo::strings.
Referenced by ReplaceVehicleWindow::OnClick().
|
static |
Definition at line 392 of file rail_gui.cpp.
|
static |
Build new signals or remove signals or (if only one tile marked) edit a signal.
If one tile marked abort and use GenericPlaceSignals() else use CmdBuildSingleSignal() or CmdRemoveSingleSignal() in rail_cmd.cpp to build many signals
Definition at line 410 of file rail_gui.cpp.
References _ctrl_pressed, _cur_signal_type, _cur_signal_variant, _remove_button_clicked, _settings_client, GUISettings::default_signal_type, GUISettings::drag_signals_density, GUISettings::drag_signals_fixed_distance, TileHighlightData::drawstyle, FindWindowById(), GB(), GenericPlaceSignals(), ClientSettings::gui, HT_DRAG_MASK, HT_RECT, TileHighlightData::selend, TileHighlightData::selstart, GUISettings::semaphore_build_before, SIG_ELECTRIC, SIG_SEMAPHORE, TileVirtXY(), WC_BUILD_SIGNAL, and TimerGameCalendar::year.
Referenced by BuildRailToolbarWindow::OnPlaceMouseUp().
Definition at line 932 of file rail_gui.cpp.
void InitializeRailGui | ( | ) |
Initialize rail building GUI settings.
Definition at line 1895 of file rail_gui.cpp.
References _build_depot_direction, _station_gui, _waypoint_gui, DIAGDIR_NW, WaypointPickerSelection::sel_class, StationPickerSelection::sel_class, WaypointPickerSelection::sel_type, StationPickerSelection::sel_type, STAT_CLASS_DFLT, and STAT_CLASS_WAYP.
void InitializeRailGUI | ( | ) |
Resets the rail GUI - sets default railtype to build and resets the signal GUI.
Definition at line 1996 of file rail_gui.cpp.
References _convert_signal_button, _cur_signal_type, _settings_client, GUISettings::default_signal_type, ClientSettings::gui, ResetSignalVariant(), and SetDefaultRailGui().
Referenced by AfterLoadGame().
|
static |
Check whether a station type can be build.
Definition at line 84 of file rail_gui.cpp.
References CALLBACK_FAILED, StationSpec::callback_mask, CBID_STATION_AVAILABILITY, CBM_STATION_AVAIL, Convert8bitBooleanCallback(), StationSpec::grf_prop, GRFFilePropsBase< Tcnt >::grffile, HasBit(), and INVALID_TILE.
Referenced by StationPickerCallbacks::IsTypeAvailable(), and WaypointPickerCallbacks::IsTypeAvailable().
|
static |
Try to add an additional rail-track at the entrance of a depot.
tile | Tile to use for adding the rail-track |
dir | Direction to check for already present tracks |
track | Track to add |
Definition at line 117 of file rail_gui.cpp.
References _cur_railtype, _settings_client, GUISettings::auto_remove_signals, DiagdirReachesTracks(), GetRailTileType(), GetTrackBits(), ClientSettings::gui, RAIL_TILE_DEPOT, and RAIL_TILE_SIGNALS.
Start placing a rail bridge.
tile | Position of the first tile of the bridge. |
w | Rail toolbar window. |
Definition at line 291 of file rail_gui.cpp.
References DDSP_BUILD_BRIDGE, GetOtherTunnelBridgeEnd(), IsBridgeTile(), Window::OnPlaceMouseUp(), VPM_X_OR_Y, and VpStartPlaceSizing().
Referenced by BuildRailToolbarWindow::OnPlaceObject().
|
static |
Place a rail station.
tile | Position to place or start dragging a station. |
Definition at line 197 of file rail_gui.cpp.
References _ctrl_pressed, _cur_railtype, _remove_button_clicked, _settings_client, _settings_game, _station_gui, StationPickerSelection::axis, CommandFlagsToDCFlags(), DDSP_BUILD_STATION, DDSP_REMOVE_STATION, ClientSettings::gui, StationPickerSelection::sel_class, StationPickerSelection::sel_type, ShowSelectStationIfNeeded(), GameSettings::station, GUISettings::station_dragdrop, GUISettings::station_numtracks, GUISettings::station_platlength, StationSettings::station_spread, Swap(), VPM_X_AND_Y_LIMITED, and VpStartPlaceSizing().
Referenced by BuildRailToolbarWindow::OnPlaceObject().
|
static |
Place a rail waypoint.
tile | Position to start dragging a waypoint. |
Definition at line 165 of file rail_gui.cpp.
References _remove_button_clicked, _settings_game, AXIS_X, DDSP_BUILD_STATION, DDSP_REMOVE_STATION, GetAxisForNewRailWaypoint(), IsValidAxis(), STAT_CLASS_WAYP, GameSettings::station, StationSettings::station_spread, VPM_X_AND_Y, VPM_X_LIMITED, VPM_Y_LIMITED, and VpStartPlaceSizing().
Referenced by BuildRailToolbarWindow::OnPlaceObject().
|
static |
Updates the Remove button because of Ctrl state change.
w | window the button belongs to |
Definition at line 331 of file rail_gui.cpp.
References Window::IsWidgetDisabled(), Window::IsWidgetLowered(), ToggleRailButton_Remove(), WID_RAT_BUILD_NS, WID_RAT_BUILD_STATION, WID_RAT_BUILD_WAYPOINT, and WID_RAT_REMOVE.
Referenced by BuildRailToolbarWindow::OnClick(), and BuildRailToolbarWindow::OnCTRLStateChange().
void ReinitGuiAfterToggleElrail | ( | bool | disable | ) |
Re-initialize rail-build toolbar after toggling support for electric trains.
disable | Boolean whether electric trains are disabled (removed from the game) |
Definition at line 1908 of file rail_gui.cpp.
References _cur_railtype, FindWindowById(), MarkWholeScreenDirty(), BuildRailToolbarWindow::ModifyRailType(), RAILTYPE_ELECTRIC, RAILTYPE_RAIL, TRANSPORT_RAIL, and WC_BUILD_TOOLBAR.
void ResetSignalVariant | ( | int32_t | ) |
Updates the current signal variant used in the signal GUI to the one adequate to current year.
Definition at line 1971 of file rail_gui.cpp.
References _cur_signal_type, _cur_signal_variant, _settings_client, FindWindowById(), ClientSettings::gui, Window::RaiseWidget(), GUISettings::semaphore_build_before, Window::SetDirty(), SIG_ELECTRIC, SIG_SEMAPHORE, WC_BUILD_SIGNAL, WID_BS_ELECTRIC_NORM, WID_BS_SEMAPHORE_NORM, and TimerGameCalendar::year.
Referenced by ClickChangeDateCheat(), and InitializeRailGUI().
|
static |
Set the initial (default) railtype to use.
Definition at line 1920 of file rail_gui.cpp.
References _cur_railtype, _local_company, _settings_client, COMPANY_SPECTATOR, GUISettings::default_rail_type, FindWindowById(), GetRailType(), GetTunnelBridgeTransportType(), ClientSettings::gui, HasStationTileRail(), IsLevelCrossingTile(), IsTileType(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_company_pool >::IsValidID(), Map::Iterate(), BuildRailToolbarWindow::ModifyRailType(), MP_RAILWAY, MP_TUNNELBRIDGE, RAILTYPE_BEGIN, RAILTYPE_END, TRANSPORT_RAIL, and WC_BUILD_TOOLBAR.
Referenced by InitializeRailGUI().
Open the build rail toolbar window for a specific rail type.
If the terraform toolbar is linked to the toolbar, that window is also opened.
railtype | Rail type to open the window for |
Definition at line 918 of file rail_gui.cpp.
References _cur_railtype, _local_company, _remove_button_clicked, CloseWindowByClass(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_company_pool >::IsValidID(), ValParamRailType(), and WC_BUILD_TOOLBAR.
Referenced by MenuClickBuildRail(), MainToolbarWindow::OnHotkey(), and BuildRailToolbarWindow::RailToolbarGlobalHotkeys().
|
static |
Definition at line 1774 of file rail_gui.cpp.
|
static |
Definition at line 1886 of file rail_gui.cpp.
|
static |
Open the signal selection window.
Definition at line 1696 of file rail_gui.cpp.
References _signal_builder_desc.
Referenced by BuildRailToolbarWindow::OnClick().
Open station build window.
Definition at line 1439 of file rail_gui.cpp.
References _station_builder_desc.
Referenced by BuildRailStationWindow::BuildRailStationGlobalHotkeys(), and BuildRailToolbarWindow::OnClick().
|
static |
Test if a station/waypoint uses the default graphics.
bst | Station to test. |
Definition at line 960 of file rail_gui.cpp.
References GetCustomStationSpecIndex(), HasStationRail(), BaseStation::TileBelongsToRailStation(), and BaseStation::train_station.
Referenced by StationPickerCallbacks::FillUsedItems(), and WaypointPickerCallbacks::FillUsedItems().
|
static |
Toggles state of the Remove button of Build rail toolbar.
w | window the button belongs to |
Definition at line 317 of file rail_gui.cpp.
References _remove_button_clicked, CloseWindowById(), Window::IsWidgetLowered(), Window::SetWidgetDirty(), Window::ToggleWidgetLoweredState(), WC_SELECT_STATION, and WID_RAT_REMOVE.
Referenced by BuildRailClick_Remove(), BuildSignalWindow::OnClick(), and RailToolbar_CtrlChanged().
|
static |
Currently selected depot direction.
Definition at line 55 of file rail_gui.cpp.
Referenced by InitializeRailGui(), BuildRailDepotWindow::OnClick(), and BuildRailToolbarWindow::OnPlaceObject().
|
static |
convert signal button in the signal GUI pressed
Definition at line 56 of file rail_gui.cpp.
Referenced by BuildSignalWindow::Close(), GenericPlaceSignals(), InitializeRailGUI(), BuildSignalWindow::OnClick(), BuildSignalWindow::OnInvalidateData(), and BuildRailToolbarWindow::OnPlaceDrag().
|
static |
Rail type of the current build-rail toolbar.
Definition at line 53 of file rail_gui.cpp.
Referenced by StationPickerCallbacks::DrawType(), WaypointPickerCallbacks::DrawType(), BuildRailStationWindow::DrawWidget(), BuildSignalWindow::DrawWidget(), BuildRailDepotWindow::DrawWidget(), BuildRailToolbarWindow::OnClick(), BuildSignalWindow::OnInit(), BuildRailToolbarWindow::OnPlaceMouseUp(), BuildRailToolbarWindow::OnPlaceObject(), BuildRailToolbarWindow::OnPlacePresize(), PlaceExtraDepotRail(), PlaceRail_Station(), ReinitGuiAfterToggleElrail(), SetDefaultRailGui(), and ShowBuildRailToolbar().
|
static |
set the signal type (for signal GUI)
Definition at line 58 of file rail_gui.cpp.
Referenced by GenericPlaceSignals(), HandleAutoSignalPlacement(), InitializeRailGUI(), BuildSignalWindow::OnClick(), BuildSignalWindow::OnInvalidateData(), and ResetSignalVariant().
|
static |
set the signal variant (for signal GUI)
Definition at line 57 of file rail_gui.cpp.
Referenced by GenericPlaceSignals(), HandleAutoSignalPlacement(), BuildSignalWindow::OnClick(), BuildSignalWindow::OnInvalidateData(), and ResetSignalVariant().
|
staticconstexpr |
Nested widget definition of the build rail depot window.
Definition at line 1748 of file rail_gui.cpp.
|
staticconstexpr |
Definition at line 860 of file rail_gui.cpp.
|
staticconstexpr |
Nested widget definition for the build NewGRF rail waypoint window.
Definition at line 1865 of file rail_gui.cpp.
|
staticconstexpr |
Nested widget definition of the build signal window.
Definition at line 1620 of file rail_gui.cpp.
|
staticconstexpr |
Definition at line 1376 of file rail_gui.cpp.
|
static |
Direction to check for existing track pieces.
Definition at line 134 of file rail_gui.cpp.
|
static |
Additional pieces of track to add at the entrance of a depot.
Definition at line 127 of file rail_gui.cpp.
|
static |
Flag whether 'remove' toggle-button is currently enabled.
Definition at line 54 of file rail_gui.cpp.
Referenced by BuildRailClick_Remove(), GenericPlaceSignals(), HandleAutoSignalPlacement(), BuildRailToolbarWindow::OnClick(), BuildSignalWindow::OnClick(), BuildRailStationWindow::OnPaint(), BuildRailToolbarWindow::OnPlaceMouseUp(), PlaceRail_Station(), PlaceRail_Waypoint(), ShowBuildRailToolbar(), and ToggleRailButton_Remove().
|
static |
Settings of the station picker.
Definition at line 71 of file rail_gui.cpp.
Referenced by BuildRailClick_Remove(), StationPickerCallbacks::DrawType(), BuildRailStationWindow::DrawWidget(), StationPickerCallbacks::GetSelectedClass(), StationPickerCallbacks::GetSelectedType(), InitializeRailGui(), BuildRailStationWindow::OnClick(), BuildRailStationWindow::OnInvalidateData(), BuildRailStationWindow::OnPaint(), PlaceRail_Station(), StationPickerCallbacks::SetSelectedClass(), and StationPickerCallbacks::SetSelectedType().
|
static |
Settings of the waypoint picker.
Definition at line 64 of file rail_gui.cpp.
Referenced by WaypointPickerCallbacks::GetSelectedClass(), WaypointPickerCallbacks::GetSelectedType(), InitializeRailGui(), BuildRailToolbarWindow::OnPlaceMouseUp(), WaypointPickerCallbacks::SetSelectedClass(), and WaypointPickerCallbacks::SetSelectedType().