Changeset - r5070:6da414a78d0e
[Not reviewed]
master
0 24 0
Darkvater - 18 years ago 2006-11-10 19:24:14
darkvater@openttd.org
(svn r7128) -Codechange: Replace magic numbers by magic enums (windowdesc positioning WDP_AUTO = -1)
24 files changed with 112 insertions and 112 deletions:
0 comments (0 inline, 0 general)
aircraft_gui.c
Show inline comments
 
@@ -164,13 +164,13 @@ static const Widget _aircraft_details_wi
 
{ WWT_PUSHTXTBTN,   RESIZE_NONE,    14,     0,    10,   108,   113, STR_0189,         STR_884E_DECREASE_SERVICING_INTERVAL },
 
{      WWT_PANEL,   RESIZE_NONE,    14,    11,   389,   102,   113, 0x0,              STR_NULL },
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _aircraft_details_desc = {
 
	-1, -1, 390, 114,
 
	WDP_AUTO, WDP_AUTO, 390, 114,
 
	WC_VEHICLE_DETAILS, WC_VEHICLE_VIEW,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
 
	_aircraft_details_widgets,
 
	AircraftDetailsWndProc
 
};
 

	
 
@@ -328,13 +328,13 @@ static void AircraftViewWndProc(Window *
 
	} break;
 
	}
 
}
 

	
 

	
 
static const WindowDesc _aircraft_view_desc = {
 
	-1,-1, 250, 116,
 
	WDP_AUTO, WDP_AUTO, 250, 116,
 
	WC_VEHICLE_VIEW ,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
 
	_aircraft_view_widgets,
 
	AircraftViewWndProc
 
};
 

	
airport_gui.c
Show inline comments
 
@@ -121,14 +121,14 @@ static const Widget _air_toolbar_widgets
 
{     WWT_IMGBTN,   RESIZE_NONE,     7,    64,    85,    14,    35, SPR_IMG_LANDSCAPING, STR_LANDSCAPING_TOOLBAR_TIP },
 
{   WIDGETS_END},
 
};
 

	
 

	
 
static const WindowDesc _air_toolbar_desc = {
 
	640-86, 22, 86, 36,
 
	WC_BUILD_TOOLBAR,0,
 
	0, 22, 86, 36,
 
	WC_BUILD_TOOLBAR, 0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON,
 
	_air_toolbar_widgets,
 
	BuildAirToolbWndProc
 
};
 

	
 
void ShowBuildAirToolbar(void)
 
@@ -259,14 +259,14 @@ static const Widget _build_airport_picke
 
{      WWT_LABEL,   RESIZE_NONE,     7,     0,   147,   128,   141, STR_HELIPORTS,                    STR_NULL},
 
{      WWT_LABEL,   RESIZE_NONE,     7,     0,   147,   178,   191, STR_3066_COVERAGE_AREA_HIGHLIGHT, STR_NULL},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _build_airport_desc = {
 
	-1, -1, 148, 240,
 
	WC_BUILD_STATION,WC_BUILD_TOOLBAR,
 
	WDP_AUTO, WDP_AUTO, 148, 240,
 
	WC_BUILD_STATION, WC_BUILD_TOOLBAR,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_build_airport_picker_widgets,
 
	BuildAirportPickerWndProc
 
};
 

	
 
static void ShowBuildAirportPicker(void)
bridge_gui.c
Show inline comments
 
@@ -84,14 +84,14 @@ static const Widget _build_bridge_widget
 
{     WWT_MATRIX,   RESIZE_NONE,     7,     0,   187,    14,   101, 0x401,                       STR_101F_BRIDGE_SELECTION_CLICK},
 
{  WWT_SCROLLBAR,   RESIZE_NONE,     7,   188,   199,    14,   101, 0x0,                         STR_0190_SCROLL_BAR_SCROLLS_LIST},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _build_bridge_desc = {
 
	-1, -1, 200, 102,
 
	WC_BUILD_BRIDGE,WC_BUILD_TOOLBAR,
 
	WDP_AUTO, WDP_AUTO, 200, 102,
 
	WC_BUILD_BRIDGE, WC_BUILD_TOOLBAR,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_build_bridge_widgets,
 
	BuildBridgeWndProc
 
};
 

	
 

	
 
@@ -101,14 +101,14 @@ static const Widget _build_road_bridge_w
 
{     WWT_MATRIX,   RESIZE_NONE,     7,     0,   187,    14,   101, 0x401,                       STR_101F_BRIDGE_SELECTION_CLICK},
 
{  WWT_SCROLLBAR,   RESIZE_NONE,     7,   188,   199,    14,   101, 0x0,                         STR_0190_SCROLL_BAR_SCROLLS_LIST},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _build_road_bridge_desc = {
 
	-1, -1, 200, 102,
 
	WC_BUILD_BRIDGE,WC_BUILD_TOOLBAR,
 
	WDP_AUTO, WDP_AUTO, 200, 102,
 
	WC_BUILD_BRIDGE, WC_BUILD_TOOLBAR,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_build_road_bridge_widgets,
 
	BuildBridgeWndProc
 
};
 

	
 

	
build_vehicle_gui.c
Show inline comments
 
@@ -537,13 +537,13 @@ static void NewAircraftWndProc(Window *w
 
				w->widget[BUILD_VEHICLE_WIDGET_LIST].data = (w->vscroll.cap << 8) + 1;
 
				break;
 
	}
 
}
 

	
 
static const WindowDesc _build_vehicle_desc = {
 
	-1, -1, 240, 238,
 
	WDP_AUTO, WDP_AUTO, 240, 238,
 
	WC_BUILD_VEHICLE,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
 
	_build_vehicle_widgets,
 
	NewAircraftWndProc
 
};
 

	
depot_gui.c
Show inline comments
 
@@ -107,37 +107,37 @@ static const Widget _depot_widgets[] = {
 
	{   WIDGETS_END},
 
};
 

	
 
static void DepotWndProc(Window *w, WindowEvent *e);
 

	
 
static const WindowDesc _train_depot_desc = {
 
	-1, -1, 361, 122,
 
	WDP_AUTO, WDP_AUTO, 361, 122,
 
	WC_VEHICLE_DEPOT,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
 
	_depot_widgets,
 
	DepotWndProc
 
};
 

	
 
static const WindowDesc _road_depot_desc = {
 
	-1, -1, 315, 96,
 
	WDP_AUTO, WDP_AUTO, 315, 96,
 
	WC_VEHICLE_DEPOT,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
 
	_depot_widgets,
 
	DepotWndProc
 
};
 

	
 
static const WindowDesc _ship_depot_desc = {
 
	-1, -1, 305, 98,
 
	WDP_AUTO, WDP_AUTO, 305, 98,
 
	WC_VEHICLE_DEPOT,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
 
	_depot_widgets,
 
	DepotWndProc
 
};
 

	
 
static const WindowDesc _aircraft_depot_desc = {
 
	-1, -1, 331, 98,
 
	WDP_AUTO, WDP_AUTO, 331, 98,
 
	WC_VEHICLE_DEPOT,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
 
	_depot_widgets,
 
	DepotWndProc
 
};
 

	
dock_gui.c
Show inline comments
 
