public static void Open() { if (StoryWindow != null) { StoryWindow.Show(); return; } StoryWindow = EditorWindow.GetWindow <StoryEditorWindow>(); StoryWindow.titleContent = new GUIContent("Story Editor"); //float h = Screen.height * 0.7f; //float w = Screen.width * 0.7f; //StoryWindow.position = new Rect(Screen.width - w, Screen.height - h, w, h); StoryWindow.Show(); }
public bool OnGUI(StoryEditorWindow window) { //if (!Selection.activeObject) { ShowTips(window._windowRect.center); return true; } StoryObject story = Selection.activeObject as StoryObject; window._storyObject = story; if (story == null) { ShowTips(window._windowRect.center); return(true); } return(false); }
public void OnGUI(StoryEditorWindow 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(); //MultiChoice MultiChoice(); InternalOnGUI(); }
public static void Open() { if (StoryWindow != null) { StoryWindow.Show(); return; } StoryWindow = EditorWindow.CreateInstance<StoryEditorWindow>(); StoryWindow.titleContent = new GUIContent("Story Editor"); float h = Screen.height * 0.7f; float w = Screen.width * 0.7f; StoryWindow.position = new Rect(Screen.width - w, Screen.height - h, w, h); StoryWindow.Show(); }
void Update() { Repaint(); StoryWindow = this; //Debug.Log("dd"); }
void OnEnable() { StoryWindow = this; Repaint(); }
void Update() { Repaint(); StoryWindow = this; //Debug.Log("dd"); }
void OnEnable() { StoryWindow = this; Repaint(); }