예제 #1
0
    private void DrawBasicNode()
    {
        Rect _r = new Rect(NodeRect.position.x + 10, NodeRect.position.y + 15, NodeRect.width - 20, TITLE_HEIGHT);

        GUI.Label(_r, m_part.Speaker);
        _r.y += 25;
        string[] _test = new string[] { "test", "Encore un", "Et un dernier test" };
        EditorGUI.Popup(_r, 0, _test);
        _r = new Rect(NodeRect.position.x + 10, NodeRect.position.y + 70, NodeRect.width - 20, BASIC_CONTENT_HEIGHT);
        Color _original = GUI.backgroundColor;

        GUI.backgroundColor = new Color(1.0f, 1.0f, 1.0f, .5f);
        GUI.Box(_r, m_part.Contents[0]);
        GUI.backgroundColor = _original;
        //EditorGUI.TextArea(_r, m_part.Contents[0]);
        OutPoints.ForEach(p => p.Draw(NodeRect));
    }
예제 #2
0
 /// <summary>
 /// Draw the Node
 /// </summary>
 public virtual void Draw()
 {
     InPoint.Draw(NodeRect);
     OutPoints.ForEach(p => p.Draw(NodeRect));
     GUI.Box(NodeRect, NodeTitle, m_nodeStyle);
 }