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

RunTimeEvents() protected method

protected RunTimeEvents ( int time ) : bool
time int
return bool
		protected virtual bool RunTimeEvents(int time)
		{
				if(this.Disposed == true)
				{
					throw new ObjectDisposedException(this.GetType().Name);
				}

			if((time - _lastTimeRun) < idE.UserCommandMillseconds)
			{
				return false;
			}

			_lastTimeRun = time;

			UpdateVariables();

			if((_expressionRegisters.Count > 0) && (_ops.Count > 0))
			{
				EvaluateRegisters();
			}

			if((_flags & WindowFlags.InTransition) == WindowFlags.InTransition)
			{
				Transition();
			}

			Time();

			// renamed ON_EVENT to ON_FRAME
			RunScript(ScriptName.Frame);

			foreach(idWindow child in _children)
			{
				child.RunTimeEvents(time);
			}

			return true;
		}