Exemple #1
0
 public void ClearArea(int x, int y, int width, int height, FastBitmap dst)
 {
     if (ClassicMode)
     {
         ClearTile(x, y, width, height, 0, 96, 96, dst);
     }
     else
     {
         FastColour col = LauncherSkin.BackgroundCol;
         Drawer2DExt.DrawNoise(dst, new Rectangle(x, y, width, height), col, 6);
     }
 }
        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.ClassicMode)
            {
                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);
            }
        }