Beispiel #1
0
        protected void GUI_Stats()
        {
            if (_baseCapture == null)
            {
                return;
            }

            if (Application.isPlaying && _baseCapture.IsCapturing())
            {
                CaptureEditorWindow.DrawBaseCapturingGUI(_baseCapture);
                if (!_baseCapture._isRealTime)
                {
                    long lastFileSize       = _baseCapture.GetCaptureFileSize();
                    uint lastEncodedSeconds = (uint)Mathf.FloorToInt((float)_baseCapture.NumEncodedFrames / (float)_baseCapture._frameRate);
                    if (_baseCapture._isRealTime)
                    {
                        lastEncodedSeconds = _baseCapture.TotalEncodedSeconds;
                    }
                    uint lastEncodedMinutes = lastEncodedSeconds / 60;
                    lastEncodedSeconds = lastEncodedSeconds % 60;
                    uint lastEncodedFrame = _baseCapture.NumEncodedFrames % (uint)_baseCapture._frameRate;

                    EditorGUILayout.BeginVertical("box");
                    EditorGUI.indentLevel++;

                    EditorGUILayout.LabelField("File Size", ((float)lastFileSize / (1024f * 1024f)).ToString("F1") + "MB");
                    EditorGUILayout.LabelField("Video Length", lastEncodedMinutes.ToString("00") + ":" + lastEncodedSeconds.ToString("00") + "." + lastEncodedFrame.ToString("000"));

                    EditorGUI.indentLevel--;
                    EditorGUILayout.EndVertical();
                }
            }
        }
Beispiel #2
0
        protected void GUI_Header()
        {
            // Describe the watermark for trial version
            if (_isTrialVersion)
            {
                EditorUtils.DrawSectionColored("- AVPRO MOVIE CAPTURE -\nFREE TRIAL VERSION", ref _isExpandedTrial, DrawTrialMessage, Color.magenta, Color.magenta, Color.magenta);
            }

            // Button to launch the capture window
            {
                GUI.backgroundColor = new Color(0.96f, 0.25f, 0.47f);
                if (GUILayout.Button("\n◄ Open Movie Capture Window ►\n"))
                {
                    CaptureEditorWindow.Init();
                }
                GUI.backgroundColor = Color.white;
            }
        }
Beispiel #3
0
 protected virtual void GUI_About()
 {
     CaptureEditorWindow.DrawConfigGUI_About();
 }