Ejemplo n.º 1
0
 public override void Update(Apoc3D.GameTime time)
 {
     if (state == NIGDialogState.MovingOut)
     {
         showPrg -= time.ElapsedGameTimeSeconds * 8;
         if (showPrg < 0)
         {
             showPrg = 0;
             state   = NIGDialogState.Hiding;
         }
     }
     else if (state == NIGDialogState.MovingIn)
     {
         showPrg += time.ElapsedGameTimeSeconds * 8;
         if (showPrg > 1)
         {
             showPrg = 1;
             state   = NIGDialogState.Showing;
         }
     }
     if (state == NIGDialogState.Showing)
     {
         resumeButton.Update(time);
         restartButton.Update(time);
         exitButton.Update(time);
     }
 }
Ejemplo n.º 2
0
 public override void UpdateInteract(Apoc3D.GameTime time)
 {
     if (state == NIGDialogState.Showing)
     {
         okButton.Update(time);
     }
 }
Ejemplo n.º 3
0
 public override void UpdateInteract(Apoc3D.GameTime time)
 {
     if (state == NIGDialogState.Showing)
     {
         resumeButton.UpdateInteract(time);
         restartButton.UpdateInteract(time);
         exitButton.UpdateInteract(time);
     }
 }
Ejemplo n.º 4
0
        public override void Update(Apoc3D.GameTime time)
        {
            if (state == NIGDialogState.MovingOut)
            {
                showPrg -= time.ElapsedGameTimeSeconds * 8;
                if (showPrg < 0)
                {
                    showPrg = 0;
                    state   = NIGDialogState.Hiding;
                }
            }
            else if (state == NIGDialogState.MovingIn)
            {
                showPrg += time.ElapsedGameTimeSeconds * 8;
                if (showPrg > 1)
                {
                    showPrg = 1;
                    state   = NIGDialogState.Showing;
                }
            }
            if (state == NIGDialogState.Showing)
            {
                float dt = (float)time.ElapsedGameTime.TotalSeconds;
                if (clearProgress > 0)
                {
                    clearProgress -= dt;
                }
                else
                {
                    clearProgress = 0;
                }

                replayButton.Update(time);
                backButton.Update(time);
                nextButton.Update(time);
            }
            if (state == NIGDialogState.Hiding)
            {
                clearProgress = 1.8f;
            }
        }
Ejemplo n.º 5
0
        public override void UpdateInteract(Apoc3D.GameTime time)
        {
            base.UpdateInteract(time);

            if (MouseInput.IsMouseUpLeft)
            {
                Player player = gameLogic.LocalHumanPlayer;

                PlayerArea area = player.Area;
                for (int i = 0; i < area.CityCount; i++)
                {
                    if (area.GetCity(i).IsHomeCity)
                    {
                        scene.Camera.Longitude = MathEx.Degree2Radian(area.GetCity(i).Longitude);
                        scene.Camera.Latitude  = MathEx.Degree2Radian(area.GetCity(i).Latitude);

                        return;
                    }
                }
            }
        }
Ejemplo n.º 6
0
 public override void Update(Apoc3D.GameTime time)
 {
     base.Update(time);
 }
Ejemplo n.º 7
0
 public override void Update(Apoc3D.GameTime time)
 {
     currentFrame++;
     base.Update(time);
 }
Ejemplo n.º 8
0
 public override void UpdateInteract(Apoc3D.GameTime time)
 {
     base.UpdateInteract(time);
     exitButton.UpdateInteract(time);
 }