#include "stdafx.h"#include "openttd.h"#include "tile_map.h"#include "station.h"#include "gui.h"#include "terraform_gui.h"#include "window_gui.h"#include "station_gui.h"#include "command_func.h"#include "settings_type.h"#include "water.h"#include "window_func.h"#include "vehicle_func.h"#include "sound_func.h"#include "viewport_func.h"#include "gfx_func.h"#include "player_func.h"#include "slope_func.h"#include "table/sprites.h"#include "table/strings.h"Go to the source code of this file.
Typedefs | |
| typedef void | OnButtonClick (Window *w) |
Enumerations | |
| enum | { DTW_CANAL = 3, DTW_LOCK = 4, DTW_DEMOLISH = 6, DTW_DEPOT = 7, DTW_STATION = 8, DTW_BUOY = 9 } |
Functions | |
| static void | ShowBuildDockStationPicker () |
| static void | ShowBuildDocksDepotPicker () |
| void | CcBuildDocks (bool success, TileIndex tile, uint32 p1, uint32 p2) |
| void | CcBuildCanal (bool success, TileIndex tile, uint32 p1, uint32 p2) |
| static void | PlaceDocks_Dock (TileIndex tile) |
| static void | PlaceDocks_Depot (TileIndex tile) |
| static void | PlaceDocks_Buoy (TileIndex tile) |
| static void | PlaceDocks_DemolishArea (TileIndex tile) |
| static void | PlaceDocks_BuildCanal (TileIndex tile) |
| static void | PlaceDocks_BuildLock (TileIndex tile) |
| static void | BuildDocksClick_Canal (Window *w) |
| static void | BuildDocksClick_Lock (Window *w) |
| static void | BuildDocksClick_Demolish (Window *w) |
| static void | BuildDocksClick_Depot (Window *w) |
| static void | BuildDocksClick_Dock (Window *w) |
| static void | BuildDocksClick_Buoy (Window *w) |
| static void | BuildDocksToolbWndProc (Window *w, WindowEvent *e) |
| void | ShowBuildDocksToolbar () |
| static void | BuildDockStationWndProc (Window *w, WindowEvent *e) |
| static void | UpdateDocksDirection () |
| static void | BuildDocksDepotWndProc (Window *w, WindowEvent *e) |
| void | InitializeDockGui () |
Variables | |
| static Axis | _ship_depot_direction |
| static OnButtonClick *const | _build_docks_button_proc [] |
| static const Widget | _build_docks_toolb_widgets [] |
| static const WindowDesc | _build_docks_toolbar_desc |
| static const Widget | _build_dock_station_widgets [] |
| static const WindowDesc | _build_dock_station_desc |
| static const Widget | _build_docks_depot_widgets [] |
| static const WindowDesc | _build_docks_depot_desc |
Definition in file dock_gui.cpp.
const WindowDesc _build_dock_station_desc [static] |
Initial value:
{
WDP_AUTO, WDP_AUTO, 148, 75, 148, 75,
WC_BUILD_STATION, WC_BUILD_TOOLBAR,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
_build_dock_station_widgets,
BuildDockStationWndProc
}
Definition at line 305 of file dock_gui.cpp.
const Widget _build_dock_station_widgets[] [static] |
Initial value:
{
{ WWT_CLOSEBOX, RESIZE_NONE, 7, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW},
{ WWT_CAPTION, RESIZE_NONE, 7, 11, 147, 0, 13, STR_3068_DOCK, STR_018C_WINDOW_TITLE_DRAG_THIS},
{ WWT_PANEL, RESIZE_NONE, 7, 0, 147, 14, 74, 0x0, STR_NULL},
{ WWT_TEXTBTN, RESIZE_NONE, 14, 14, 73, 30, 40, STR_02DB_OFF, STR_3065_DON_T_HIGHLIGHT_COVERAGE},
{ WWT_TEXTBTN, RESIZE_NONE, 14, 74, 133, 30, 40, STR_02DA_ON, STR_3064_HIGHLIGHT_COVERAGE_AREA},
{ WWT_LABEL, RESIZE_NONE, 7, 0, 147, 17, 30, STR_3066_COVERAGE_AREA_HIGHLIGHT, STR_NULL},
{ WIDGETS_END},
}
Definition at line 295 of file dock_gui.cpp.
OnButtonClick* const _build_docks_button_proc[] [static] |
Initial value:
{
BuildDocksClick_Canal,
BuildDocksClick_Lock,
NULL,
BuildDocksClick_Demolish,
BuildDocksClick_Depot,
BuildDocksClick_Dock,
BuildDocksClick_Buoy
}
Definition at line 122 of file dock_gui.cpp.
const WindowDesc _build_docks_depot_desc [static] |
Initial value:
{
WDP_AUTO, WDP_AUTO, 204, 86, 204, 86,
WC_BUILD_DEPOT, WC_BUILD_TOOLBAR,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
_build_docks_depot_widgets,
BuildDocksDepotWndProc
}
Definition at line 374 of file dock_gui.cpp.
const Widget _build_docks_depot_widgets[] [static] |
Initial value:
{
{ WWT_CLOSEBOX, RESIZE_NONE, 7, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW},
{ WWT_CAPTION, RESIZE_NONE, 7, 11, 203, 0, 13, STR_3800_SHIP_DEPOT_ORIENTATION, STR_018C_WINDOW_TITLE_DRAG_THIS},
{ WWT_PANEL, RESIZE_NONE, 7, 0, 203, 14, 85, 0x0, STR_NULL},
{ WWT_PANEL, RESIZE_NONE, 14, 3, 100, 17, 82, 0x0, STR_3803_SELECT_SHIP_DEPOT_ORIENTATION},
{ WWT_PANEL, RESIZE_NONE, 14, 103, 200, 17, 82, 0x0, STR_3803_SELECT_SHIP_DEPOT_ORIENTATION},
{ WIDGETS_END},
}
Definition at line 365 of file dock_gui.cpp.
const Widget _build_docks_toolb_widgets[] [static] |
Initial value:
{
{ WWT_CLOSEBOX, RESIZE_NONE, 7, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW},
{ WWT_CAPTION, RESIZE_NONE, 7, 11, 123, 0, 13, STR_9801_DOCK_CONSTRUCTION, STR_018C_WINDOW_TITLE_DRAG_THIS},
{ WWT_STICKYBOX, RESIZE_NONE, 7, 124, 135, 0, 13, 0x0, STR_STICKY_BUTTON},
{ WWT_IMGBTN, RESIZE_NONE, 7, 0, 21, 14, 35, SPR_IMG_BUILD_CANAL, STR_BUILD_CANALS_TIP},
{ WWT_IMGBTN, RESIZE_NONE, 7, 22, 43, 14, 35, SPR_IMG_BUILD_LOCK, STR_BUILD_LOCKS_TIP},
{ WWT_PANEL, RESIZE_NONE, 7, 44, 47, 14, 35, 0x0, STR_NULL},
{ WWT_IMGBTN, RESIZE_NONE, 7, 48, 69, 14, 35, SPR_IMG_DYNAMITE, STR_018D_DEMOLISH_BUILDINGS_ETC},
{ WWT_IMGBTN, RESIZE_NONE, 7, 70, 91, 14, 35, SPR_IMG_SHIP_DEPOT, STR_981E_BUILD_SHIP_DEPOT_FOR_BUILDING},
{ WWT_IMGBTN, RESIZE_NONE, 7, 92, 113, 14, 35, SPR_IMG_SHIP_DOCK, STR_981D_BUILD_SHIP_DOCK},
{ WWT_IMGBTN, RESIZE_NONE, 7, 114, 135, 14, 35, SPR_IMG_BOUY, STR_9834_POSITION_BUOY_WHICH_CAN},
{ WIDGETS_END},
}
Definition at line 207 of file dock_gui.cpp.
const WindowDesc _build_docks_toolbar_desc [static] |
Initial value:
{
WDP_ALIGN_TBR, 22, 136, 36, 136, 36,
WC_BUILD_TOOLBAR, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON,
_build_docks_toolb_widgets,
BuildDocksToolbWndProc
}
Definition at line 223 of file dock_gui.cpp.
1.5.6