idTech4.UI.idWindow.Activate C# (CSharp) Method

Activate() public method

public Activate ( bool activate, string &act ) : void
activate bool
act string
return void
		public virtual void Activate(bool activate, ref string act)
		{
			if(this.Disposed == true)
			{
				throw new ObjectDisposedException(this.GetType().Name);
			}

			// make sure win vars are updated before activation
			UpdateVariables();
			RunScript((activate == true) ? ScriptName.Activate : ScriptName.Deactivate);

			foreach(idWindow child in _children)
			{
				child.Activate(activate, ref act);
			}

			if(act.Length > 0)
			{
				act += " ; ";
			}
		}