static public void ManageLayoutProfile() { var profileDlg = new LayoutProfile(); if (profileDlg.ShowDialog(systrayForm) == DialogResult.OK) { } }
static public char EnterSnapshotName() { var profileDlg = new LayoutProfile(); profileDlg.Icon = IdleIcon; profileDlg.ShowDialog(systrayForm); return(profileDlg.snapshot_name); }
public override void DrawDisplayArea() { base.DrawDisplayArea(); // Draw the recording overlay on the primary viewer. Rect primaryViewerArea = LayoutProfile.GetMainViewer(); if (captureState == RecordingState.PreRecording) { var elapsedTime = new TimeSpan(DateTime.Now.Ticks - startTime.Ticks); int timeLeft = (int)(((delay * 1000) - elapsedTime.TotalMilliseconds) / 1000) + 1; GUIStyle countdownFont = new GUIStyle(EditorStyles.label); countdownFont.fontSize = (int)(primaryViewerArea.height / 6); countdownFont.normal.textColor = Color.white; Vector2 size = countdownFont.CalcSize(new GUIContent(timeLeft.ToString())); GUI.Label(new Rect(primaryViewerArea.x + primaryViewerArea.width - (size.x), primaryViewerArea.height + primaryViewerArea.y - size.y, size.x, size.y), timeLeft.ToString(), countdownFont); } if (captureState == RecordingState.Recording) { GUI.DrawTexture(new Rect((primaryViewerArea.x + primaryViewerArea.width) - recordingImage.width - 4, (primaryViewerArea.height + primaryViewerArea.y) - recordingImage.height, recordingImage.width, recordingImage.height), recordingImage); } }