예제 #1
0
        public override void InternalRender(RenderContext context)
        {
            base.InternalRender(context);

            if (Map == null)
            {
                return;
            }

            UpdateImage();

            int x, width;

            GetScreenHorizontal(out x, out width);

            var bounds = ActualBounds;

            bounds.X     = x;
            bounds.Width = width;

            _image.Draw(context, bounds);

            var topLeft = GameToScreen(TopLeft);
            var size    = GameToScreen(TopLeft + GridSize.ToVector2()) - topLeft;

            context.DrawRectangle(new Rectangle(topLeft.X, topLeft.Y, size.X, size.Y), Color.White);
        }