コード例 #1
0
 static void Emphasis(VTrace x, Settings s)
 {
     if (x == null)
     {
         return;
     }
     Button(Pos(x, s), Rot(x), s.size, s.pickSize, CubeHandleCap);
 }
コード例 #2
0
        public static int?Draw(Stepper s, Settings rs, ref int?sel)
        {
            VTrace prev = null; foreach (VTrace x in s.history)

            {
                if (prev != null)
                {
                    DrawLine(Pos(prev, rs), Pos(x, rs));
                }
                if (Button(Pos(x, rs), Rot(x), rs.size, rs.pickSize,
                           RectangleHandleCap))
                {
                    sel = x.frame;
                }
                prev = x;
            }
            return(sel);
        }
コード例 #3
0
 static Vector3    Pos(VTrace x, Settings s) => x.position + up * s.offset;