HandleEvent() public méthode

public HandleEvent ( SystemEvent e, int time ) : string
e SystemEvent
time int
Résultat string
Exemple #1
0
		public void SetUserInterface(idUserInterface ui, /* TODO: HandleGuiCommand_t*/ object handle)
		{
			_guiActive = ui;
			_guiHandle = handle;

			if(_guiMsgRestore != null)
			{
				idConsole.DeveloperWriteLine("idSession::SetUserInterface: cleared an active message box");
				_guiMsgRestore = null;
			}

			if(_guiActive == null)
			{
				return;
			}

			if(_guiActive == _guiMainMenu)
			{
				idConsole.Warning("TODO: SetSaveGameGuiVars();");
				SetMainMenuVariables();
			}
			else if(_guiActive == _guiRestartMenu)
			{
				idConsole.Warning("TODO: SetSaveGameGuiVars();");
			}

			_guiActive.HandleEvent(new SystemEvent(SystemEventType.None), idE.System.FrameTime);
			_guiActive.Activate(true, idE.System.FrameTime);
		}