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

CloseGameProhibitingElements() static private method

static private CloseGameProhibitingElements ( ) : RunStatus
return RunStatus
		internal static RunStatus CloseGameProhibitingElements()
		{
			var uie = FindGameProhibitingElements();
			if (uie!=null)
			{
				if (LastClickedElement==uie.Hash)
				{
					Logger.DBLog.InfoFormat("Failed to close Game Prohibiting Element {0}", uie.Name);
					UIManager.CloseAllOpenFrames();
					return RunStatus.Running;
				}
				
				Logger.DBLog.InfoFormat("Closing Game Prohibiting Element {0}", uie.Name);

				LastClickedElement = uie.Hash;
				uie.Click();

				return RunStatus.Running;
			}

			LastClickedElement = 0;
			ClosingUIElements = false;
			return RunStatus.Success;
		}