Example #1
0
        private void Animaton()
        {
            ptbLoading = new MyPictureBox(
                "ptbLoading", new Point((Width - 100) / 2, (Height - 74) / 2),
                new Size(100, 74), PictureBoxSizeMode.Zoom
                );

            myAnime = new CreateAnimation(ptbLoading, 20, MyStrings.adventureLoading, 30);
            myAnime.StartAnimationLoop();

            Controls.Add(ptbLoading);
        }
Example #2
0
        private void Weapons()
        {
            ptbLogo = new MyPictureBox(
                "ptbLogo", new Point((Width - 80) / 2, ((Height - 80) / 2) - 50),
                new Size(80, 80), MyColors.ORANGE,
                PictureBoxSizeMode.Zoom, 10,
                Color.Transparent
                );

            myAnime = new CreateAnimation(ptbLogo, 22, MyStrings.weaponsPath, 1);
            myAnime.StartAnimationLoop();
            Controls.Add(ptbLogo);
        }