示例#1
0
        public override void InitState()
        {
            base.InitState();

            FXGrid = new Vivid.PostProcess.Processes.PPVirtualGrid();

            SUI = new UI();

            vid = new VideoForm().Set(0, 0, AppInfo.W, AppInfo.H) as VideoForm;
            Console.WriteLine("Play video");
            vid.SetVideo("Corona/Video/intro2.mov");
            SUI.Root      = vid;
            SUI.FadeUI    = false;
            SUI.FadeAlpha = 0.0f;
            vid.Click     = (b) =>
            {
                vid.Stop();
                VividApp.PushState(new ScopeNineMenu());
            };


            var lab = new LabelForm().Set(AppInfo.W / 2 - 110, AppInfo.H - 80, 300, 30, "PRESS START TO CONTINUE") as LabelForm;

            vid.Add(lab);
        }
        public override void InitState()
        {
            SUI    = new UI();
            FXGrid = new Vivid.PostProcess.Processes.PPVirtualGrid();

            var vid = new VideoForm().Set(0, 0, AppInfo.W, AppInfo.H) as VideoForm;

            vid.SetVideo("Corona/Video/menuseq3.mov");
            SUI.Root = vid;

            vid.Click = (b) =>
            {
                //    vid.Pause();
                //   VividApp.PushState(new ScopeNineMenu());
            };

            var newGame = new ButtonForm().Set(AppInfo.W / 2 - 140, AppInfo.H - 160, 280, 30, "Begin Assignment") as ButtonForm;
            var config  = new ButtonForm().Set(AppInfo.W / 2 - 140, AppInfo.H - 120, 280, 30, "Configure Environment") as ButtonForm;
            var exit    = new ButtonForm().Set(AppInfo.W / 2 - 140, AppInfo.H - 80, 280, 30, "Exit") as ButtonForm;

            vid.Add(newGame);
            vid.Add(config);
            vid.Add(exit);

            var powerDown = Vivid.Audio.Songs.LoadSound("Corona/Sound/Misc/powerdown2.mp3");

            newGame.Click = (b) =>
            {
                vid.Stop();
                VividApp.PushState(new InGamePlatform());
            };

            if (Vivid.Input.XIn.Start())
            {
                vid.Stop();
                VividApp.PushState(new InGamePlatform());
            }

            exit.Click = (b) =>
            {
                vid.StopAudio();
                powerSnd      = Vivid.Audio.Songs.PlaySource(powerDown);
                SUI.FadeUI    = true;
                SUI.FadeAlpha = 1.0f;
            };
        }
示例#3
0
        public override void UpdateState()
        {
            base.UpdateState();
            //return;
            Texture2D.UpdateLoading();
            SUI.Update();
            Console.WriteLine("Testing!");
            if (Vivid.Input.XIn.Start())
            {
                while (Vivid.Input.XIn.Start())
                {
                    System.Threading.Thread.Sleep(50);
                }

                vid.Stop();
                VividApp.PushState(new ScopeNineMenu());
            }
        }