예제 #1
0
 private void InitializeFonts()
 {
     BeaufortforLOL_Regular = CustomFont.Load(Properties.Resources.BeaufortforLOL_Regular);
     BeaufortforLOL_Bold    = CustomFont.Load(Properties.Resources.BeaufortforLOL_Bold);
     BeaufortforLOL_Italic  = CustomFont.Load(Properties.Resources.BeaufortforLOL_Italic);
     Spiegel_Regular        = CustomFont.Load(Properties.Resources.Spiegel_Regular);
     Spiegel_Italic         = CustomFont.Load(Properties.Resources.Spiegel_RegularItalic);
     Friz_Quadrata          = CustomFont.Load(Properties.Resources.Friz_Quadrata);
 }
예제 #2
0
        private void InitializeCustomComponent()
        {
            TransparencyKey = Color.Turquoise;
            BackColor       = Color.Turquoise;

            var regular = CustomFont.Load(Properties.Resources.BeaufortforLOL_Regular);
            var bold    = CustomFont.Load(Properties.Resources.BeaufortforLOL_Bold);

            OK.Font      = new Font(regular, 13, FontStyle.Bold, GraphicsUnit.Pixel);
            OK.ForeColor = Color.FromArgb(160, 155, 140);

            Yes.Font      = new Font(regular, 13, FontStyle.Bold, GraphicsUnit.Pixel);
            Yes.ForeColor = Color.FromArgb(160, 155, 140);

            No.Font      = new Font(regular, 13, FontStyle.Bold, GraphicsUnit.Pixel);
            No.ForeColor = Color.FromArgb(160, 155, 140);

            Cancel.Font      = new Font(regular, 13, FontStyle.Bold, GraphicsUnit.Pixel);
            Cancel.ForeColor = Color.FromArgb(160, 155, 140);

            Abort.Font      = new Font(regular, 13, FontStyle.Bold, GraphicsUnit.Pixel);
            Abort.ForeColor = Color.FromArgb(160, 155, 140);

            Retry.Font      = new Font(regular, 13, FontStyle.Bold, GraphicsUnit.Pixel);
            Retry.ForeColor = Color.FromArgb(160, 155, 140);

            Ignore.Font      = new Font(regular, 13, FontStyle.Bold, GraphicsUnit.Pixel);
            Ignore.ForeColor = Color.FromArgb(160, 155, 140);

            OK.Click     += new EventHandler(buttonAudioClick);
            Yes.Click    += new EventHandler(buttonAudioClick);
            No.Click     += new EventHandler(buttonAudioClick);
            Cancel.Click += new EventHandler(buttonAudioClick);
            Abort.Click  += new EventHandler(buttonAudioClick);
            Retry.Click  += new EventHandler(buttonAudioClick);
            Ignore.Click += new EventHandler(buttonAudioClick);

            OK.MouseEnter     += new EventHandler(buttonAudioHover);
            Yes.MouseEnter    += new EventHandler(buttonAudioHover);
            No.MouseEnter     += new EventHandler(buttonAudioHover);
            Cancel.MouseEnter += new EventHandler(buttonAudioHover);
            Abort.MouseEnter  += new EventHandler(buttonAudioHover);
            Retry.MouseEnter  += new EventHandler(buttonAudioHover);
            Ignore.MouseEnter += new EventHandler(buttonAudioHover);

            text           = new AntiAliasedLabel();
            text.Location  = new Point(20, 35);
            text.Size      = new Size(Width - 40, 70);
            text.AutoSize  = false;
            text.BackColor = Color.Transparent;
            text.ForeColor = Color.FromArgb(160, 155, 140);
            text.TextAlign = ContentAlignment.TopCenter;
            text.Font      = new Font(regular, 17, FontStyle.Bold, GraphicsUnit.Pixel);

            Caption           = new AntiAliasedLabel();
            Caption.AutoSize  = false;
            Caption.BackColor = Color.Transparent;
            Caption.Width     = Width - 40;
            Caption.Height    = 30;
            Caption.Location  = new Point(20, 20);
            Caption.TextAlign = ContentAlignment.TopCenter;
            Caption.Font      = new Font(bold, 20, FontStyle.Bold, GraphicsUnit.Pixel);
            Caption.ForeColor = Color.FromArgb(240, 230, 210);
            Caption.Visible   = false;

            Controls.Add(Caption);
            Controls.Add(text);
        }