using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEngine.UI;
using System.Linq;

namespace SimplifyXR
{

    [CustomEditor(typeof(simpleARInstructionFeatures))]
    public class SimpleARInstructionFeaturesEditor : BasePanelFeatureEditor
    {

        simpleARInstructionFeatures features;

        public new void OnEnable()
        {
            features = (simpleARInstructionFeatures)target;
            base.OnEnable();
        }

        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();
            RenderValidations();
        }

        void RenderValidations(InspectorType mode = InspectorType.Standard)
        {
            if (!ValidateProjects()) CustomInspector.RenderError(
                "Step Projects need to match for Start and End Step.");
        }

        public override void NodeInspector(float width, bool showInfo)
        {
        }


        public bool ValidateProjects()
        {
            /*
            var startAndEnd = features.customStartAndEnd;

            if (features.UseCustomStartAndEnd)
            {
                return
                    (startAndEnd != null && startAndEnd.Start != null && startAndEnd.End != null) &&
                    (startAndEnd.Start.projectName == startAndEnd.End.projectName);
            }
            else
            {
            */
                return true;
            //}
        }


    }


}




