예제 #1
0
        /// <summary>
        /// Creates a new curve drawing GUI element.
        /// </summary>
        /// <param name="layout">Layout into which to add the GUI element.</param>
        /// <param name="width">Width of the element in pixels.</param>
        /// <param name="height">Height of the element in pixels.</param>
        /// <param name="curveInfos">Initial set of curves to display. </param>
        public GUICurveDrawing(GUILayout layout, int width, int height, CurveDrawInfo[] curveInfos)
            : base(layout, width, height)
        {
            tickHandler     = new GUIGraphTicks(GUITickStepType.Time);
            this.curveInfos = curveInfos;

            ClearSelectedKeyframes(); // Makes sure the array is initialized
        }
예제 #2
0
        /// <summary>
        /// Constructs a new value display and adds it to the specified layout.
        /// </summary>
        /// <param name="layout">Layout to add the GUI element to.</param>
        /// <param name="width">Width of the timeline in pixels.</param>
        /// <param name="height">Height of the timeline in pixels.</param>
        public GUIGraphValues(GUILayout layout, int width, int height)
        {
            canvas = new GUICanvas();
            layout.AddElement(canvas);

            tickHandler = new GUIGraphTicks();

            SetSize(width, height);
        }
예제 #3
0
 private static extern void Internal_GUIGraphTicks(GUIGraphTicks managedInstance, GUITickStepType stepType);
예제 #4
0
 /// <summary>
 /// Constructs a new timeline and adds it to the specified layout.
 /// </summary>
 /// <param name="layout">Layout to add the timeline GUI to.</param>
 /// <param name="width">Width of the timeline in pixels.</param>
 /// <param name="height">Height of the timeline in pixels.</param>
 public GUIGraphTime(GUILayout layout, int width, int height)
     :base(layout, width, height)
 {
     tickHandler = new GUIGraphTicks(GUITickStepType.Time);
 }