dock_gui.c
changeset 193 0a7025304867
parent 176 84990c4b9212
child 337 cbe0c766c947
equal deleted inserted replaced
192:614bba52258d 193:0a7025304867
   127 		if (e->click.widget - 2 >= 0) _build_docks_button_proc[e->click.widget - 2](w);
   127 		if (e->click.widget - 2 >= 0) _build_docks_button_proc[e->click.widget - 2](w);
   128 	} break;
   128 	} break;
   129 
   129 
   130 	case WE_PLACE_OBJ:
   130 	case WE_PLACE_OBJ:
   131 		_place_proc(e->place.tile);
   131 		_place_proc(e->place.tile);
   132 		break;	
   132 		break;
   133 
   133 
   134 	case WE_PLACE_DRAG: {
   134 	case WE_PLACE_DRAG: {
   135 		VpSelectTilesWithMethod(e->place.pt.x, e->place.pt.y, e->place.userdata);
   135 		VpSelectTilesWithMethod(e->place.pt.x, e->place.pt.y, e->place.userdata);
   136 		return;
   136 		return;
   137 	}
   137 	}
   153 		if (w != NULL) WP(w,def_d).close=true;
   153 		if (w != NULL) WP(w,def_d).close=true;
   154 
   154 
   155 		w = FindWindowById(WC_BUILD_DEPOT, 0);
   155 		w = FindWindowById(WC_BUILD_DEPOT, 0);
   156 		if (w != NULL) WP(w,def_d).close=true;
   156 		if (w != NULL) WP(w,def_d).close=true;
   157 		break;
   157 		break;
   158 	
   158 
   159 	case WE_PLACE_PRESIZE: {
   159 	case WE_PLACE_PRESIZE: {
   160 		uint tile_from, tile_to;
   160 		uint tile_from, tile_to;
   161 
   161 
   162 		tile_from = tile_to = e->place.tile;
   162 		tile_from = tile_to = e->place.tile;
   163 		switch(GetTileSlope(tile_from, NULL)) {
   163 		switch(GetTileSlope(tile_from, NULL)) {
   223 		}
   223 		}
   224 
   224 
   225 		CheckRedrawStationCoverage(w);
   225 		CheckRedrawStationCoverage(w);
   226 		break;
   226 		break;
   227 	}
   227 	}
   228 	}	
   228 	}
   229 }
   229 }
   230 
   230 
   231 static const Widget _build_dock_station_widgets[] = {
   231 static const Widget _build_dock_station_widgets[] = {
   232 {   WWT_CLOSEBOX,     7,     0,    10,     0,    13, STR_00C5,			STR_018B_CLOSE_WINDOW},
   232 {   WWT_CLOSEBOX,     7,     0,    10,     0,    13, STR_00C5,			STR_018B_CLOSE_WINDOW},
   233 {    WWT_CAPTION,     7,    11,   147,     0,    13, STR_3068_DOCK,	STR_018C_WINDOW_TITLE_DRAG_THIS},
   233 {    WWT_CAPTION,     7,    11,   147,     0,    13, STR_3068_DOCK,	STR_018C_WINDOW_TITLE_DRAG_THIS},