Exemplo n.º 1
0
        public void OnGUI()
        {
            if (c != null)
                this.titleContent = new GUIContent(c.Title);

            GUILayout.Label("Button", EditorStyles.boldLabel);
            if(GUILayout.Button("Create Chat")) {
                c = new Chat();
                Debug.Log(c);
            }

            debug_node_name = EditorGUILayout.TextField("Node-Title", debug_node_name);

            if(GUILayout.Button("Add Node") && c != null) {
                c.addNode(debug_node_name);
                Debug.Log(c);
            }

            debug_node_id = EditorGUILayout.TextField("Node-ID", debug_node_id);

            if(GUILayout.Button("Remove node") && c != null) {
                c.removeNode(debug_node_id);
                Debug.Log(c);
            }

            /*
            Rect left = EditorGUILayout.BeginHorizontal();
                GUILayout.Label("Base Settings", EditorStyles.boldLabel);
                //this.title = EditorGUILayout.TextField ("Text Field", this.title);
            EditorGUILayout.EndHorizontal();
            Rect right = EditorGUILayout.BeginHorizontal();
            GUILayout.Label("BasSHITe Settings", EditorStyles.boldLabel);

            EditorGUILayout.EndHorizontal();*/
        }
Exemplo n.º 2
0
 public override void OnInspectorGUI()
 {
     this.activeChat = (Chat)target;
 }