示例#1
0
        private void FillImageList()
        {
            var imageSize1 = ilSets.ImageSize;
            var width1     = imageSize1.Width;

            imageSize1 = ilSets.ImageSize;
            var height1 = imageSize1.Height;

            using var extendedBitmap = new ExtendedBitmap(width1, height1);
            ilSets.Images.Clear();
            var num = DatabaseAPI.Database.EnhancementSets.Count - 1;

            for (var index = 0; index <= num; ++index)
            {
                if (DatabaseAPI.Database.EnhancementSets[index].ImageIdx > -1)
                {
                    extendedBitmap.Graphics.Clear(Color.White);
                    var graphics = extendedBitmap.Graphics;
                    I9Gfx.DrawEnhancementSet(ref graphics, DatabaseAPI.Database.EnhancementSets[index].ImageIdx);
                    ilSets.Images.Add(extendedBitmap.Bitmap);
                }
                else
                {
                    var images     = ilSets.Images;
                    var imageSize2 = ilSets.ImageSize;
                    var width2     = imageSize2.Width;
                    imageSize2 = ilSets.ImageSize;
                    var height2 = imageSize2.Height;
                    var bitmap  = new Bitmap(width2, height2);
                    images.Add(bitmap);
                }
            }
        }
示例#2
0
        public void FillImageList()
        {
            Size imageSize1 = this.ilSets.ImageSize;
            int  width1     = imageSize1.Width;

            imageSize1 = this.ilSets.ImageSize;
            int            height1        = imageSize1.Height;
            ExtendedBitmap extendedBitmap = new ExtendedBitmap(width1, height1);

            this.ilSets.Images.Clear();
            int num = DatabaseAPI.Database.EnhancementSets.Count - 1;

            for (int index = 0; index <= num; ++index)
            {
                if (DatabaseAPI.Database.EnhancementSets[index].ImageIdx > -1)
                {
                    extendedBitmap.Graphics.Clear(Color.White);
                    Graphics graphics = extendedBitmap.Graphics;
                    I9Gfx.DrawEnhancementSet(ref graphics, DatabaseAPI.Database.EnhancementSets[index].ImageIdx);
                    this.ilSets.Images.Add((Image)extendedBitmap.Bitmap);
                }
                else
                {
                    ImageList.ImageCollection images = this.ilSets.Images;
                    Size imageSize2 = this.ilSets.ImageSize;
                    int  width2     = imageSize2.Width;
                    imageSize2 = this.ilSets.ImageSize;
                    int    height2 = imageSize2.Height;
                    Bitmap bitmap  = new Bitmap(width2, height2);
                    images.Add((Image)bitmap);
                }
            }
        }
示例#3
0
        void FillImageList()
        {
            ExtendedBitmap extendedBitmap = new ExtendedBitmap(this.ilSet.ImageSize.Width, this.ilSet.ImageSize.Height);

            this.ilSet.Images.Clear();
            int num = MidsContext.Character.CurrentBuild.SetBonus.Count - 1;

            for (int index = 0; index <= num; index++)
            {
                int num2 = MidsContext.Character.CurrentBuild.SetBonus[index].SetInfo.Length - 1;
                for (int index2 = 0; index2 <= num2; index2++)
                {
                    if (MidsContext.Character.CurrentBuild.SetBonus[index].SetInfo[index2].SetIDX > -1)
                    {
                        EnhancementSet enhancementSet = DatabaseAPI.Database.EnhancementSets[MidsContext.Character.CurrentBuild.SetBonus[index].SetInfo[index2].SetIDX];
                        if (enhancementSet.ImageIdx > -1)
                        {
                            extendedBitmap.Graphics.Clear(Color.White);
                            Graphics graphics = extendedBitmap.Graphics;
                            I9Gfx.DrawEnhancementSet(ref graphics, enhancementSet.ImageIdx);
                            this.ilSet.Images.Add(extendedBitmap.Bitmap);
                        }
                        else
                        {
                            this.ilSet.Images.Add(new Bitmap(this.ilSet.ImageSize.Width, this.ilSet.ImageSize.Height));
                        }
                    }
                }
            }
        }
