﻿using UnityEditor;
using UnityEngine;

namespace ARGOEditor
{
    public class CreateWindow : EditorWindow
    {
        private int markerId;

        public void Awake()
        {
            int.TryParse(EditorGUIUtility.systemCopyBuffer, out markerId);
        }

        private void OnGUI()
        {
            GUILayout.Label("ARGO Marker ID:", EditorStyles.boldLabel);
            markerId = EditorGUILayout.IntField(markerId);

            if (GUILayout.Button("Create"))
            {
                SceneHolder.CreateNewScene(markerId);
                Close();
            }
            if (GUILayout.Button("Cancel"))
            {
                Close();
            }
        }
    }
}
