GetInstructionCount() private method

private GetInstructionCount ( ) : int
return int
 private void ShowDrawInstructions()
 {
     if (this.m_Inspected == null)
     {
         return;
     }
     this.m_ListViewState.totalRows = GUIViewDebuggerHelper.GetInstructionCount();
     if (this.m_QueuedPointInspection)
     {
         this.m_ListViewState.row = this.FindInstructionUnderPoint(this.m_PointToInspect);
         this.m_ListViewState.selectionChanged = true;
         this.m_QueuedPointInspection          = false;
         this.m_Instruction.Reset();
     }
     SplitterGUILayout.BeginHorizontalSplit(this.m_InstructionListDetailSplitter, new GUILayoutOption[0]);
     this.DrawInstructionList();
     EditorGUILayout.BeginVertical(new GUILayoutOption[0]);
     if (this.m_ListViewState.selectionChanged)
     {
         this.OnSelectedInstructionChanged();
     }
     this.DrawSelectedInstructionDetails();
     EditorGUILayout.EndVertical();
     SplitterGUILayout.EndHorizontalSplit();
 }
Exemplo n.º 2
0
        private int FindInstructionUnderPoint(Vector2 point)
        {
            int instructionCount = GUIViewDebuggerHelper.GetInstructionCount();

            for (int i = 0; i < instructionCount; i++)
            {
                if (GUIViewDebuggerHelper.GetRectFromInstruction(i).Contains(point))
                {
                    return(i);
                }
            }
            return(-1);
        }
Exemplo n.º 3
0
 protected override int GetInstructionCount()
 {
     return(GUIViewDebuggerHelper.GetInstructionCount());
 }
 protected override int GetInstructionCount() =>
 GUIViewDebuggerHelper.GetInstructionCount();