void ManipulateScale(GameTime gameTime) { switch (currentState) { case MenuStateEnum.Maximizing: transition.Increase(gameTime); break; case MenuStateEnum.Minimizing: transition.Decrease(gameTime); break; } if (transition.Value == 0.0f) { if (pendingWindow == null) { currentState = MenuStateEnum.Hidden; } else { activeWindow = pendingWindow; activeWindow.IsActive = true; this.currentState = MenuStateEnum.Maximizing; } } else if (transition.Value == transition.MaxValue) { currentState = MenuStateEnum.Focused; } camera.Zoom = transition.Value; }
void UpdateTransparency(GameTime gameTime) { if (Input.InputHandler.MouseRectangle.Intersects(this.SceneRectangle)) { bgTransparency.Decrease(gameTime); fontTransparency.Decrease(gameTime); } else { bgTransparency.Increase(gameTime); fontTransparency.Increase(gameTime); } }