/// <summary> /// Initializes the controller /// </summary> public void Init(MoonEditorWindow Window) { _window = Window; canvas.Init(Window); CurrentGUIState = 0; InitStates(); }
public void AddItemsToMenu(GenericMenu menu) { menu.AddItem(new GUIContent("Add New tab"), false, () => { MoonEditorWindow wind = Instantiate(this); wind.CurrentGraph = null; wind.Show(); }); }
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(); }); } }
public static MoonEditorWindow LoadWindow() { MoonEditorWindow instance = GetWindow <MoonEditorWindow>(); instance.titleContent.text = "Moon Behavior"; if (MoonSettings.HelpOnStartUp) { MoonHelpWindow.Load(); } return(instance); }