Ejemplo n.º 1
0
 private void switchTab()
 {
     this.BackgroundImage = bitmap[tab];
     if (tab != 0)
     {
         this.Region = BitmapToRegion.getRegionFast((Bitmap)Properties.Resources.equipmentMask2, Color.FromArgb(0, 255, 0), 100);
         for (int i = 0; i < 5; i++)
         {
             pictureBoxARCs[i].Visible        = false;
             pictureBoxArcLvLabels[i].Visible = false;
             pictureBoxArcLvs[i, 0].Visible   = false;
             pictureBoxArcLvs[i, 1].Visible   = false;
         }
     }
     else
     {
         this.Region = BitmapToRegion.getRegionFast((Bitmap)Properties.Resources.equipmentMask1, Color.FromArgb(0, 255, 0), 100);
         for (int i = 0; i < 5; i++)
         {
             pictureBoxARCs[i].Visible        = true;
             pictureBoxArcLvLabels[i].Visible = true;
             pictureBoxArcLvs[i, 0].Visible   = true;
             pictureBoxArcLvs[i, 1].Visible   = true;
             RefreshARC();
         }
     }
 }
        private void Init()
        {
            //Needed to make the custom shaped Form
            this.FormBorderStyle = FormBorderStyle.None;
            //this.Width = this.BackgroundImage.Width;
            //this.Height = this.BackgroundImage.Height;
            this.ClientSize = new Size(912, 534);

            //Slow version
            //this.Region = BitmapToRegion.getRegion((Bitmap)this.BackgroundImage, Color.FromArgb(0, 255, 0), 100);

            //Fast version
            this.Region = BitmapToRegion.getRegionFast((Bitmap)Properties.Resources.characterStateMask, Color.FromArgb(0, 255, 0), 100);
        }
Ejemplo n.º 3
0
        private void Init()
        {
            //Needed to make the custom shaped Form
            this.FormBorderStyle = FormBorderStyle.None;
            //this.Width = this.BackgroundImage.Width;
            //this.Height = this.BackgroundImage.Height;
            this.ClientSize = new Size(840, 519);

            //Slow version
            //this.Region = BitmapToRegion.getRegion((Bitmap)this.BackgroundImage, Color.FromArgb(0, 255, 0), 100);

            //Fast version
            this.Region = BitmapToRegion.getRegionFast((Bitmap)Properties.Resources.equipmentMask1, Color.FromArgb(0, 255, 0), 100);

            this.KeyPreview = true;

            /*pictureBoxARC1.Location = new Point(603, 208);//600, 207
             * pictureBoxARC2.Location = new Point(679, 208);
             * pictureBoxARC3.Location = new Point(753, 208);
             * pictureBoxARC4.Location = new Point(600, 346);
             * pictureBoxARC5.Location = new Point(676, 344);*/

            /*pictureBoxArcLvLabel1.Location = new Point(598, 268);
             * pictureBoxArcLv12.Location = new Point(633, 267);
             * pictureBoxArcLv11.Location = new Point(644, 267);
             *
             * pictureBoxArcLvLabel2.Location = new Point(674, 267);
             * pictureBoxArcLv21.Location = new Point(709, 267);
             * pictureBoxArcLv22.Location = new Point(720, 267);
             *
             * pictureBoxArcLvLabel3.Location = new Point(751, 267);
             * pictureBoxArcLv31.Location = new Point(786, 267);
             * pictureBoxArcLv32.Location = new Point(797, 267);
             *
             * pictureBoxArcLvLabel4.Location = new Point(597, 406);
             * pictureBoxArcLv41.Location = new Point(632, 406);
             * pictureBoxArcLv42.Location = new Point(643, 406);
             *
             * pictureBoxArcLvLabel5.Location = new Point(674, 406);
             * pictureBoxArcLv51.Location = new Point(709, 406);
             * pictureBoxArcLv52.Location = new Point(720, 406);*/

            characterData = new CharacterData();

            GetComponent();
            RefreshARC();
        }