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); } }
public override void UpdateInteract(Apoc3D.GameTime time) { if (state == NIGDialogState.Showing) { okButton.Update(time); } }
public override void UpdateInteract(Apoc3D.GameTime time) { if (state == NIGDialogState.Showing) { resumeButton.UpdateInteract(time); restartButton.UpdateInteract(time); exitButton.UpdateInteract(time); } }
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; } }
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; } } } }
public override void Update(Apoc3D.GameTime time) { base.Update(time); }
public override void Update(Apoc3D.GameTime time) { currentFrame++; base.Update(time); }
public override void UpdateInteract(Apoc3D.GameTime time) { base.UpdateInteract(time); exitButton.UpdateInteract(time); }