public GridBackGround(Rectangle boundZ, Color lineColor, Color backColor, Vector2 spacing, int lineWidthZ)
 {
     bounds      = Util.newRectangle(boundZ);
     colour      = backColor;
     lineColour1 = lineColor;
     lineSpacing = spacing;
     lineWidth   = lineWidthZ;
     offset      = new Vector2(0, 0);
     delta       = new Vector2(0, 0);
 }
示例#2
0
        public override void Draw(SpriteBatch sb)
        {
            if (!active)
            {
                return;
            }
            Rectangle r = parent.getBoundingBoxAA();
            Rectangle c = Util.newRectangle(curFrame);

            c.X = c.X + r.X;
            c.Y = c.Y + r.Y;
            sb.Draw(tex, c, sourceFrame, curColour);
        }
示例#3
0
 public RC_posInrectangle(Rectangle r, Random rndZ)
 {
     rect = Util.newRectangle(r);
     rnd  = rndZ;
 }