271 |
271 |
272 SetDParam(0, v->string_id); |
272 SetDParam(0, v->string_id); |
273 SetDParam(1, v->unitnumber); |
273 SetDParam(1, v->unitnumber); |
274 DrawWindowWidgets(w); |
274 DrawWindowWidgets(w); |
275 |
275 |
276 DrawString(1, 15, STR_A040_SELECT_CARGO_TYPE_TO_CARRY, 0); |
|
277 |
276 |
278 /* TODO: Support for custom GRFSpecial-specified refitting! --pasky */ |
277 /* TODO: Support for custom GRFSpecial-specified refitting! --pasky */ |
279 WP(w,refit_d).cargo = DrawVehicleRefitWindow(v, WP(w, refit_d).sel); |
278 WP(w,refit_d).cargo = DrawVehicleRefitWindow(v, WP(w, refit_d).sel); |
280 |
279 |
281 if (WP(w,refit_d).cargo != CT_INVALID) { |
280 if (WP(w,refit_d).cargo != CT_INVALID) { |
309 break; |
308 break; |
310 } |
309 } |
311 } |
310 } |
312 |
311 |
313 static const Widget _aircraft_refit_widgets[] = { |
312 static const Widget _aircraft_refit_widgets[] = { |
314 { WWT_CLOSEBOX, RESIZE_NONE, 14, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW }, |
313 { WWT_CLOSEBOX, RESIZE_NONE, 14, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW }, |
315 { WWT_CAPTION, RESIZE_NONE, 14, 11, 239, 0, 13, STR_A03C_REFIT, STR_018C_WINDOW_TITLE_DRAG_THIS }, |
314 { WWT_CAPTION, RESIZE_NONE, 14, 11, 239, 0, 13, STR_A03C_REFIT, STR_018C_WINDOW_TITLE_DRAG_THIS }, |
316 { WWT_IMGBTN, RESIZE_NONE, 14, 0, 239, 14, 145, 0x0, STR_A03E_SELECT_TYPE_OF_CARGO_FOR }, |
315 { WWT_IMGBTN, RESIZE_NONE, 14, 0, 239, 14, 145, 0x0, STR_A03E_SELECT_TYPE_OF_CARGO_FOR }, |
317 { WWT_IMGBTN, RESIZE_NONE, 14, 0, 239, 146, 167, 0x0, STR_NULL }, |
316 { WWT_IMGBTN, RESIZE_NONE, 14, 0, 239, 146, 167, 0x0, STR_NULL }, |
318 { WWT_PUSHTXTBTN, RESIZE_NONE, 14, 0, 239, 168, 179, STR_A03D_REFIT_AIRCRAFT, STR_A03F_REFIT_AIRCRAFT_TO_CARRY }, |
317 { WWT_PUSHTXTBTN, RESIZE_NONE, 14, 0, 239, 168, 179, STR_A03D_REFIT_AIRCRAFT, STR_A03F_REFIT_AIRCRAFT_TO_CARRY }, |
|
318 { WWT_LABEL, RESIZE_NONE, 0, 0, 239, 13, 26, STR_A040_SELECT_CARGO_TYPE_TO_CARRY, STR_NULL}, |
319 { WIDGETS_END}, |
319 { WIDGETS_END}, |
320 }; |
320 }; |
321 |
321 |
322 static const WindowDesc _aircraft_refit_desc = { |
322 static const WindowDesc _aircraft_refit_desc = { |
323 -1,-1, 240, 180, |
323 -1,-1, 240, 180, |