예제 #1
0
 /// <summary>
 /// Initializes the controller
 /// </summary>
 public void Init(MoonEditorWindow Window)
 {
     _window = Window;
     canvas.Init(Window);
     CurrentGUIState = 0;
     InitStates();
 }
예제 #2
0
 public void AddItemsToMenu(GenericMenu menu)
 {
     menu.AddItem(new GUIContent("Add New tab"), false, () =>
     {
         MoonEditorWindow wind = Instantiate(this);
         wind.CurrentGraph     = null;
         wind.Show();
     });
 }
예제 #3
0
 public void Init(MoonEditorWindow wind)
 {
     GUIScaleUtility.CheckInit();
     Window = wind;
     if (Graph != null && Graph.Nodes.Count > 0)
     {
         Graph.Nodes.ForEach((Node n) =>
         {
             n.SetNodeGraph(wind.CurrentGraph);
             n.IOInit();
         });
     }
 }
예제 #4
0
        public static MoonEditorWindow LoadWindow()
        {
            MoonEditorWindow instance = GetWindow <MoonEditorWindow>();

            instance.titleContent.text = "Moon Behavior";

            if (MoonSettings.HelpOnStartUp)
            {
                MoonHelpWindow.Load();
            }

            return(instance);
        }