bool ScreenElementsContains(Vector2 point) { if (gameSpeedButton.Contains(point)) { return(true); } else if (miniMap.Contains(point)) { return(true); } else if (SetupPhase && ShipSelectionRect.Contains(point)) { return(true); } else if (PlayerShipManager.HasSomethingSelected() && shipInfoPanel.ContainsMouse(point)) { return(true); } else if (fleetCombatInfoPanel.Contains(point)) { return(true); } return(false); }
bool ScreenElementsContains(Vector2 point) { if (miniMap.Contains(point) || gameSpeedButton.Contains(point)) { return(true); } else if (screenState == ScreenState.setup && SetupPanel.Contains(point)) { return(true); } else if (screenState == ScreenState.play && shipInfoPanel.ContainsMouse(point) && PlayerShipManager.HasSomethingSelected()) { return(true); } return(false); }