コード例 #1
0
        public static void DrawBackGroundGrid()
        {
            DrawGridLines(bgRect, 10f, new Color(0.4f, 0.4f, 0.4f, 1));
            DrawGridLines(bgRect, 100f, Color.black);

            StateMachineEditorGUI.HandleColorChangeEnd();
        }
コード例 #2
0
        public static void DrawArrowCenterOneTriangle(Vector2 p0, Vector2 p1, float lineSize, float triangleSize, Color lineColor)
        {
            Handles.color = lineColor;

            Vector2 direction    = (p1 - p0).normalized;
            Vector2 verticalDire = HDJ.Framework.Utils.MathUtils.VerticalVector2(direction)[0];
            Vector2 center       = (p1 - p0) / 2f + p0;
            Vector2 t0           = center + direction * triangleSize / 2;
            Vector2 t1           = center + verticalDire * triangleSize / 2;
            Vector2 t2           = center - verticalDire * triangleSize / 2;

            Handles.DrawAAPolyLine(lineSize, p0, p1);
            Handles.DrawAAConvexPolygon(t0, t1, t2);
            StateMachineEditorGUI.HandleColorChangeEnd();
        }
コード例 #3
0
        void OnGUI()
        {
            MachineStateInputEventController.PlayerControlUse();
            DrawLeftToolAreaGUI();
            DrawToolBarGUI();
            DrawRightToolAreaGUI();
            ndoeControlRange = new Rect(leftToolAreaRect.xMax, topRightToolBarRect.yMax, Screen.width - leftToolAreaRect.width - RightToolAreaWith, Screen.height - topRightToolBarRect.height);

            StateMachineBGGUI.BeginGUI(ndoeControlRange, StateMachineEditorGUI.stateMachineMaxRange);
            MachineStateInputEventController.OnMachineStateMouseRightClickMenu();
            BeginWindows();
            StateTransitionGUI.DrawTempArrowTransition();
            StateMachineEditorGUI.DrawAllStateMachineGUI();

            EndWindows();
            StateMachineBGGUI.EndGUI();
        }
コード例 #4
0
 private static void DrawOneTriangleDowm(Vector2[] posArr, Color lineColor)
 {
     Handles.color = lineColor;
     Handles.DrawAAConvexPolygon(posArr[0], posArr[1], posArr[2]);
     StateMachineEditorGUI.HandleColorChangeEnd();
 }