@@ -202,14 +202,14 @@ static const Widget _build_docks_toolb_w
 
{     WWT_IMGBTN,   RESIZE_NONE,     7,   114,   135,    14,    35, SPR_IMG_BOUY,               STR_9834_POSITION_BUOY_WHICH_CAN},
 
{     WWT_IMGBTN,   RESIZE_NONE,     7,   136,   157,    14,    35, SPR_IMG_LANDSCAPING,        STR_LANDSCAPING_TOOLBAR_TIP},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _build_docks_toolbar_desc = {
 
	640-158, 22, 158, 36,
 
	WC_BUILD_TOOLBAR,0,
 
	0, 22, 158, 36,
 
	WC_BUILD_TOOLBAR, 0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON,
 
	_build_docks_toolb_widgets,
 
	BuildDocksToolbWndProc
 
};
 

	
 
void ShowBuildDocksToolbar(void)
 
@@ -276,14 +276,14 @@ static const Widget _build_dock_station_
 
{    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},
 
};
 

	
 
static const WindowDesc _build_dock_station_desc = {
 
	-1, -1, 148, 75,
 
	WC_BUILD_STATION,WC_BUILD_TOOLBAR,
 
	WDP_AUTO, WDP_AUTO, 148, 75,
 
	WC_BUILD_STATION, WC_BUILD_TOOLBAR,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_build_dock_station_widgets,
 
	BuildDockStationWndProc
 
};
 

	
 
static void ShowBuildDockStationPicker(void)
 
@@ -345,14 +345,14 @@ static const Widget _build_docks_depot_w
 
{      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},
 
};
 

	
 
static const WindowDesc _build_docks_depot_desc = {
 
	-1, -1, 204, 86,
 
	WC_BUILD_DEPOT,WC_BUILD_TOOLBAR,
 
	WDP_AUTO, WDP_AUTO, 204, 86,
 
	WC_BUILD_DEPOT, WC_BUILD_TOOLBAR,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_build_docks_depot_widgets,
 
	BuildDocksDepotWndProc
 
};
 

	
 

	
graph_gui.c
Show inline comments
 
@@ -280,13 +280,13 @@ static const Widget _graph_legend_widget
 
{      WWT_PANEL,   RESIZE_NONE,    14,     2,   247,    88,    99, 0x0,                            STR_704F_CLICK_HERE_TO_TOGGLE_COMPANY},
 
{      WWT_PANEL,   RESIZE_NONE,    14,     2,   247,   100,   111, 0x0,                            STR_704F_CLICK_HERE_TO_TOGGLE_COMPANY},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _graph_legend_desc = {
 
	-1, -1, 250, 114,
 
	WDP_AUTO, WDP_AUTO, 250, 114,
 
	WC_GRAPH_LEGEND,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_graph_legend_widgets,
 
	GraphLegendWndProc
 
};
 

	
 
@@ -381,13 +381,13 @@ static const Widget _operating_profit_wi
 
{ WWT_PUSHTXTBTN,   RESIZE_NONE,    14,   526,   575,     0,    13, STR_704C_KEY,                    STR_704D_SHOW_KEY_TO_GRAPHS},
 
{      WWT_PANEL,   RESIZE_NONE,    14,     0,   575,    14,   173, 0x0,                             STR_NULL},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _operating_profit_desc = {
 
	-1, -1, 576, 174,
 
	WDP_AUTO, WDP_AUTO, 576, 174,
 
	WC_OPERATING_PROFIT,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
 
	_operating_profit_widgets,
 
	OperatingProfitWndProc
 
};
 

	
 
@@ -456,13 +456,13 @@ static const Widget _income_graph_widget
 
{ WWT_PUSHTXTBTN,   RESIZE_NONE,    14,   526,   575,     0,    13, STR_704C_KEY,          STR_704D_SHOW_KEY_TO_GRAPHS},
 
{      WWT_PANEL,   RESIZE_NONE,    14,     0,   575,    14,   141, 0x0,                   STR_NULL},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _income_graph_desc = {
 
	-1, -1, 576, 142,
 
	WDP_AUTO, WDP_AUTO, 576, 142,
 
	WC_INCOME_GRAPH,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
 
	_income_graph_widgets,
 
	IncomeGraphWndProc
 
};
 

	
 
@@ -529,13 +529,13 @@ static const Widget _delivered_cargo_gra
 
{ WWT_PUSHTXTBTN,   RESIZE_NONE,    14,   526,   575,     0,    13, STR_704C_KEY,                      STR_704D_SHOW_KEY_TO_GRAPHS},
 
{      WWT_PANEL,   RESIZE_NONE,    14,     0,   575,    14,   141, 0x0,                               STR_NULL},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _delivered_cargo_graph_desc = {
 
	-1, -1, 576, 142,
 
	WDP_AUTO, WDP_AUTO, 576, 142,
 
	WC_DELIVERED_CARGO,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
 
	_delivered_cargo_graph_widgets,
 
	DeliveredCargoGraphWndProc
 
};
 

	
 
@@ -605,13 +605,13 @@ static const Widget _performance_history
 
{ WWT_PUSHTXTBTN,   RESIZE_NONE,    14,   476,   525,     0,    13, STR_PERFORMANCE_DETAIL_KEY,           STR_704D_SHOW_KEY_TO_GRAPHS},
 
{      WWT_PANEL,   RESIZE_NONE,    14,     0,   575,    14,   237, 0x0,                                  STR_NULL},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _performance_history_desc = {
 
	-1, -1, 576, 238,
 
	WDP_AUTO, WDP_AUTO, 576, 238,
 
	WC_PERFORMANCE_HISTORY,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
 
	_performance_history_widgets,
 
	PerformanceHistoryWndProc
 
};
 

	
 
@@ -678,13 +678,13 @@ static const Widget _company_value_graph
 
{ WWT_PUSHTXTBTN,   RESIZE_NONE,    14,   526,   575,     0,    13, STR_704C_KEY,            STR_704D_SHOW_KEY_TO_GRAPHS},
 
{      WWT_PANEL,   RESIZE_NONE,    14,     0,   575,    14,   237, 0x0,                     STR_NULL},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _company_value_graph_desc = {
 
	-1, -1, 576, 238,
 
	WDP_AUTO, WDP_AUTO, 576, 238,
 
	WC_COMPANY_VALUE,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
 
	_company_value_graph_widgets,
 
	CompanyValueGraphWndProc
 
};
 

	
 
@@ -793,13 +793,13 @@ static const Widget _cargo_payment_rates
 
{      WWT_PANEL,   RESIZE_NONE,    12,   493,   562,   104,   111, 0x0,                          STR_7064_TOGGLE_GRAPH_FOR_CARGO},
 
{      WWT_PANEL,   RESIZE_NONE,    12,   493,   562,   112,   119, 0x0,                          STR_7064_TOGGLE_GRAPH_FOR_CARGO},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _cargo_payment_rates_desc = {
 
	-1, -1, 568, 142,
 
	WDP_AUTO, WDP_AUTO, 568, 142,
 
	WC_PAYMENT_RATES,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_cargo_payment_rates_widgets,
 
	CargoPaymentRatesWndProc
 
};
 

	
 
