public List <EventDebuggerCallTrace> GetCalls(IPanel panel, EventDebuggerEventRecord evt = null) { List <EventDebuggerCallTrace> list = null; bool flag = this.m_EventCalledObjects.ContainsKey(panel); if (flag) { list = this.m_EventCalledObjects[panel]; } bool flag2 = evt != null && list != null; if (flag2) { List <EventDebuggerCallTrace> list2 = new List <EventDebuggerCallTrace>(); foreach (EventDebuggerCallTrace current in list) { bool flag3 = current.eventBase.eventId == evt.eventId; if (flag3) { list2.Add(current); } } list = list2; } return(list); }
public List <EventDebuggerPathTrace> GetPropagationPaths(IPanel panel, EventDebuggerEventRecord evt = null) { List <EventDebuggerPathTrace> list = null; if (m_EventPathObjects.ContainsKey(panel)) { list = m_EventPathObjects[panel]; } if ((evt != null) && (list != null)) { List <EventDebuggerPathTrace> filteredList = new List <EventDebuggerPathTrace>(); foreach (var pathObject in list) { if (pathObject.eventBase.eventId == evt.eventId) { filteredList.Add(pathObject); } } list = filteredList; } return(list); }
public List <EventDebuggerTrace> GetBeginEndProcessedEvents(IPanel panel, EventDebuggerEventRecord evt = null) { List <EventDebuggerTrace> list = null; if (m_EventProcessedEvents.ContainsKey(panel)) { list = m_EventProcessedEvents[panel]; } if ((evt != null) && (list != null)) { List <EventDebuggerTrace> filteredList = new List <EventDebuggerTrace>(); foreach (var defaultActionObject in list) { if (defaultActionObject.eventBase.eventId == evt.eventId) { filteredList.Add(defaultActionObject); } } list = filteredList; } return(list); }
public List <EventDebuggerTrace> GetBeginEndProcessedEvents(IPanel panel, EventDebuggerEventRecord evt = null) { if (!m_EventProcessedEvents.TryGetValue(panel, out var list)) { return(null); } if ((evt != null) && (list != null)) { List <EventDebuggerTrace> filteredList = new List <EventDebuggerTrace>(); foreach (var defaultActionObject in list) { if (defaultActionObject.eventBase.eventId == evt.eventId) { filteredList.Add(defaultActionObject); } } list = filteredList; } return(list); }
public List <EventDebuggerPathTrace> GetPropagationPaths(IPanel panel, EventDebuggerEventRecord evt = null) { if (!m_EventPathObjects.TryGetValue(panel, out var list)) { return(null); } if ((evt != null) && (list != null)) { List <EventDebuggerPathTrace> filteredList = new List <EventDebuggerPathTrace>(); foreach (var pathObject in list) { if (pathObject.eventBase.eventId == evt.eventId) { filteredList.Add(pathObject); } } list = filteredList; } return(list); }
public List <EventDebuggerCallTrace> GetCalls(IPanel panel, EventDebuggerEventRecord evt = null) { if (!m_EventCalledObjects.TryGetValue(panel, out var list)) { return(null); } if ((evt != null) && (list != null)) { List <EventDebuggerCallTrace> filteredList = new List <EventDebuggerCallTrace>(); foreach (var callObject in list) { if (callObject.eventBase.eventId == evt.eventId) { filteredList.Add(callObject); } } list = filteredList; } return(list); }
public List <EventDebuggerCallTrace> GetCalls(IPanel panel, EventDebuggerEventRecord evt = null) { List <EventDebuggerCallTrace> list = null; if (m_EventCalledObjects.ContainsKey(panel)) { list = m_EventCalledObjects[panel]; } if ((evt != null) && (list != null)) { List <EventDebuggerCallTrace> filteredList = new List <EventDebuggerCallTrace>(); foreach (var callObject in list) { if (callObject.eventBase.eventId == evt.eventId) { filteredList.Add(callObject); } } list = filteredList; } return(list); }
public void ReplayEvents(List <EventDebuggerEventRecord> eventBases) { bool flag = eventBases == null; if (!flag) { foreach (EventDebuggerEventRecord current in eventBases) { Event @event = new Event { button = current.button, clickCount = current.clickCount, modifiers = current.modifiers, mousePosition = current.mousePosition }; bool flag2 = current.eventTypeId == EventBase <MouseMoveEvent> .TypeId() && current.hasUnderlyingPhysicalEvent; if (flag2) { @event.type = EventType.MouseMove; this.panel.dispatcher.Dispatch(UIElementsUtility.CreateEvent(@event, EventType.MouseMove), this.panel, DispatchMode.Default); } else { bool flag3 = current.eventTypeId == EventBase <MouseDownEvent> .TypeId() && current.hasUnderlyingPhysicalEvent; if (flag3) { @event.type = EventType.MouseDown; this.panel.dispatcher.Dispatch(UIElementsUtility.CreateEvent(@event, EventType.MouseDown), this.panel, DispatchMode.Default); } else { bool flag4 = current.eventTypeId == EventBase <MouseUpEvent> .TypeId() && current.hasUnderlyingPhysicalEvent; if (flag4) { @event.type = EventType.MouseUp; this.panel.dispatcher.Dispatch(UIElementsUtility.CreateEvent(@event, EventType.MouseUp), this.panel, DispatchMode.Default); } else { bool flag5 = current.eventTypeId == EventBase <ContextClickEvent> .TypeId() && current.hasUnderlyingPhysicalEvent; if (flag5) { @event.type = EventType.ContextClick; this.panel.dispatcher.Dispatch(UIElementsUtility.CreateEvent(@event, EventType.ContextClick), this.panel, DispatchMode.Default); } else { bool flag6 = current.eventTypeId == EventBase <MouseEnterWindowEvent> .TypeId() && current.hasUnderlyingPhysicalEvent; if (flag6) { @event.type = EventType.MouseEnterWindow; this.panel.dispatcher.Dispatch(UIElementsUtility.CreateEvent(@event, EventType.MouseEnterWindow), this.panel, DispatchMode.Default); } else { bool flag7 = current.eventTypeId == EventBase <MouseLeaveWindowEvent> .TypeId() && current.hasUnderlyingPhysicalEvent; if (flag7) { @event.type = EventType.MouseLeaveWindow; this.panel.dispatcher.Dispatch(UIElementsUtility.CreateEvent(@event, EventType.MouseLeaveWindow), this.panel, DispatchMode.Default); } else { bool flag8 = current.eventTypeId == EventBase <WheelEvent> .TypeId() && current.hasUnderlyingPhysicalEvent; if (flag8) { @event.type = EventType.ScrollWheel; @event.delta = current.delta; this.panel.dispatcher.Dispatch(UIElementsUtility.CreateEvent(@event, EventType.ScrollWheel), this.panel, DispatchMode.Default); } else { bool flag9 = current.eventTypeId == EventBase <KeyDownEvent> .TypeId(); if (flag9) { @event.type = EventType.KeyDown; @event.character = current.character; @event.keyCode = current.keyCode; this.panel.dispatcher.Dispatch(UIElementsUtility.CreateEvent(@event, EventType.KeyDown), this.panel, DispatchMode.Default); } else { bool flag10 = current.eventTypeId == EventBase <KeyUpEvent> .TypeId(); if (flag10) { @event.type = EventType.KeyUp; @event.character = current.character; @event.keyCode = current.keyCode; this.panel.dispatcher.Dispatch(UIElementsUtility.CreateEvent(@event, EventType.KeyUp), this.panel, DispatchMode.Default); } else { bool flag11 = current.eventTypeId == EventBase <DragUpdatedEvent> .TypeId(); if (flag11) { @event.type = EventType.DragUpdated; this.panel.dispatcher.Dispatch(UIElementsUtility.CreateEvent(@event, EventType.DragUpdated), this.panel, DispatchMode.Default); } else { bool flag12 = current.eventTypeId == EventBase <DragPerformEvent> .TypeId(); if (flag12) { @event.type = EventType.DragPerform; this.panel.dispatcher.Dispatch(UIElementsUtility.CreateEvent(@event, EventType.DragPerform), this.panel, DispatchMode.Default); } else { bool flag13 = current.eventTypeId == EventBase <DragExitedEvent> .TypeId(); if (flag13) { @event.type = EventType.DragExited; this.panel.dispatcher.Dispatch(UIElementsUtility.CreateEvent(@event, EventType.DragExited), this.panel, DispatchMode.Default); } else { bool flag14 = current.eventTypeId == EventBase <ValidateCommandEvent> .TypeId(); if (flag14) { @event.type = EventType.ValidateCommand; @event.commandName = current.commandName; this.panel.dispatcher.Dispatch(UIElementsUtility.CreateEvent(@event, EventType.ValidateCommand), this.panel, DispatchMode.Default); } else { bool flag15 = current.eventTypeId == EventBase <ExecuteCommandEvent> .TypeId(); if (flag15) { @event.type = EventType.ExecuteCommand; @event.commandName = current.commandName; this.panel.dispatcher.Dispatch(UIElementsUtility.CreateEvent(@event, EventType.ExecuteCommand), this.panel, DispatchMode.Default); } else { bool flag16 = current.eventTypeId == EventBase <IMGUIEvent> .TypeId(); if (flag16) { string arg_4C9_0 = "Skipped IMGUI event ("; string arg_4C9_1 = current.eventBaseName; string arg_4C9_2 = "): "; EventDebuggerEventRecord expr_4BD = current; Debug.Log(arg_4C9_0 + arg_4C9_1 + arg_4C9_2 + ((expr_4BD != null) ? expr_4BD.ToString() : null)); continue; } string arg_4F4_0 = "Skipped event ("; string arg_4F4_1 = current.eventBaseName; string arg_4F4_2 = "): "; EventDebuggerEventRecord expr_4E8 = current; Debug.Log(arg_4F4_0 + arg_4F4_1 + arg_4F4_2 + ((expr_4E8 != null) ? expr_4E8.ToString() : null)); continue; } } } } } } } } } } } } } } string arg_51E_0 = "Replayed event ("; string arg_51E_1 = current.eventBaseName; string arg_51E_2 = "): "; Event expr_512 = @event; Debug.Log(arg_51E_0 + arg_51E_1 + arg_51E_2 + ((expr_512 != null) ? expr_512.ToString() : null)); } } }