Example #1
0
 private static void drawPoseBox(GraphicsManager graphMan, Color col)
 {
     graphMan.AddLine(pose_pos.X - (pose_box.X / 2),
                     pose_pos.Y - (pose_box.Y / 2), col,
                     pose_pos.X + (pose_box.X / 2),
                     pose_pos.Y - (pose_box.Y / 2), col);
     graphMan.AddLine(pose_pos.X + (pose_box.X / 2),
                     pose_pos.Y - (pose_box.Y / 2), col,
                     pose_pos.X + (pose_box.X / 2),
                     pose_pos.Y + (pose_box.Y / 2), col);
     graphMan.AddLine(pose_pos.X + (pose_box.X / 2),
                     pose_pos.Y + (pose_box.Y / 2), col,
                     pose_pos.X - (pose_box.X / 2),
                     pose_pos.Y + (pose_box.Y / 2), col);
     graphMan.AddLine(pose_pos.X - (pose_box.X / 2),
                     pose_pos.Y + (pose_box.Y / 2), col,
                     pose_pos.X - (pose_box.X / 2),
                     pose_pos.Y - (pose_box.Y / 2), col);
 }
Example #2
0
 private static void drawPartBox(GraphicsManager graphMan, Color col, Vector2 offset)
 {
     graphMan.AddLine(offset.X + pose_pos.X - (pose_box.X / 16),
                     offset.Y + pose_pos.Y - (pose_box.Y / 16), col,
                     offset.X + pose_pos.X + (pose_box.X / 16),
                     offset.Y + pose_pos.Y - (pose_box.Y / 16), col);
     graphMan.AddLine(offset.X + pose_pos.X + (pose_box.X / 16),
                     offset.Y + pose_pos.Y - (pose_box.Y / 16), col,
                     offset.X + pose_pos.X + (pose_box.X / 16),
                     offset.Y + pose_pos.Y + (pose_box.Y / 16), col);
     graphMan.AddLine(offset.X + pose_pos.X + (pose_box.X / 16),
                     offset.Y + pose_pos.Y + (pose_box.Y / 16), col,
                     offset.X + pose_pos.X - (pose_box.X / 16),
                     offset.Y + pose_pos.Y + (pose_box.Y / 16), col);
     graphMan.AddLine(offset.X + pose_pos.X - (pose_box.X / 16),
                     offset.Y + pose_pos.Y + (pose_box.Y / 16), col,
                     offset.X + pose_pos.X - (pose_box.X / 16),
                     offset.Y + pose_pos.Y - (pose_box.Y / 16), col);
 }