fBaseXtensions.Game.UI.FindGameProhibitingElements C# (CSharp) Method

FindGameProhibitingElements() static private method

static private FindGameProhibitingElements ( ) : UIElement
return UIElement
		internal static UIElement FindGameProhibitingElements()
		{
			if (Game.Skills_MainExitButton != null && ValidateUIElement(Game.Skills_MainExitButton))
				return Game.Skills_MainExitButton;
			if (Game.AchievementsExitButton != null && ValidateUIElement(Game.AchievementsExitButton))
				return Game.AchievementsExitButton;
			if (GameMenuEscape.ResumeGame != null && ValidateUIElement(GameMenuEscape.ResumeGame))
				return GameMenuEscape.ResumeGame;
			FunkyGame.Profile.CheckCurrentProfileBehavior(true);
			if (WaypointMap.WaypointMap_CloseButton != null && !FunkyGame.Profile.CurrentProfileBehaviorType.HasFlag(Profile.ProfileBehaviorTypes.UseWaypoint) &&  ValidateUIElement(WaypointMap.WaypointMap_CloseButton))
				return WaypointMap.WaypointMap_CloseButton;
			if (WaypointMap.WaypointMap_Local != null && ValidateUIElement(WaypointMap.WaypointMap_Local))
				return WaypointMap.WaypointMap_Local;
			return null;
		}