@@ -885,13 +885,13 @@ static const Widget _company_league_widg
 
{  WWT_STICKYBOX, RESIZE_NONE, 14, 388, 399,  0, 13, STR_NULL,                      STR_STICKY_BUTTON},
 
{      WWT_PANEL, RESIZE_NONE, 14,   0, 399, 14, 96, 0x0,                           STR_NULL},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _company_league_desc = {
 
	-1, -1, 400, 97,
 
	WDP_AUTO, WDP_AUTO, 400, 97,
 
	WC_COMPANY_LEAGUE,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON,
 
	_company_league_widgets,
 
	CompanyLeagueWndProc
 
};
 

	
 
@@ -1107,13 +1107,13 @@ static const Widget _performance_rating_
 
{      WWT_PANEL,   RESIZE_NONE,    14,   224,   260,    14,    26, 0x0,                    STR_704F_CLICK_HERE_TO_TOGGLE_COMPANY},
 
{      WWT_PANEL,   RESIZE_NONE,    14,   261,   297,    14,    26, 0x0,                    STR_704F_CLICK_HERE_TO_TOGGLE_COMPANY},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _performance_rating_detail_desc = {
 
	-1, -1, 299, 228,
 
	WDP_AUTO, WDP_AUTO, 299, 228,
 
	WC_PERFORMANCE_DETAIL,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_performance_rating_detail_widgets,
 
	PerformanceRatingDetailWndProc
 
};
 

	
 
@@ -1236,13 +1236,13 @@ static const Widget _sign_list_widget[] 
 
{  WWT_SCROLLBAR,    RESIZE_LRB,    14,   346,   357,    14,   125, 0x0,                   STR_0190_SCROLL_BAR_SCROLLS_LIST},
 
{  WWT_RESIZEBOX,   RESIZE_LRTB,    14,   346,   357,   126,   137, 0x0,                   STR_RESIZE_BUTTON},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _sign_list_desc = {
 
	-1, -1, 358, 138,
 
	WDP_AUTO, WDP_AUTO, 358, 138,
 
	WC_SIGN_LIST,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_RESIZABLE,
 
	_sign_list_widget,
 
	SignListWndProc
 
};
 

	
industry_gui.c
Show inline comments
 
@@ -185,69 +185,69 @@ static const Widget _build_industry_land
 
{    WWT_TEXTBTN,   RESIZE_NONE,    14,     2,   167,   149,   160, STR_0261_SUGAR_MINE,            STR_CONSTRUCT_SUGAR_MINE_TIP},
 
{   WIDGETS_END},
 
};
 

	
 

	
 
static const WindowDesc _build_industry_land0_desc = {
 
	-1, -1, 170, 116,
 
	WDP_AUTO, WDP_AUTO, 170, 116,
 
	WC_BUILD_INDUSTRY,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_build_industry_land0_widgets,
 
	BuildIndustryWndProc
 
};
 

	
 
static const WindowDesc _build_industry_land1_desc = {
 
	-1, -1, 170, 116,
 
	WDP_AUTO, WDP_AUTO, 170, 116,
 
	WC_BUILD_INDUSTRY,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_build_industry_land1_widgets,
 
	BuildIndustryWndProc
 
};
 

	
 
static const WindowDesc _build_industry_land2_desc = {
 
	-1, -1, 170, 116,
 
	WDP_AUTO, WDP_AUTO, 170, 116,
 
	WC_BUILD_INDUSTRY,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_build_industry_land2_widgets,
 
	BuildIndustryWndProc
 
};
 

	
 
static const WindowDesc _build_industry_land3_desc = {
 
	-1, -1, 170, 116,
 
	WDP_AUTO, WDP_AUTO, 170, 116,
 
	WC_BUILD_INDUSTRY,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_build_industry_land3_widgets,
 
	BuildIndustryWndProc
 
};
 

	
 
static const WindowDesc _build_industry_land0_desc_extra = {
 
	-1, -1, 170, 188,
 
	WDP_AUTO, WDP_AUTO, 170, 188,
 
	WC_BUILD_INDUSTRY,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_build_industry_land0_widgets_extra,
 
	BuildIndustryWndProc
 
};
 

	
 
static const WindowDesc _build_industry_land1_desc_extra = {
 
	-1, -1, 170, 175,
 
	WDP_AUTO, WDP_AUTO, 170, 175,
 
	WC_BUILD_INDUSTRY,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_build_industry_land1_widgets_extra,
 
	BuildIndustryWndProc
 
};
 

	
 
static const WindowDesc _build_industry_land2_desc_extra = {
 
	-1, -1, 170, 201,
 
	WDP_AUTO, WDP_AUTO, 170, 201,
 
	WC_BUILD_INDUSTRY,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_build_industry_land2_widgets_extra,
 
	BuildIndustryWndProc
 
};
 

	
 
static const WindowDesc _build_industry_land3_desc_extra = {
 
	-1, -1, 170, 188,
 
	WDP_AUTO, WDP_AUTO, 170, 188,
 
	WC_BUILD_INDUSTRY,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_build_industry_land3_widgets_extra,
 
	BuildIndustryWndProc
 
};
 

	
 
@@ -431,13 +431,13 @@ static const Widget _industry_view_widge
 
{ WWT_PUSHTXTBTN,   RESIZE_NONE,     9,     0,   129,   148,   159, STR_00E4_LOCATION, STR_482C_CENTER_THE_MAIN_VIEW_ON},
 
{      WWT_PANEL,   RESIZE_NONE,     9,   130,   259,   148,   159, 0x0,               STR_NULL},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _industry_view_desc = {
 
	-1, -1, 260, 160,
 
	WDP_AUTO, WDP_AUTO, 260, 160,
 
	WC_INDUSTRY_VIEW,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
 
	_industry_view_widgets,
 
	IndustryViewWndProc
 
};
 

	
 
@@ -673,13 +673,13 @@ static void IndustryDirectoryWndProc(Win
 
	}
 
}
 

	
 

	
 
/* Industry List */
 
static const WindowDesc _industry_directory_desc = {
 
	-1, -1, 508, 190,
 
	WDP_AUTO, WDP_AUTO, 508, 190,
 
	WC_INDUSTRY_DIRECTORY,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
 
	_industry_directory_widgets,
 
	IndustryDirectoryWndProc
 
};
 

	
main_gui.c
Show inline comments
 
@@ -1328,13 +1328,13 @@ static void ScenEditLandGenWndProc(Windo
 
		SetWindowDirty(w);
 
		break;
 
	}
 
}
 

	
 
static const WindowDesc _scen_edit_land_gen_desc = {
 
	-1,-1, 182, 96,
 
	WDP_AUTO, WDP_AUTO, 182, 96,
 
	WC_SCEN_LAND_GEN,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON,
 
	_scen_edit_land_gen_widgets,
 
	ScenEditLandGenWndProc,
 
};
 

	
 
@@ -1444,13 +1444,13 @@ static void ScenEditTownGenWndProc(Windo
 
		SetWindowDirty(w);
 
		break;
 
	}
 
}
 

	
 
