コード例 #1
0
        private void InitLoadingSign()
        {
            Vector2 auxSize;

            _LoadSign.Texture = GetSign("Loading9.png");
            _LoadWord.Texture = GetSign("LoadingWord.png");
            var camera = GuiController.Instance.ThirdPersonCamera;

            camera.setCamera(Vector3.Empty, 0, -200);
            camera.Enable = true;

            _BlackQuad.updateValues();

            auxSize = new Vector2(35, 15);

            _LoadWord.Size     = new Vector2(45, 10);
            _LoadWord.Position = new Vector3(_LoadWord.Size.X / 2 + (auxSize.X * (-3)), -40, -10);

            for (int i = 0; i < 6; i++)
            {
                _LoadingAnimations[i] = new AnimatedQuad()
                {
                    Texture   = Current.GetParticle("RedArrows.png"),
                    FrameSize = new Size(512, 256),

                    Size         = auxSize,
                    Position     = new Vector3(auxSize.X / 2 + (auxSize.X * (i - 3)), -55, -10),
                    FirstFrame   = 7,
                    CurrentFrame = 7,
                    FrameRate    = 3,
                    TotalFrames  = 0,
                };

                _LoadingAnimations[i].Start();
            }
        }
コード例 #2
0
ファイル: Game.cs プロジェクト: GastonTS/ElElementoPerfecto
        private void InitLoadingSign()
        {
            Vector2 auxSize;
            _LoadSign.Texture = GetSign("Loading9.png");
            _LoadWord.Texture = GetSign("LoadingWord.png");
            var camera = GuiController.Instance.ThirdPersonCamera;
            camera.setCamera(Vector3.Empty, 0, -200);
            camera.Enable = true;

            _BlackQuad.updateValues();

            auxSize = new Vector2(35, 15);

            _LoadWord.Size = new Vector2(45, 10);
            _LoadWord.Position = new Vector3(_LoadWord.Size.X / 2 + (auxSize.X * (-3)), -40, -10);

            for (int i = 0; i < 6; i++)
            {
                _LoadingAnimations[i] = new AnimatedQuad()
                {
                    Texture = Current.GetParticle("RedArrows.png"),
                    FrameSize = new Size(512, 256),

                    Size = auxSize,
                    Position = new Vector3(auxSize.X / 2 + (auxSize.X * (i - 3)), -55, -10),
                    FirstFrame = 7,
                    CurrentFrame = 7,
                    FrameRate = 3,
                    TotalFrames = 0,
                };

                _LoadingAnimations[i].Start();
            }
        }