Ejemplo n.º 1
0
        void DrawTableBackground(FastBitmap dst)
        {
            int       tableHeight = Math.Max(game.Height - tableY - 50, 1);
            Rectangle rec         = new Rectangle(tableX, tableY, game.Width - tableX, tableHeight);

            if (!game.ClassicBackground)
            {
                FastColour col = LauncherTableView.backGridCol;
                Drawer2DExt.FastClear(dst, rec, col);
            }
            else
            {
                game.ClearArea(rec.X, rec.Y, rec.Width, rec.Height, dst);
            }
        }
        public void RedrawBackground(FastBitmap dst)
        {
            if (Window.Minimised)
            {
                return;
            }
            Rectangle rect = new Rectangle(X + border, Y + border, Width - border * 2, Height - border * 2);

            if (Window.ClassicBackground)
            {
                FastColour foreCol = Active ? new FastColour(126, 136, 191) : new FastColour(111, 111, 111);
                Drawer2DExt.DrawNoise(dst, rect, foreCol, 8);
            }
            else
            {
                FastColour foreCol = Active ? LauncherSkin.ButtonForeActiveCol : LauncherSkin.ButtonForeCol;
                Drawer2DExt.FastClear(dst, rect, foreCol);
            }
        }