static const WindowDesc _scen_edit_town_gen_desc = {
 
	-1,-1, 160, 82,
 
	WDP_AUTO, WDP_AUTO, 160, 82,
 
	WC_SCEN_TOWN_GEN,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON,
 
	_scen_edit_town_gen_widgets,
 
	ScenEditTownGenWndProc,
 
};
 

	
 
@@ -1656,37 +1656,37 @@ static void ScenEditIndustryWndProc(Wind
 
		RaiseWindowWidget(w, 3);
 
		break;
 
	}
 
}
 

	
 
static const WindowDesc _scenedit_industry_normal_desc = {
 
	-1,-1, 170, 225,
 
	WDP_AUTO, WDP_AUTO, 170, 225,
 
	WC_SCEN_INDUSTRY,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_scenedit_industry_normal_widgets,
 
	ScenEditIndustryWndProc,
 
};
 

	
 
static const WindowDesc _scenedit_industry_hilly_desc = {
 
	-1,-1, 170, 225,
 
	WDP_AUTO, WDP_AUTO, 170, 225,
 
	WC_SCEN_INDUSTRY,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_scenedit_industry_hilly_widgets,
 
	ScenEditIndustryWndProc,
 
};
 

	
 
static const WindowDesc _scenedit_industry_desert_desc = {
 
	-1,-1, 170, 225,
 
	WDP_AUTO, WDP_AUTO, 170, 225,
 
	WC_SCEN_INDUSTRY,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_scenedit_industry_desert_widgets,
 
	ScenEditIndustryWndProc,
 
};
 

	
 
static const WindowDesc _scenedit_industry_candy_desc = {
 
	-1,-1, 170, 225,
 
	WDP_AUTO, WDP_AUTO, 170, 225,
 
	WC_SCEN_INDUSTRY,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_scenedit_industry_candy_widgets,
 
	ScenEditIndustryWndProc,
 
};
 

	
misc_gui.c
Show inline comments
 
@@ -130,13 +130,13 @@ static const Widget _land_info_widgets[]
 
{    WWT_CAPTION,   RESIZE_NONE,    14,    11,   279,     0,    13, STR_01A3_LAND_AREA_INFORMATION, STR_018C_WINDOW_TITLE_DRAG_THIS},
 
{      WWT_PANEL,   RESIZE_NONE,    14,     0,   279,    14,    92, 0x0,                            STR_NULL},
 
{    WIDGETS_END},
 
};
 

	
 
static const WindowDesc _land_info_desc = {
 
	-1, -1, 280, 93,
 
	WDP_AUTO, WDP_AUTO, 280, 93,
 
	WC_LAND_INFO,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_land_info_widgets,
 
	LandInfoWndProc
 
};
 

	
 
@@ -437,13 +437,13 @@ static const Widget _build_trees_scen_wi
 
{    WWT_TEXTBTN,   RESIZE_NONE,    14,     2,   140,   157,   168, STR_TREES_RANDOM_TYPE, STR_TREES_RANDOM_TYPE_TIP},
 
{    WWT_TEXTBTN,   RESIZE_NONE,    14,     2,   140,   170,   181, STR_028A_RANDOM_TREES, STR_028B_PLANT_TREES_RANDOMLY_OVER},
 
{    WIDGETS_END},
 
};
 

	
 
static const WindowDesc _build_trees_scen_desc = {
 
	-1, -1, 143, 184,
 
	WDP_AUTO, WDP_AUTO, 143, 184,
 
	WC_BUILD_TREES,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_build_trees_scen_widgets,
 
	BuildTreesWndProc
 
};
 

	
network_gui.c
Show inline comments
 
@@ -1025,13 +1025,13 @@ static const Widget _client_list_widgets
 
static const Widget _client_list_popup_widgets[] = {
 
{      WWT_PANEL,   RESIZE_NONE,    14,     0,   99,     0,     0,     0, STR_NULL},
 
{   WIDGETS_END},
 
};
 

	
 
static WindowDesc _client_list_desc = {
 
	-1, -1, 250, 1,
 
	WDP_AUTO, WDP_AUTO, 250, 1,
 
	WC_CLIENT_LIST,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_client_list_widgets,
 
	ClientListWndProc
 
};
 

	
order_gui.c
Show inline comments
 
@@ -580,13 +580,13 @@ static const Widget _orders_train_widget
 
{      WWT_PANEL,   RESIZE_RTB,     14,   387,   386,    76,    87, 0x0,                     STR_NULL},
 
{  WWT_RESIZEBOX,   RESIZE_LRTB,    14,   387,   398,    76,    87, 0x0,                     STR_RESIZE_BUTTON},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _orders_train_desc = {
 
	-1,-1, 399, 88,
 
	WDP_AUTO, WDP_AUTO, 399, 88,
 
	WC_VEHICLE_ORDERS,WC_VEHICLE_VIEW,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_RESIZABLE,
 
	_orders_train_widgets,
 
	OrdersWndProc
 
};
 

	
 
@@ -607,13 +607,13 @@ static const Widget _orders_widgets[] = 
 
{      WWT_PANEL,   RESIZE_RTB,     14,   397,   396,    76,    87, 0x0,                     STR_NULL},
 
{  WWT_RESIZEBOX,   RESIZE_LRTB,    14,   398,   409,    76,    87, 0x0,                     STR_RESIZE_BUTTON},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _orders_desc = {
 
	-1,-1, 410, 88,
 
	WDP_AUTO, WDP_AUTO, 410, 88,
 
	WC_VEHICLE_ORDERS,WC_VEHICLE_VIEW,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_RESIZABLE,
 
	_orders_widgets,
 
	OrdersWndProc
 
};
 

	
 
@@ -631,13 +631,13 @@ static const Widget _other_orders_widget
 
{      WWT_PANEL,   RESIZE_RTB,     14,     0,   319,    76,    87, 0x0,             STR_NULL},
 
{  WWT_RESIZEBOX,   RESIZE_LRTB,    14,   320,   331,    76,    87, 0x0,             STR_RESIZE_BUTTON},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _other_orders_desc = {
 
	-1,-1, 332, 88,
 
	WDP_AUTO, WDP_AUTO, 332, 88,
 
	WC_VEHICLE_ORDERS,WC_VEHICLE_VIEW,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
 
	_other_orders_widgets,
 
	OrdersWndProc
 
};
 

	
player_gui.c
Show inline comments
 
@@ -185,37 +185,37 @@ static void PlayerFinancesWndProc(Window
 
		}
 
		break;
 
	}
 
}
 

	
 
static const WindowDesc _player_finances_desc = {
 
	-1,-1, 407, 216,
 
	WDP_AUTO, WDP_AUTO, 407, 216,
 
	WC_FINANCES,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
 
	_player_finances_widgets,
 
	PlayerFinancesWndProc
 
};
 

	
 
static const WindowDesc _player_finances_small_desc = {
 
	-1,-1, 280, 60,
 
	WDP_AUTO, WDP_AUTO, 280, 60,
 
	WC_FINANCES,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
 
	_player_finances_small_widgets,
 
	PlayerFinancesWndProc
 
};
 

	
 
