コード例 #1
0
ファイル: Tutorial.cs プロジェクト: yuri410/lrvbsvnicg
        public override void Update(GameTime time)
        {
            mousePosition.X = MouseInput.X;
            mousePosition.Y = MouseInput.Y;


            if (state == NIGDialogState.MovingIn)
            {
                showPrg += time.ElapsedGameTimeSeconds * 4;
                if (showPrg > 1)
                {
                    showPrg = 1;
                    state   = NIGDialogState.Showing;
                }
            }
            else if (state == NIGDialogState.MovingOut)
            {
                showPrg -= time.ElapsedGameTimeSeconds * 4;
                if (showPrg < 0)
                {
                    showPrg = 0;
                    state   = NIGDialogState.Hiding;
                    parent.Back();
                }
            }

            if (state == NIGDialogState.Showing)
            {
                nextButton.Update(time);
                prevButton.Update(time);
                exitButton.Update(time);
            }
        }
コード例 #2
0
ファイル: CreditScreen.cs プロジェクト: yuri410/lrvbsvnicg
        void Back_Click(object sender, MouseButtonFlags btn)
        {
            Reset();

            parent.Back();
        }