MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / SetStepText

Method SetStepText

editor/ScriptMassCompile.cpp:324–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324void 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
361bool CheckOutGamefile(char *tempbuffer, bool show_ok_confirmation, bool report_who_has_locked);

Callers

nothing calls this directly

Calls 1

deferMethod · 0.45

Tested by

no test coverage detected