static const WindowDesc _other_player_finances_desc = {
 
	-1,-1, 407, 204,
 
	WDP_AUTO, WDP_AUTO, 407, 204,
 
	WC_FINANCES,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
 
	_other_player_finances_widgets,
 
	PlayerFinancesWndProc
 
};
 

	
 
static const WindowDesc _other_player_finances_small_desc = {
 
	-1,-1, 280, 48,
 
	WDP_AUTO, WDP_AUTO, 280, 48,
 
	WC_FINANCES,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
 
	_other_player_finances_small_widgets,
 
	PlayerFinancesWndProc
 
};
 

	
 
@@ -467,13 +467,13 @@ static const Widget _select_player_liver
 
{  WWT_TEXTBTN, RESIZE_NONE, 14, 388, 399,  36,  47, STR_0225,                  STR_LIVERY_SECONDARY_TIP },
 
{   WWT_MATRIX, RESIZE_NONE, 14,   0, 399,  48,  48 + 1 * 14, (1 << 8) | 1,     STR_LIVERY_PANEL_TIP },
 
{ WIDGETS_END },
 
};
 

	
 
static const WindowDesc _select_player_livery_2cc_desc = {
 
	-1,-1, 400, 49 + 1 * 14,
 
	WDP_AUTO, WDP_AUTO, 400, 49 + 1 * 14,
 
	WC_PLAYER_COLOR, 0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_select_player_livery_2cc_widgets,
 
	SelectPlayerLiveryWndProc
 
};
 

	
 
@@ -494,13 +494,13 @@ static const Widget _select_player_liver
 
{  WWT_TEXTBTN, RESIZE_NONE, 14, 275, 275,  36,  47, STR_0225,                  STR_LIVERY_SECONDARY_TIP },
 
{   WWT_MATRIX, RESIZE_NONE, 14,   0, 274,  48,  48 + 1 * 14, (1 << 8) | 1,     STR_LIVERY_PANEL_TIP },
 
{ WIDGETS_END },
 
};
 

	
 
static const WindowDesc _select_player_livery_desc = {
 
	-1, -1, 275, 49 + 1 * 14,
 
	WDP_AUTO, WDP_AUTO, 275, 49 + 1 * 14,
 
	WC_PLAYER_COLOR, 0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_select_player_livery_widgets,
 
	SelectPlayerLiveryWndProc
 
};
 

	
 
@@ -548,13 +548,13 @@ static const Widget _select_player_face_
 
{    WWT_TEXTBTN,   RESIZE_NONE,    14,    95,   187,    37,    48, STR_7045_FEMALE,         STR_704A_SELECT_FEMALE_FACES},
 
{ WWT_PUSHTXTBTN,   RESIZE_NONE,    14,    95,   187,    79,    90, STR_7046_NEW_FACE,       STR_704B_GENERATE_RANDOM_NEW_FACE},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _select_player_face_desc = {
 
	-1,-1, 190, 149,
 
	WDP_AUTO, WDP_AUTO, 190, 149,
 
	WC_PLAYER_FACE,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
 
	_select_player_face_widgets,
 
	SelectPlayerFaceWndProc
 
};
 

	
 
@@ -864,13 +864,13 @@ static void PlayerCompanyWndProc(Window 
 
		}
 
	}
 
}
 

	
 

	
 
static const WindowDesc _player_company_desc = {
 
	-1, -1, 360, 170,
 
	WDP_AUTO, WDP_AUTO, 360, 170,
 
	WC_COMPANY, 0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
 
	_player_company_widgets,
 
	PlayerCompanyWndProc
 
};
 

	
 
@@ -925,13 +925,13 @@ static const Widget _buy_company_widgets
 
{    WWT_TEXTBTN,   RESIZE_NONE,     5,   148,   207,   117,   128, STR_00C9_NO,           STR_NULL},
 
{    WWT_TEXTBTN,   RESIZE_NONE,     5,   218,   277,   117,   128, STR_00C8_YES,          STR_NULL},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _buy_company_desc = {
 
	153,171, 334, 137,
 
	153, 171, 334, 137,
 
	WC_BUY_COMPANY,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_buy_company_widgets,
 
	BuyCompanyWndProc
 
};
 

	
rail_gui.c
Show inline comments
 
