DIFF

class WBProgressDialogsealedWORKBENCH

WBProgressDialog › Managed

Modal progress dialog used to display task progress and status.

Provides an interface for updating progress, the main title, and the action description shown to the user. The dialog is associated with a parent module window.

WBProgressDialog progress = new WBProgressDialog("Main Title", null);

for (int i = 0; i < 100; i++)
{
progress.SetProgress(i / 100);
progress.SetMainTitle("Working on something " + i / 20);
progress.SetActionTitle("Processing " + i / 10);
Print(i);
}

Constructors 1

void WBProgressDialog(string title, WBModuleDef parentWindow)WORKBENCH

Methods 3

proto external void SetProgress(float progress)WORKBENCH

Updates the progress value displayed in the dialog.

progress
Progress value in the range [0.0, 1.0].
proto external void SetMainTitle(string text)WORKBENCH

Sets the main title text displayed at the top of the dialog.

text
New main title.
proto external void SetActionTitle(string text)WORKBENCH

Sets the action title text describing the current operation.

text
New action description.