示例#4
0
        private void FillImageList()
        {
            var imageSize1 = ilSet.ImageSize;
            var width1     = imageSize1.Width;

            imageSize1 = ilSet.ImageSize;
            var height1        = imageSize1.Height;
            var extendedBitmap = new ExtendedBitmap(width1, height1);

            ilSet.Images.Clear();
            var setBonusCount = MidsContext.Character.CurrentBuild.SetBonus.Count - 1;

            for (var index1 = 0; index1 <= setBonusCount; ++index1)
            {
                var num2 = MidsContext.Character.CurrentBuild.SetBonus[index1].SetInfo.Length - 1;
                for (var index2 = 0; index2 <= num2; ++index2)
                {
                    if (MidsContext.Character.CurrentBuild.SetBonus[index1].SetInfo[index2].SetIDX <= -1)
                    {
                        continue;
                    }
                    var enhancementSet =
                        DatabaseAPI.Database.EnhancementSets[
                            MidsContext.Character.CurrentBuild.SetBonus[index1].SetInfo[index2].SetIDX];
                    if (enhancementSet.ImageIdx > -1)
                    {
                        extendedBitmap.Graphics.Clear(Color.White);
                        var graphics = extendedBitmap.Graphics;
                        I9Gfx.DrawEnhancementSet(ref graphics, enhancementSet.ImageIdx);
                        ilSet.Images.Add(extendedBitmap.Bitmap);
                    }
                    else
                    {
                        var images     = ilSet.Images;
                        var imageSize2 = ilSet.ImageSize;
                        var width2     = imageSize2.Width;
                        imageSize2 = ilSet.ImageSize;
                        var height2 = imageSize2.Height;
                        var bitmap  = new Bitmap(width2, height2);
                        images.Add(bitmap);
                    }
                }
            }
        }
        void FillImageList()
        {
            Size imageSize1 = this.ilSet.ImageSize;
            int  width1     = imageSize1.Width;

            imageSize1 = this.ilSet.ImageSize;
            int            height1        = imageSize1.Height;
            ExtendedBitmap extendedBitmap = new ExtendedBitmap(width1, height1);

            this.ilSet.Images.Clear();
            int setBonusCount = MidsContext.Character.CurrentBuild.SetBonus.Count - 1;

            for (int index1 = 0; index1 <= setBonusCount; ++index1)
            {
                int num2 = MidsContext.Character.CurrentBuild.SetBonus[index1].SetInfo.Length - 1;
                for (int index2 = 0; index2 <= num2; ++index2)
                {
                    if (MidsContext.Character.CurrentBuild.SetBonus[index1].SetInfo[index2].SetIDX > -1)
                    {
                        EnhancementSet enhancementSet = DatabaseAPI.Database.EnhancementSets[MidsContext.Character.CurrentBuild.SetBonus[index1].SetInfo[index2].SetIDX];
                        if (enhancementSet.ImageIdx > -1)
                        {
                            extendedBitmap.Graphics.Clear(Color.White);
                            Graphics graphics = extendedBitmap.Graphics;
                            I9Gfx.DrawEnhancementSet(ref graphics, enhancementSet.ImageIdx);
                            this.ilSet.Images.Add(extendedBitmap.Bitmap);
                        }
                        else
                        {
                            ImageList.ImageCollection images = this.ilSet.Images;
                            Size imageSize2 = this.ilSet.ImageSize;
                            int  width2     = imageSize2.Width;
                            imageSize2 = this.ilSet.ImageSize;
                            int    height2 = imageSize2.Height;
                            Bitmap bitmap  = new Bitmap(width2, height2);
                            images.Add(bitmap);
                        }
                    }
                }
            }
        }
示例#6
0
        public void FillImageList()
        {
            ExtendedBitmap extendedBitmap = new ExtendedBitmap(this.ilSets.ImageSize.Width, this.ilSets.ImageSize.Height);

            this.ilSets.Images.Clear();
            int num = DatabaseAPI.Database.EnhancementSets.Count - 1;

            for (int index = 0; index <= num; index++)
            {
                EnhancementSet enhancementSet = DatabaseAPI.Database.EnhancementSets[index];
                if (enhancementSet.ImageIdx > -1)
                {
                    extendedBitmap.Graphics.Clear(Color.White);
                    Graphics graphics = extendedBitmap.Graphics;
                    I9Gfx.DrawEnhancementSet(ref graphics, DatabaseAPI.Database.EnhancementSets[index].ImageIdx);
                    this.ilSets.Images.Add(extendedBitmap.Bitmap);
                }
                else
                {
                    this.ilSets.Images.Add(new Bitmap(this.ilSets.ImageSize.Width, this.ilSets.ImageSize.Height));
                }
            }
        }