static void Emphasis(VTrace x, Settings s) { if (x == null) { return; } Button(Pos(x, s), Rot(x), s.size, s.pickSize, CubeHandleCap); }
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); }
static Vector3 Pos(VTrace x, Settings s) => x.position + up * s.offset;