diff options
Diffstat (limited to 'src/airport_gui.cpp')
-rw-r--r-- | src/airport_gui.cpp | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp index 0f475aa6d..d139c5607 100644 --- a/src/airport_gui.cpp +++ b/src/airport_gui.cpp @@ -29,6 +29,8 @@ #include "vehicle_func.h" #include "sprite.h" +#include "widgets/airport_widget.h" + #include "table/strings.h" static AirportClassID _selected_airport_class; ///< the currently visible airport class @@ -63,13 +65,6 @@ static void PlaceAirport(TileIndex tile) ShowSelectStationIfNeeded(cmdcont, TileArea(tile, _thd.size.x / TILE_SIZE, _thd.size.y / TILE_SIZE)); } -/** Widget number of the airport build window. */ -enum AirportToolbarWidgets { - ATW_AIRPORT, - ATW_DEMOLISH, -}; - - /** Airport build toolbar window handler. */ struct BuildAirToolbarWindow : Window { int last_user_action; // Last started user action. @@ -204,22 +199,6 @@ EventState AirportToolbarGlobalHotkeys(uint16 key, uint16 keycode) return w->OnKeyPress(key, keycode); } -/** Airport widgets in the airport picker window. */ -enum AirportPickerWidgets { - BAIRW_CLASS_DROPDOWN, - BAIRW_AIRPORT_LIST, - BAIRW_SCROLLBAR, - BAIRW_LAYOUT_NUM, - BAIRW_LAYOUT_DECREASE, - BAIRW_LAYOUT_INCREASE, - BAIRW_AIRPORT_SPRITE, - BAIRW_EXTRA_TEXT, - BAIRW_BOTTOMPANEL, - BAIRW_COVERAGE_LABEL, - BAIRW_BTN_DONTHILIGHT, - BAIRW_BTN_DOHILIGHT, -}; - class BuildAirportWindow : public PickerWindowBase { SpriteID preview_sprite; ///< Cached airport preview sprite. int line_height; |