internal override string GetInstructionListName(int index) { IMGUIInstruction instruction = this.m_Instructions[index]; BaseInspectView inspectViewForType = this.GetInspectViewForType(instruction.type); return(inspectViewForType.GetInstructionListName(instruction.typeInstructionIndex)); }
internal override void OnDoubleClickInstruction(int index) { IMGUIInstruction instruction = this.m_Instructions[index]; BaseInspectView inspectViewForType = this.GetInspectViewForType(instruction.type); inspectViewForType.OnDoubleClickInstruction(instruction.typeInstructionIndex); }
internal override void DoDrawSelectedInstructionDetails(int index) { IMGUIInstruction instruction = this.m_Instructions[index]; BaseInspectView inspectViewForType = this.GetInspectViewForType(instruction.type); inspectViewForType.DoDrawSelectedInstructionDetails(instruction.typeInstructionIndex); }
internal override void DoDrawSelectedInstructionDetails(int selectedInstructionIndex) { IMGUIInstruction instruction = m_Instructions[selectedInstructionIndex]; var viewForType = GetInspectViewForType(instruction.type); viewForType.DoDrawSelectedInstructionDetails(instruction.typeInstructionIndex); }
protected override void DrawInspectedStacktrace(float availableWidth) { IMGUIInstruction instruction = m_Instructions[listViewState.row]; m_StacktraceScrollPos = EditorGUILayout.BeginScrollView(m_StacktraceScrollPos, GUIViewDebuggerWindow.Styles.stacktraceBackground, GUILayout.ExpandHeight(false)); DrawStackFrameList(instruction.stack, availableWidth); EditorGUILayout.EndScrollView(); }
internal override void OnDoubleClickInstruction(int index) { IMGUIInstruction instruction = m_Instructions[index]; var viewForType = GetInspectViewForType(instruction.type); viewForType.OnDoubleClickInstruction(instruction.typeInstructionIndex); }
public override void ShowOverlay() { if (this.HasSelectedinstruction()) { IMGUIInstruction instruction = this.m_Instructions[base.m_ListViewState.row]; this.GetInspectViewForType(instruction.type).ShowOverlay(); } }
internal override void OnSelectedInstructionChanged(int index) { base.m_ListViewState.row = index; IMGUIInstruction instruction = this.m_Instructions[base.m_ListViewState.row]; BaseInspectView inspectViewForType = this.GetInspectViewForType(instruction.type); inspectViewForType.OnSelectedInstructionChanged(instruction.typeInstructionIndex); this.ShowOverlay(); }
protected override void DrawInspectedStacktrace() { IMGUIInstruction instruction = this.m_Instructions[base.m_ListViewState.row]; GUILayoutOption[] options = new GUILayoutOption[] { GUILayout.ExpandHeight(false) }; this.m_StacktraceScrollPos = EditorGUILayout.BeginScrollView(this.m_StacktraceScrollPos, GUIViewDebuggerWindow.s_Styles.stacktraceBackground, options); base.DrawStackFrameList(instruction.stack); EditorGUILayout.EndScrollView(); }
protected override void DoDrawInstruction(ListViewElement el, int controlId) { IMGUIInstruction instruction = this.m_Instructions[el.row]; GUIContent content = GUIContent.Temp(this.GetInstructionListName(el.row)); Rect position = el.position; position.xMin += instruction.level * 10; GUIViewDebuggerWindow.s_Styles.listItemBackground.Draw(position, false, false, base.m_ListViewState.row == el.row, false); GUIViewDebuggerWindow.s_Styles.listItem.Draw(position, content, controlId, base.m_ListViewState.row == el.row); }
internal override string GetInstructionListName(int index) { IMGUIInstruction instruction = m_Instructions[index]; //string listDisplayName = instruction.type + " #" + instruction.typeInstructionIndex; //return listDisplayName; var viewForType = GetInspectViewForType(instruction.type); return(viewForType.GetInstructionListName(instruction.typeInstructionIndex)); }
public override void ShowOverlay() { if (!isInstructionSelected) { debuggerWindow.ClearInstructionHighlighter(); return; } IMGUIInstruction instruction = m_Instructions[listViewState.row]; var viewForType = GetInspectViewForType(instruction.type); viewForType.ShowOverlay(); }
protected override void DoDrawInstruction(ListViewElement el, int controlId) { IMGUIInstruction instruction = m_Instructions[el.row]; string listDisplayName = GetInstructionListName(el.row); GUIContent tempContent = GUIContent.Temp(listDisplayName); var rect = el.position; rect.xMin += instruction.level * 10; GUIViewDebuggerWindow.Styles.listItemBackground.Draw(rect, false, false, listViewState.row == el.row, false); GUIViewDebuggerWindow.Styles.listItem.Draw(rect, tempContent, controlId, listViewState.row == el.row); }
internal override void OnSelectedInstructionChanged(int index) { base.listViewState.row = index; if (base.listViewState.row >= 0) { IMGUIInstruction iMGUIInstruction = this.m_Instructions[base.listViewState.row]; BaseInspectView inspectViewForType = this.GetInspectViewForType(iMGUIInstruction.type); inspectViewForType.OnSelectedInstructionChanged(iMGUIInstruction.typeInstructionIndex); this.ShowOverlay(); } else { base.debuggerWindow.ClearInstructionHighlighter(); } }
internal override void OnSelectedInstructionChanged(int index) { listViewState.row = index; if (listViewState.row >= -0) { IMGUIInstruction instruction = m_Instructions[listViewState.row]; var viewForType = GetInspectViewForType(instruction.type); viewForType.OnSelectedInstructionChanged(instruction.typeInstructionIndex); ShowOverlay(); } else { debuggerWindow.ClearInstructionHighlighter(); } }