using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace SimplifyXR
{

    [DirectiveCategory(DirectiveCategories.Action,
        subCategory = DirectiveSubCategory.Camera,
        directiveInfo = "This <i>action</i> triggers a <b>Camera Capture</b> panel to be displayed.",
        prettyName = "Display Camera Capture")]
    public class DisplayCameraCapture : Actions
    {
        public CameraCapturePanelFeatures cameraCapturePanel;

        [Tooltip("Customizeable properties for the Camera Capture.")]
        public CameraCaptureOptions cameraCaptureInfo;

        public override List<KnobKeywords> ReceiveKeywords()
        {
            return new List<KnobKeywords>();
        }

        public override List<KnobKeywords> SendKeywords()
        {
            return new List<KnobKeywords>();
        }

        public override void Execute()
        {
            cameraCapturePanel =
              cameraCapturePanel == null ?
              Object.FindObjectOfType<CameraCapturePanelFeatures>() :
              cameraCapturePanel;
            cameraCapturePanel?.DisplayCamerCapturePanel(cameraCaptureInfo);
            ThisActionCompleted();
        }
    }
}



