train_gui.c
changeset 2822 ff15d6f947ed
parent 2819 710436dd4288
child 2840 d68a605b2087
equal deleted inserted replaced
2821:ba75b5f98725 2822:ff15d6f947ed
  1186 
  1186 
  1187 	SetDParam(0, v->service_interval);
  1187 	SetDParam(0, v->service_interval);
  1188 	SetDParam(1, v->date_of_last_service);
  1188 	SetDParam(1, v->date_of_last_service);
  1189 	DrawString(x + 11, 141, _patches.servint_ispercent?STR_SERVICING_INTERVAL_PERCENT:STR_883C_SERVICING_INTERVAL_DAYS, 0);
  1189 	DrawString(x + 11, 141, _patches.servint_ispercent?STR_SERVICING_INTERVAL_PERCENT:STR_883C_SERVICING_INTERVAL_DAYS, 0);
  1190 
  1190 
  1191 	x = 1;
       
  1192 	y = 57;
  1191 	y = 57;
  1193 	sel = w->vscroll.pos;
  1192 	sel = w->vscroll.pos;
  1194 
  1193 
  1195 	// draw the first 3 details tabs
  1194 	// draw the first 3 details tabs
  1196 	if (det_tab != 3) {
  1195 	if (det_tab != 3) {
       
  1196 		x = 1;
  1197 		for(;;) {
  1197 		for(;;) {
  1198 			if (--sel < 0 && sel >= -6) {
  1198 			if (--sel < 0 && sel >= -6) {
  1199 				int dx = 0;
  1199 				int dx = 0;
  1200 				u = v;
  1200 				u = v;
  1201 				do {
  1201 				do {
  1219 				// STR_013F_TOTAL_CAPACITY			:{LTBLUE}- {CARGO} ({SHORTCARGO})
  1219 				// STR_013F_TOTAL_CAPACITY			:{LTBLUE}- {CARGO} ({SHORTCARGO})
  1220 				SetDParam(0, i);								// {CARGO} #1
  1220 				SetDParam(0, i);								// {CARGO} #1
  1221 				SetDParam(1, tot_cargo[i][0]);	// {CARGO} #2
  1221 				SetDParam(1, tot_cargo[i][0]);	// {CARGO} #2
  1222 				SetDParam(2, i);								// {SHORTCARGO} #1
  1222 				SetDParam(2, i);								// {SHORTCARGO} #1
  1223 				SetDParam(3, tot_cargo[i][1]);	// {SHORTCARGO} #2
  1223 				SetDParam(3, tot_cargo[i][1]);	// {SHORTCARGO} #2
  1224 				DrawString(x, y, STR_013F_TOTAL_CAPACITY, 0);
  1224 				DrawString(x, y + 2, STR_013F_TOTAL_CAPACITY, 0);
  1225 			}
  1225 			}
  1226 		} while (++i != NUM_CARGO);
  1226 		} while (++i != NUM_CARGO);
  1227 	}
  1227 	}
  1228 }
  1228 }
  1229 
  1229