changeset 7049 | 0ebe47348074 |
parent 7002 | 1bf6a62b0fcb |
child 7058 | 8105bb13ce3d |
7048:0850931d1c81 | 7049:0ebe47348074 |
---|---|
329 } |
329 } |
330 } |
330 } |
331 |
331 |
332 SetVScrollCount(w, WP(w, refit_d).list->num_lines); |
332 SetVScrollCount(w, WP(w, refit_d).list->num_lines); |
333 |
333 |
334 SetDParam(0, v->string_id); |
334 SetDParam(0, v->index); |
335 SetDParam(1, v->unitnumber); |
|
336 DrawWindowWidgets(w); |
335 DrawWindowWidgets(w); |
337 |
336 |
338 WP(w, refit_d).cargo = DrawVehicleRefitWindow(WP(w, refit_d).list, WP(w, refit_d).sel, w->vscroll.pos, w->vscroll.cap, w->resize.step_height); |
337 WP(w, refit_d).cargo = DrawVehicleRefitWindow(WP(w, refit_d).list, WP(w, refit_d).sel, w->vscroll.pos, w->vscroll.cap, w->resize.step_height); |
339 |
338 |
340 if (WP(w, refit_d).cargo != NULL) { |
339 if (WP(w, refit_d).cargo != NULL) { |
1015 (v->type == VEH_ROAD && v->string_id != STR_SV_ROADVEH_NAME) || |
1014 (v->type == VEH_ROAD && v->string_id != STR_SV_ROADVEH_NAME) || |
1016 (v->type == VEH_SHIP && v->string_id != STR_SV_SHIP_NAME) || |
1015 (v->type == VEH_SHIP && v->string_id != STR_SV_SHIP_NAME) || |
1017 (v->type == VEH_AIRCRAFT && v->string_id != STR_SV_AIRCRAFT_NAME)) { |
1016 (v->type == VEH_AIRCRAFT && v->string_id != STR_SV_AIRCRAFT_NAME)) { |
1018 |
1017 |
1019 /* The vehicle got a name so we will print it */ |
1018 /* The vehicle got a name so we will print it */ |
1020 SetDParam(0, v->string_id); |
1019 SetDParam(0, v->index); |
1021 DrawString(x + 19, y, STR_01AB, 0); |
1020 DrawString(x + 19, y, STR_01AB, 0); |
1022 } |
1021 } |
1023 |
1022 |
1024 if (w->resize.step_height == PLY_WND_PRC__SIZE_OF_ROW_BIG) DrawSmallOrderList(v, x + 138, y); |
1023 if (w->resize.step_height == PLY_WND_PRC__SIZE_OF_ROW_BIG) DrawSmallOrderList(v, x + 138, y); |
1025 |
1024 |