public static void Open() { if (DialogWindow != null) { DialogWindow.Show(); return; } DialogWindow = EditorWindow.GetWindow <DialogEditorWindow>(); DialogWindow.titleContent = new GUIContent("Dialog Editor"); //float h = Screen.height * 0.7f; //float w = Screen.width * 0.7f; //DialogWindow.position = new Rect(Screen.width - w, Screen.height - h, w, h); //DialogWindow.position=new DialogWindow.Show(); }
public void OnGUI(DialogEditorWindow window, NodeModifier[] nodes) { _contentRect = window._contentRect; _window = window; //========Right Area=============== DrawRightGrid(); DrawNodes(nodes, true); ShowConnectLine(); //========Left Slider Area=========== ShowLeftSliderArea(); //Make graph dragable DragGraph(); //Quilk Key QuilkKey(); //LeftTopInfo ShowGraphCenterInfo(); InternalOnGUI(); }
void Update() { Repaint(); DialogWindow = this; }
void OnEnable() { DialogWindow = this; Repaint(); }