private void OutputFormatCombo_SelectionChanged(object sender, EventArgs e) { VideoOutputType vidType = (VideoOutputType)OutputFormatCombo.SelectedItem; if (vidType.Name.StartsWith(Language.GetLocalizedText(899, "Custom"))) { widthEdit.ReadOnly = false; heightEdit.ReadOnly = false; fpsEdit.ReadOnly = false; } else { widthEdit.Text = vidType.Width.ToString(); heightEdit.Text = vidType.Height.ToString(); fpsEdit.Text = vidType.Fps.ToString(); DomeMaster.Checked = vidType.Dome; widthEdit.ReadOnly = true; heightEdit.ReadOnly = true; fpsEdit.ReadOnly = true; } Properties.Settings.Default.LastVideoOutFormat = OutputFormatCombo.SelectedIndex; }
private void Render_Click(object sender, EventArgs e) { try { string pathPart = Path.GetDirectoryName(PathEdit.Text); if (!Directory.Exists(pathPart)) { Directory.CreateDirectory(pathPart); } Properties.Settings.Default.VideoOutputPath = PathEdit.Text; RenderValues = new VideoOutputType(PathEdit.Text, int.Parse(widthEdit.Text), int.Parse(heightEdit.Text), double.Parse(fpsEdit.Text), DomeMaster.Checked); RenderValues.WaitDownload = WaitForDownloads.Checked; RenderValues.TotalFrames = int.Parse(totalFramesEdit.Text); RenderValues.StartFrame = int.Parse(startFrameEdit.Text); DialogResult = DialogResult.OK; } catch { UiTools.ShowMessageBox(Language.GetLocalizedText(758, "Check your values. You must enter valid numbers and a filename")); } }
private void renderToVideoToolStripMenuItem_Click(object sender, EventArgs e) { OutputTourToVideo videoDialog = new OutputTourToVideo(); videoDialog.Target = this.menuTabs.CurrentTour; if (TourEdit != null) { if (videoDialog.ShowDialog() == DialogResult.OK) { SpaceTimeController.MetaNow = DateTime.Now; SpaceTimeController.FrameDumping = true; SpaceTimeController.FramesPerSecond = videoDialog.RenderValues.Fps; SpaceTimeController.TotalFrames = videoDialog.RenderValues.TotalFrames; SpaceTimeController.CurrentFrameNumber = videoDialog.RenderValues.StartFrame; dumpFrameParams = videoDialog.RenderValues; CaptureVideo = true; RenderProgress = new RenderProgress(); RenderProgress.Owner = this; RenderProgress.Show(); SpaceTimeController.CancelFrameDump = false; TourEdit.PlayNow(false); } } }