Пример #1
0
    static void OpenWindow()
    {
        TreeDesigner window = (TreeDesigner)GetWindow(typeof(TreeDesigner));

        //restraining size of window
        window.minSize = new Vector2(300, 600);
        //can also set maxSize
        window.Show();
    }
Пример #2
0
    static void OpenWindow()
    {
        //textStyle = GUIStyle.none;
        //textStyle.normal.textColor = Color.white;


        TreeDesigner window = (TreeDesigner)GetWindow(typeof(TreeDesigner));

        //restraining size of window
        window.minSize = new Vector2(300, 600);
        //can also set maxSize
        window.Show();
    }
Пример #3
0
    void DrawLoad()
    {
        //Debug.Log("We're Loading");
        EditorGUILayout.BeginHorizontal();
        GUILayout.Label("Load Path");
        EditorGUILayout.EndHorizontal();
        //enter path
        path = EditorGUILayout.TextField(path);

        if (GUILayout.Button("Load", GUILayout.Height(40)))
        {
            dialogue = Load(path);
            //Debug.Log(dialogue._nodes.Count);
            //Debug.Log("Loaded " + path);
            TreeDesigner.UpdateTree(dialogue);
            this.Close();
        }
    }