| 322 | } |
| 323 | |
| 324 | void CScriptMassCompile::SetStepText(int step, char *format, ...) { |
| 325 | if (step < 1 || step > 4) |
| 326 | return; |
| 327 | |
| 328 | char buffer[1024]; |
| 329 | va_list marker; |
| 330 | va_start(marker, format); |
| 331 | std::vsprintf(buffer, format, marker); |
| 332 | va_end(marker); |
| 333 | |
| 334 | CWnd *wnd; |
| 335 | int msg_to; |
| 336 | |
| 337 | switch (step) { |
| 338 | case 1: |
| 339 | wnd = (CWnd *)GetDlgItem(IDC_STEP1); |
| 340 | msg_to = IDC_STEP1; |
| 341 | break; |
| 342 | case 2: |
| 343 | wnd = (CWnd *)GetDlgItem(IDC_STEP2); |
| 344 | msg_to = IDC_STEP2; |
| 345 | break; |
| 346 | case 3: |
| 347 | wnd = (CWnd *)GetDlgItem(IDC_STEP3); |
| 348 | msg_to = IDC_STEP3; |
| 349 | break; |
| 350 | case 4: |
| 351 | wnd = (CWnd *)GetDlgItem(IDC_STEP4); |
| 352 | msg_to = IDC_STEP4; |
| 353 | break; |
| 354 | }; |
| 355 | wnd->SetWindowText(buffer); |
| 356 | SendDlgItemMessage(msg_to, WM_PAINT, 0, 0); |
| 357 | Descent->defer(); |
| 358 | } |
| 359 | |
| 360 | // return true if the file was checked out for this step |
| 361 | bool CheckOutGamefile(char *tempbuffer, bool show_ok_confirmation, bool report_who_has_locked); |