internal override void OnSelectedInstructionChanged(int index) { this.m_ListViewState.row = index; if (this.m_ListViewState.row >= 0) { if (this.m_Instruction == null) { this.m_Instruction = new StyleDrawInspectView.GUIInstruction(); } if (this.m_CachedinstructionInfo == null) { this.m_CachedinstructionInfo = new StyleDrawInspectView.CachedInstructionInfo(); } this.m_Instruction.rect = GUIViewDebuggerHelper.GetRectFromInstruction(this.m_ListViewState.row); this.m_Instruction.usedGUIStyle = GUIViewDebuggerHelper.GetStyleFromInstruction(this.m_ListViewState.row); this.m_Instruction.usedGUIContent = GUIViewDebuggerHelper.GetContentFromInstruction(this.m_ListViewState.row); this.m_Instruction.stackframes = GUIViewDebuggerHelper.GetManagedStackTrace(this.m_ListViewState.row); this.m_CachedinstructionInfo.styleContainer.inspectedStyle = this.m_Instruction.usedGUIStyle; this.m_CachedinstructionInfo.styleContainerSerializedObject = null; this.m_CachedinstructionInfo.styleSerializedProperty = null; this.GetSelectedStyleProperty(out this.m_CachedinstructionInfo.styleContainerSerializedObject, out this.m_CachedinstructionInfo.styleSerializedProperty); this.m_GuiViewDebuggerWindow.HighlightInstruction(this.m_GuiViewDebuggerWindow.m_Inspected, this.m_Instruction.rect, this.m_Instruction.usedGUIStyle); } else { this.m_Instruction = null; this.m_CachedinstructionInfo = null; if (this.m_GuiViewDebuggerWindow.InstructionOverlayWindow != null) { this.m_GuiViewDebuggerWindow.InstructionOverlayWindow.Close(); } } }
internal override void OnSelectedInstructionChanged(int index) { base.listViewState.row = index; if (base.listViewState.row >= 0) { if (this.m_CachedInstructionInfo == null) { this.m_CachedInstructionInfo = new StyleDrawInspectView.CachedInstructionInfo(); } this.m_Instruction = this.m_Instructions[base.listViewState.row]; this.m_CachedInstructionInfo.styleContainer.inspectedStyle = this.m_Instruction.usedGUIStyle; this.m_CachedInstructionInfo.styleContainerSerializedObject = null; this.m_CachedInstructionInfo.styleSerializedProperty = null; this.GetSelectedStyleProperty(out this.m_CachedInstructionInfo.styleContainerSerializedObject, out this.m_CachedInstructionInfo.styleSerializedProperty); base.debuggerWindow.HighlightInstruction(base.debuggerWindow.inspected, this.m_Instruction.rect, this.m_Instruction.usedGUIStyle); } else { this.m_CachedInstructionInfo = null; base.debuggerWindow.ClearInstructionHighlighter(); } }
public override void ClearRowSelection() { base.ClearRowSelection(); this.m_CachedInstructionInfo = null; }