public override void ShowOverlay()
 {
     if (this.HasSelectedinstruction())
     {
         IMGUIClipInstruction iMGUIClipInstruction = this.m_ClipList[this.m_ListViewState.row];
         this.m_GuiViewDebuggerWindow.HighlightInstruction(this.m_GuiViewDebuggerWindow.m_Inspected, iMGUIClipInstruction.unclippedScreenRect, GUIStyle.none);
     }
 }
        protected override void DrawInspectedStacktrace()
        {
            IMGUIClipInstruction instruction = this.m_ClipList[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.pushStacktrace);
            EditorGUILayout.EndScrollView();
        }
Exemplo n.º 3
0
        internal override void DoDrawSelectedInstructionDetails(int selectedInstructionIndex)
        {
            IMGUIClipInstruction iMGUIClipInstruction = this.m_ClipList[selectedInstructionIndex];

            base.DoSelectableInstructionDataField("RenderOffset", iMGUIClipInstruction.renderOffset.ToString());
            base.DoSelectableInstructionDataField("ResetOffset", iMGUIClipInstruction.resetOffset.ToString());
            base.DoSelectableInstructionDataField("screenRect", iMGUIClipInstruction.screenRect.ToString());
            base.DoSelectableInstructionDataField("scrollOffset", iMGUIClipInstruction.scrollOffset.ToString());
        }
        protected override void DoDrawInstruction(ListViewElement el, int id)
        {
            IMGUIClipInstruction instruction = this.m_ClipList[el.row];
            GUIContent           content     = GUIContent.Temp(this.GetInstructionListName(el.row));
            Rect position = el.position;

            position.xMin += instruction.level * 12;
            GUIViewDebuggerWindow.s_Styles.listItemBackground.Draw(el.position, false, false, base.m_ListViewState.row == el.row, false);
            GUIViewDebuggerWindow.s_Styles.listItem.Draw(position, content, id, base.m_ListViewState.row == el.row);
        }
Exemplo n.º 5
0
 public override void ShowOverlay()
 {
     if (!this.isInstructionSelected)
     {
         base.debuggerWindow.ClearInstructionHighlighter();
     }
     else
     {
         IMGUIClipInstruction iMGUIClipInstruction = this.m_ClipList[base.listViewState.row];
         base.debuggerWindow.HighlightInstruction(base.debuggerWindow.inspected, iMGUIClipInstruction.unclippedScreenRect, GUIStyle.none);
     }
 }
        internal override void DoDrawSelectedInstructionDetails(int index)
        {
            IMGUIClipInstruction iMGUIClipInstruction = this.m_ClipList[index];

            GUILayout.Label("RenderOffset:", new GUILayoutOption[0]);
            GUILayout.Label(iMGUIClipInstruction.renderOffset.ToString(), new GUILayoutOption[0]);
            GUILayout.Label("ResetOffset:", new GUILayoutOption[0]);
            GUILayout.Label(iMGUIClipInstruction.resetOffset.ToString(), new GUILayoutOption[0]);
            GUILayout.Label("screenRect:", new GUILayoutOption[0]);
            GUILayout.Label(iMGUIClipInstruction.screenRect.ToString(), new GUILayoutOption[0]);
            GUILayout.Label("scrollOffset:", new GUILayoutOption[0]);
            GUILayout.Label(iMGUIClipInstruction.scrollOffset.ToString(), new GUILayoutOption[0]);
        }
        internal override string GetInstructionListName(int index)
        {
            IMGUIClipInstruction instruction = this.m_ClipList[index];

            StackFrame[] pushStacktrace = instruction.pushStacktrace;
            if (pushStacktrace.Length == 0)
            {
                return("Empty");
            }
            int        interestingFrameIndex = this.GetInterestingFrameIndex(pushStacktrace);
            StackFrame frame = pushStacktrace[interestingFrameIndex];

            return(frame.methodName);
        }