@@ -541,14 +541,14 @@ static const Widget _build_rail_widgets[
 
{     WWT_IMGBTN,   RESIZE_NONE,     7,   350,   371,    14,    35, SPR_IMG_LANDSCAPING,            STR_LANDSCAPING_TOOLBAR_TIP},
 

	
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _build_rail_desc = {
 
	640-372, 22, 372, 36,
 
	WC_BUILD_TOOLBAR,0,
 
	0, 22, 372, 36,
 
	WC_BUILD_TOOLBAR, 0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON,
 
	_build_rail_widgets,
 
	BuildRailToolbWndProc
 
};
 

	
 
/** Enum referring to the widgets of the build rail toolbar
 
@@ -950,22 +950,22 @@ static const Widget _newstation_builder_
 
{     WWT_MATRIX,   RESIZE_NONE,    14,     7,   128,    32,   102, 0x501,                           STR_SELECT_STATION_TYPE_TIP},
 
{  WWT_SCROLLBAR,   RESIZE_NONE,    14,   129,   140,    32,   102, 0x0,                             STR_0190_SCROLL_BAR_SCROLLS_LIST},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _station_builder_desc = {
 
	-1, -1, 148, 200,
 
	WC_BUILD_STATION,WC_BUILD_TOOLBAR,
 
	WDP_AUTO, WDP_AUTO, 148, 200,
 
	WC_BUILD_STATION, WC_BUILD_TOOLBAR,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_station_builder_widgets,
 
	StationBuildWndProc
 
};
 

	
 
static const WindowDesc _newstation_builder_desc = {
 
	-1, -1, 148, 290,
 
	WC_BUILD_STATION,WC_BUILD_TOOLBAR,
 
	WDP_AUTO, WDP_AUTO, 148, 290,
 
	WC_BUILD_STATION, WC_BUILD_TOOLBAR,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_newstation_builder_widgets,
 
	StationBuildWndProc
 
};
 

	
 
static void ShowStationBuilder(void)
 
@@ -1037,14 +1037,14 @@ static const Widget _build_depot_widgets
 
{      WWT_PANEL,   RESIZE_NONE,    14,     3,    68,    69,   118, 0x0,                              STR_1020_SELECT_RAILROAD_DEPOT_ORIENTATIO},
 
{      WWT_PANEL,   RESIZE_NONE,    14,     3,    68,    17,    66, 0x0,                              STR_1020_SELECT_RAILROAD_DEPOT_ORIENTATIO},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _build_depot_desc = {
 
	-1,-1, 140, 122,
 
	WC_BUILD_DEPOT,WC_BUILD_TOOLBAR,
 
	WDP_AUTO, WDP_AUTO, 140, 122,
 
	WC_BUILD_DEPOT, WC_BUILD_TOOLBAR,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_build_depot_widgets,
 
	BuildTrainDepotWndProc
 
};
 

	
 
static void ShowBuildTrainDepotPicker(void)
 
@@ -1123,14 +1123,14 @@ static const Widget _build_waypoint_widg
 

	
 
{ WWT_HSCROLLBAR,   RESIZE_NONE,    7,     1,   343,     80,    91, 0x0,          STR_0190_SCROLL_BAR_SCROLLS_LIST},
 
{    WIDGETS_END},
 
};
 

	
 
static const WindowDesc _build_waypoint_desc = {
 
	-1,-1, 344, 92,
 
	WC_BUILD_DEPOT,WC_BUILD_TOOLBAR,
 
	WDP_AUTO, WDP_AUTO, 344, 92,
 
	WC_BUILD_DEPOT, WC_BUILD_TOOLBAR,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_build_waypoint_widgets,
 
	BuildWaypointWndProc
 
};
 

	
 
static void ShowBuildWaypointPicker(void)
road_gui.c
Show inline comments
 
@@ -306,14 +306,14 @@ static const Widget _build_road_widgets[
 
{     WWT_IMGBTN,   RESIZE_NONE,     7,   196,   217,    14,    35, SPR_IMG_REMOVE,             STR_1811_TOGGLE_BUILD_REMOVE_FOR},
 
{     WWT_IMGBTN,   RESIZE_NONE,     7,   218,   239,    14,    35, SPR_IMG_LANDSCAPING,        STR_LANDSCAPING_TOOLBAR_TIP},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _build_road_desc = {
 
	640-240, 22, 240, 36,
 
	WC_BUILD_TOOLBAR,0,
 
	0, 22, 240, 36,
 
	WC_BUILD_TOOLBAR, 0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON,
 
	_build_road_widgets,
 
	BuildRoadToolbWndProc
 
};
 

	
 
void ShowBuildRoadToolbar(void)
 
@@ -341,13 +341,13 @@ static const Widget _build_road_scen_wid
 
{     WWT_IMGBTN,   RESIZE_NONE,     7,   130,   151,    14,    35, SPR_IMG_REMOVE,             STR_1811_TOGGLE_BUILD_REMOVE_FOR},
 
{     WWT_IMGBTN,   RESIZE_NONE,     7,   152,   173,    14,    35, SPR_IMG_LANDSCAPING,        STR_LANDSCAPING_TOOLBAR_TIP},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _build_road_scen_desc = {
 
	-1, -1, 174, 36,
 
	WDP_AUTO, WDP_AUTO, 174, 36,
 
	WC_SCEN_BUILD_ROAD,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON,
 
	_build_road_scen_widgets,
 
	BuildRoadToolbWndProc
 
};
 

	
 
@@ -401,14 +401,14 @@ static const Widget _build_road_depot_wi
 
{      WWT_PANEL,   RESIZE_NONE,    14,     3,    68,    69,   118, 0x0,                             STR_1813_SELECT_ROAD_VEHICLE_DEPOT},
 
{      WWT_PANEL,   RESIZE_NONE,    14,     3,    68,    17,    66, 0x0,                             STR_1813_SELECT_ROAD_VEHICLE_DEPOT},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _build_road_depot_desc = {
 
	-1,-1, 140, 122,
 
	WC_BUILD_DEPOT,WC_BUILD_TOOLBAR,
 
	WDP_AUTO, WDP_AUTO, 140, 122,
 
	WC_BUILD_DEPOT, WC_BUILD_TOOLBAR,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_build_road_depot_widgets,
 
	BuildRoadDepotWndProc
 
};
 

	
 
static void ShowRoadDepotPicker(void)
 
@@ -497,14 +497,14 @@ static const Widget _bus_station_picker_
 
{    WWT_TEXTBTN,   RESIZE_NONE,    14,    70,   129,   133,   144, STR_02DA_ON,                      STR_3064_HIGHLIGHT_COVERAGE_AREA},
 
{      WWT_LABEL,   RESIZE_NONE,     7,     0,   139,   120,   133, STR_3066_COVERAGE_AREA_HIGHLIGHT, STR_NULL},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _bus_station_picker_desc = {
 
	-1,-1, 140, 177,
 
	WC_BUS_STATION,WC_BUILD_TOOLBAR,
 
	WDP_AUTO, WDP_AUTO, 140, 177,
 
	WC_BUS_STATION, WC_BUILD_TOOLBAR,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_bus_station_picker_widgets,
 
	RoadStationPickerWndProc
 
};
 

	
 
static void ShowBusStationPicker(void)
 
@@ -524,14 +524,14 @@ static const Widget _truck_station_picke
 
{    WWT_TEXTBTN,   RESIZE_NONE,    14,    70,   129,   133,   144, STR_02DA_ON,                      STR_3064_HIGHLIGHT_COVERAGE_AREA},
 
{      WWT_LABEL,   RESIZE_NONE,     7,     0,   139,   120,   133, STR_3066_COVERAGE_AREA_HIGHLIGHT, STR_NULL},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _truck_station_picker_desc = {
 
	-1,-1, 140, 177,
 
	WC_TRUCK_STATION,WC_BUILD_TOOLBAR,
 
	WDP_AUTO, WDP_AUTO, 140, 177,
 
	WC_TRUCK_STATION, WC_BUILD_TOOLBAR,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
 
	_truck_station_picker_widgets,
 
	RoadStationPickerWndProc
 
};
 

	
 
static void ShowTruckStationPicker(void)
roadveh_gui.c
Show inline comments
 
@@ -202,13 +202,13 @@ static const Widget _roadveh_details_wid
 
{ WWT_PUSHTXTBTN,   RESIZE_NONE,    14,     0,    10,    95,   100, STR_0189,         STR_884E_DECREASE_SERVICING_INTERVAL},
 
{      WWT_PANEL,   RESIZE_NONE,    14,    11,   379,    89,   100, 0x0,              STR_NULL},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _roadveh_details_desc = {
 
	-1,-1, 380, 101,
 
	WDP_AUTO, WDP_AUTO, 380, 101,
 
	WC_VEHICLE_DETAILS,WC_VEHICLE_VIEW,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
 
	_roadveh_details_widgets,
 
	RoadVehDetailsWndProc
 
};
 

	
 
@@ -375,13 +375,13 @@ static const Widget _roadveh_view_widget
 
{      WWT_PANEL, RESIZE_LRB,   14, 232, 249, 104, 103, 0x0,                     STR_NULL },
 
{  WWT_RESIZEBOX, RESIZE_LRTB,  14, 238, 249, 104, 115, 0x0,                     STR_NULL },
 
{ WIDGETS_END }
 
};
 

	
 
static const WindowDesc _roadveh_view_desc = {
 
	-1,-1, 250, 116,
 
	WDP_AUTO, WDP_AUTO, 250, 116,
 
	WC_VEHICLE_VIEW,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
 
	_roadveh_view_widgets,
 
	RoadVehViewWndProc,
 
};
 

	
 
@@ -517,13 +517,13 @@ static const Widget _new_road_veh_widget
 
{ WWT_PUSHTXTBTN,     RESIZE_TB,    14,   118,   235,   218,   229, STR_9034_RENAME,            STR_9035_RENAME_ROAD_VEHICLE_TYPE},
 
{  WWT_RESIZEBOX,     RESIZE_TB,    14,   236,   247,   218,   229, 0x0,                        STR_RESIZE_BUTTON},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _new_road_veh_desc = {
 
	-1, -1, 248, 230,
 
	WDP_AUTO, WDP_AUTO, 248, 230,
 
	WC_BUILD_VEHICLE,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
 
	_new_road_veh_widgets,
 
	NewRoadVehWndProc
 
};
 

	
ship_gui.c
Show inline comments
 
@@ -200,13 +200,13 @@ static const Widget _ship_details_widget
 
{ WWT_PUSHTXTBTN,   RESIZE_NONE,    14,     0,    10,    95,   100, STR_0189,         STR_884E_DECREASE_SERVICING_INTERVAL},
 
{      WWT_PANEL,   RESIZE_NONE,    14,    11,   404,    89,   100, 0x0,              STR_NULL},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _ship_details_desc = {
 
	-1,-1, 405, 101,
 
	WDP_AUTO, WDP_AUTO, 405, 101,
 
	WC_VEHICLE_DETAILS,WC_VEHICLE_VIEW,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
 
	_ship_details_widgets,
 
	ShipDetailsWndProc
 
};
 

	
 
@@ -342,13 +342,13 @@ static const Widget _new_ship_widgets[] 
 
{ WWT_PUSHTXTBTN,     RESIZE_TB,    14,   122,   242,   202,   213, STR_9836_RENAME,     STR_9837_RENAME_SHIP_TYPE},
 
{  WWT_RESIZEBOX,     RESIZE_TB,    14,   243,   254,   202,   213, 0x0,                 STR_RESIZE_BUTTON},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _new_ship_desc = {
 
	-1, -1, 255, 214,
 
	WDP_AUTO, WDP_AUTO, 255, 214,
 
	WC_BUILD_VEHICLE,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
 
	_new_ship_widgets,
 
	NewShipWndProc
 
};
 

	
 
@@ -512,13 +512,13 @@ static const Widget _ship_view_widgets[]
 
{      WWT_PANEL, RESIZE_LRB,   14, 232, 249, 104, 103, 0x0,                     STR_NULL },
 
{  WWT_RESIZEBOX, RESIZE_LRTB,  14, 238, 249, 104, 115, 0x0,                     STR_NULL },
 
{ WIDGETS_END }
 
};
 

	
 
static const WindowDesc _ship_view_desc = {
 
	-1,-1, 250, 116,
 
	WDP_AUTO, WDP_AUTO, 250, 116,
 
	WC_VEHICLE_VIEW,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
 
	_ship_view_widgets,
 
	ShipViewWndProc
 
};
 

	
smallmap_gui.c
Show inline comments
 
@@ -965,13 +965,13 @@ static void SmallMapWindowProc(Window *w
 
			SetWindowDirty(w);
 
		} break;
 
	}
 
}
 

	
 
static const WindowDesc _smallmap_desc = {
 
	-1,-1, 446, 314,
 
	WDP_AUTO, WDP_AUTO, 446, 314,
 
	WC_SMALLMAP,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_RESIZABLE,
 
	_smallmap_widgets,
 
	SmallMapWindowProc
 
};
 

	
 
@@ -1078,13 +1078,13 @@ static void ExtraViewPortWndProc(Window 
 
			HandleZoomMessage(w, w->viewport, 5, 6);
 
			break;
 
	}
 
}
 

	
 
static const WindowDesc _extra_view_port_desc = {
 
	-1,-1, 300, 268,
 
	WDP_AUTO, WDP_AUTO, 300, 268,
 
	WC_EXTRA_VIEW_PORT,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
 
	_extra_view_port_widgets,
 
	ExtraViewPortWndProc
 
};
 

	
station_gui.c
Show inline comments
 
@@ -491,13 +491,13 @@ static const Widget _player_stations_wid
 
{    WWT_TEXTBTN,   RESIZE_NONE,    14,   233,   243,    25,    36, STR_0225,          STR_SORT_CRITERIA_TIP},
 
{      WWT_PANEL,  RESIZE_RIGHT,    14,   244,   345,    25,    36, 0x0,               STR_NULL},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _player_stations_desc = {
 
	-1, -1, 358, 162,
 
	WDP_AUTO, WDP_AUTO, 358, 162,
 
	WC_STATION_LIST,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
 
	_player_stations_widgets,
 
	PlayerStationsWndProc
 
};
 

	
 
@@ -760,13 +760,13 @@ static void StationViewWndProc(Window *w
 
	}
 
	}
 
}
 

	
 

	
 
static const WindowDesc _station_view_desc = {
 
	-1, -1, 249, 110,
 
	WDP_AUTO, WDP_AUTO, 249, 110,
 
	WC_STATION_VIEW,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
 
	_station_view_widgets,
 
	StationViewWndProc
 
};
 

	
subsidy_gui.c
Show inline comments
 
@@ -159,13 +159,13 @@ static const Widget _subsidies_list_widg
 
{  WWT_STICKYBOX,   RESIZE_NONE, 13, 618, 629,   0,  13, STR_NULL,           STR_STICKY_BUTTON},
 
{      WWT_PANEL,   RESIZE_NONE, 13,   0, 629,  14, 126, 0x0,                STR_01FD_CLICK_ON_SERVICE_TO_CENTER},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _subsidies_list_desc = {
 
	-1, -1, 630, 127,
 
	WDP_AUTO, WDP_AUTO, 630, 127,
 
	WC_SUBSIDIES_LIST,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON,
 
	_subsidies_list_widgets,
 
	SubsidiesListWndProc
 
};
 

	
terraform_gui.c
Show inline comments
 
@@ -263,13 +263,13 @@ static const Widget _terraform_widgets[]
 

	
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _terraform_desc = {
 
	640-157, 22+36, 158, 36,
 
	WC_SCEN_LAND_GEN,0,
 
	WC_SCEN_LAND_GEN, 0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON,
 
	_terraform_widgets,
 
	TerraformToolbWndProc
 
};
 

	
 
void ShowTerraformToolbar(void)
town_gui.c
Show inline comments
 
@@ -207,13 +207,13 @@ static void TownAuthorityWndProc(Window 
 
		SetWindowDirty(w);
 
		break;
 
	}
 
}
 

	
 
static const WindowDesc _town_authority_desc = {
 
	-1, -1, 317, 222,
 
	WDP_AUTO, WDP_AUTO, 317, 222,
 
	WC_TOWN_AUTHORITY,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
 
	_town_authority_widgets,
 
	TownAuthorityWndProc
 
};
 

	
 
@@ -301,13 +301,13 @@ static const Widget _town_view_widgets[]
 
{ WWT_PUSHTXTBTN,   RESIZE_NONE,    13,    86,   171,   138,   149, STR_2020_LOCAL_AUTHORITY, STR_2021_SHOW_INFORMATION_ON_LOCAL},
 
{ WWT_PUSHTXTBTN,   RESIZE_NONE,    13,   172,   259,   138,   149, STR_0130_RENAME,          STR_200C_CHANGE_TOWN_NAME},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _town_view_desc = {
 
	-1, -1, 260, 150,
 
	WDP_AUTO, WDP_AUTO, 260, 150,
 
	WC_TOWN_VIEW,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
 
	_town_view_widgets,
 
	TownViewWndProc
 
};
 

	
 
@@ -324,13 +324,13 @@ static const Widget _town_view_scen_widg
 
{ WWT_PUSHTXTBTN,   RESIZE_NONE,    13,    86,   171,   138,   149, STR_023C_EXPAND,   STR_023B_INCREASE_SIZE_OF_TOWN},
 
{ WWT_PUSHTXTBTN,   RESIZE_NONE,    13,   172,   259,   138,   149, STR_0290_DELETE,   STR_0291_DELETE_THIS_TOWN_COMPLETELY},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _town_view_scen_desc = {
 
	-1, -1, 260, 150,
 
	WDP_AUTO, WDP_AUTO, 260, 150,
 
	WC_TOWN_VIEW,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
 
	_town_view_scen_widgets,
 
	TownViewWndProc
 
};
 

	
 
@@ -502,13 +502,13 @@ static void TownDirectoryWndProc(Window 
 
		w->vscroll.cap += e->we.sizing.diff.y / 10;
 
		break;
 
	}
 
}
 

	
 
static const WindowDesc _town_directory_desc = {
 
	-1, -1, 208, 202,
 
	WDP_AUTO, WDP_AUTO, 208, 202,
 
	WC_TOWN_DIRECTORY,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
 
	_town_directory_widgets,
 
	TownDirectoryWndProc
 
};
 

	
train_gui.c
Show inline comments
 
@@ -646,13 +646,13 @@ static void NewRailVehicleWndProc(Window
 
			w->widget[BUILD_TRAIN_WIDGET_LIST].data = (w->vscroll.cap << 8) + 1;
 
		} break;
 
	}
 
}
 

	
 
static const WindowDesc _new_rail_vehicle_desc = {
 
	-1, -1, 228, 264,
 
	WDP_AUTO, WDP_AUTO, 228, 264,
 
	WC_BUILD_VEHICLE,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
 
	_new_rail_vehicle_widgets,
 
	NewRailVehicleWndProc
 
};
 

	
 
@@ -920,13 +920,13 @@ static void TrainViewWndProc(Window *w, 
 
	}
 

	
 
	}
 
}
 

	
 
static const WindowDesc _train_view_desc = {
 
	-1,-1, 250, 134,
 
	WDP_AUTO, WDP_AUTO, 250, 134,
 
	WC_VEHICLE_VIEW,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
 
	_train_view_widgets,
 
	TrainViewWndProc
 
};
 

	
 
@@ -1197,13 +1197,13 @@ static const Widget _train_details_widge
 
{  WWT_RESIZEBOX, RESIZE_TB,     14, 358, 369, 152, 163, 0x0,                  STR_RESIZE_BUTTON},
 
{   WIDGETS_END},
 
};
 

	
 

	
 
static const WindowDesc _train_details_desc = {
 
	-1,-1, 370, 164,
 
	WDP_AUTO, WDP_AUTO, 370, 164,
 
	WC_VEHICLE_DETAILS,WC_VEHICLE_VIEW,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
 
	_train_details_widgets,
 
	TrainDetailsWndProc
 
};
 

	
vehicle_gui.c
Show inline comments
 
@@ -423,13 +423,13 @@ static const Widget _vehicle_refit_widge
 
	{ WWT_PUSHTXTBTN,     RESIZE_TB,    14,     0,   227,   162,   173, 0x0,                                 STR_NULL},
 
	{  WWT_RESIZEBOX,     RESIZE_TB,    14,   228,   239,   162,   173, 0x0,                                 STR_RESIZE_BUTTON},
 
	{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _vehicle_refit_desc = {
 
	-1,-1, 240, 174,
 
	WDP_AUTO, WDP_AUTO, 240, 174,
 
	WC_VEHICLE_REFIT,WC_VEHICLE_VIEW,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
 
	_vehicle_refit_widgets,
 
	VehicleRefitWndProc,
 
};
 

	
 
@@ -1275,29 +1275,29 @@ static const Widget _replace_ship_aircra
 
{      WWT_PANEL,     RESIZE_TB,    14,   228,   455,   110,   201, 0x0,                         STR_NULL},
 
{  WWT_RESIZEBOX,     RESIZE_TB,    14,   444,   455,   202,   213, STR_NULL,                    STR_RESIZE_BUTTON},
 
{   WIDGETS_END},
 
};
 

	
 
static const WindowDesc _replace_rail_vehicle_desc = {
 
	-1, -1, 456, 252,
 
	WDP_AUTO, WDP_AUTO, 456, 252,
 
	WC_REPLACE_VEHICLE,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
 
	_replace_rail_vehicle_widgets,
 
	ReplaceVehicleWndProc
 
};
 

	
 
static const WindowDesc _replace_road_vehicle_desc = {
 
	-1, -1, 456, 230,
 
	WDP_AUTO, WDP_AUTO, 456, 230,
 
	WC_REPLACE_VEHICLE,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
 
	_replace_road_vehicle_widgets,
 
	ReplaceVehicleWndProc
 
};
 

	
 
static const WindowDesc _replace_ship_aircraft_vehicle_desc = {
 
	-1, -1, 456, 214,
 
	WDP_AUTO, WDP_AUTO, 456, 214,
 
	WC_REPLACE_VEHICLE,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
 
	_replace_ship_aircraft_vehicle_widgets,
 
	ReplaceVehicleWndProc
 
};
 

	
 
@@ -1819,37 +1819,37 @@ void PlayerVehWndProc(Window *w, WindowE
 
			ResizeVehicleListWidgets(w);
 
			break;
 
	}
 
}
 

	
 
static const WindowDesc _player_vehicle_list_train_desc = {
 
	-1, -1, 325, 220,
 
    WC_TRAINS_LIST,0,
 
    WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
 
    _vehicle_list_widgets,
 
    PlayerVehWndProc
 
	WDP_AUTO, WDP_AUTO, 325, 220,
 
	WC_TRAINS_LIST, 0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
 
	_vehicle_list_widgets,
 
	PlayerVehWndProc
 
};
 

	
 
static const WindowDesc _player_vehicle_list_road_veh_desc = {
 
	-1, -1, 260, 220,
 
	WDP_AUTO, WDP_AUTO, 260, 220,
 
	WC_ROADVEH_LIST,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
 
	_vehicle_list_widgets,
 
	PlayerVehWndProc
 
};
 

	
 
static const WindowDesc _player_vehicle_list_ship_desc = {
 
	-1, -1, 260, 182,
 
	WDP_AUTO, WDP_AUTO, 260, 182,
 
	WC_SHIPS_LIST,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
 
	_vehicle_list_widgets,
 
	PlayerVehWndProc
 
};
 

	
 
static const WindowDesc _player_vehicle_list_aircraft_desc = {
 
	-1, -1, 260, 182,
 
	WDP_AUTO, WDP_AUTO, 260, 182,
 
	WC_AIRCRAFT_LIST,0,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
 
	_vehicle_list_widgets,
 
	PlayerVehWndProc
 
};
 

	
0 comments (0 inline, 0 general)