private void OnWindowSelected(object userdata, string[] options, int selected)
        {
            selected--;
            GUIView gUIView;

            if (selected >= 0)
            {
                List <GUIView> list = (List <GUIView>)userdata;
                gUIView = list[selected];
            }
            else
            {
                gUIView = null;
            }
            if (this.m_Inspected != gUIView)
            {
                if (this.m_InstructionOverlayWindow != null)
                {
                    this.m_InstructionOverlayWindow.Close();
                }
                this.m_Inspected = gUIView;
                if (this.m_Inspected != null)
                {
                    GUIViewDebuggerHelper.DebugWindow(this.m_Inspected);
                    this.m_Inspected.Repaint();
                }
                this.m_ListViewState.row = -1;
                this.m_ListViewState.selectionChanged = true;
                this.m_Instruction = null;
            }
            base.Repaint();
        }
 private void OnSelectedInstructionChanged()
 {
     if (this.m_ListViewState.row >= 0)
     {
         if (this.m_Instruction == null)
         {
             this.m_Instruction = new GUIViewDebuggerWindow.GUIInstruction();
         }
         if (this.m_CachedinstructionInfo == null)
         {
             this.m_CachedinstructionInfo = new GUIViewDebuggerWindow.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.HighlightInstruction(this.m_Inspected, this.m_Instruction.rect, this.m_Instruction.usedGUIStyle);
     }
     else
     {
         this.m_Instruction           = null;
         this.m_CachedinstructionInfo = null;
         if (this.m_InstructionOverlayWindow != null)
         {
             this.m_InstructionOverlayWindow.Close();
         }
     }
 }
        private void OnWindowSelected(object userdata, string[] options, int selected)
        {
            --selected;
            GUIView guiView = selected < 0 ? (GUIView)null : ((List <GUIView>)userdata)[selected];

            if ((UnityEngine.Object) this.m_Inspected != (UnityEngine.Object)guiView)
            {
                if ((UnityEngine.Object) this.m_InstructionOverlayWindow != (UnityEngine.Object)null)
                {
                    this.m_InstructionOverlayWindow.Close();
                }
                this.m_Inspected = guiView;
                if ((UnityEngine.Object) this.m_Inspected != (UnityEngine.Object)null)
                {
                    GUIViewDebuggerHelper.DebugWindow(this.m_Inspected);
                    this.m_Inspected.Repaint();
                }
                this.m_ListViewState.row = -1;
                this.m_ListViewState.selectionChanged = true;
                this.m_Instruction = (GUIViewDebuggerWindow.GUIInstruction)null;
            }
            this.Repaint();
        }
 private void OnSelectedInstructionChanged()
 {
   if (this.m_ListViewState.row >= 0)
   {
     if (this.m_Instruction == null)
       this.m_Instruction = new GUIViewDebuggerWindow.GUIInstruction();
     if (this.m_CachedinstructionInfo == null)
       this.m_CachedinstructionInfo = new GUIViewDebuggerWindow.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 = (SerializedObject) null;
     this.m_CachedinstructionInfo.styleSerializedProperty = (SerializedProperty) null;
     this.GetSelectedStyleProperty(out this.m_CachedinstructionInfo.styleContainerSerializedObject, out this.m_CachedinstructionInfo.styleSerializedProperty);
     this.HighlightInstruction(this.m_Inspected, this.m_Instruction.rect, this.m_Instruction.usedGUIStyle);
   }
   else
   {
     this.m_Instruction = (GUIViewDebuggerWindow.GUIInstruction) null;
     this.m_CachedinstructionInfo = (GUIViewDebuggerWindow.CachedInstructionInfo) null;
     if (!((UnityEngine.Object) this.m_InstructionOverlayWindow != (UnityEngine.Object) null))
       return;
     this.m_InstructionOverlayWindow.Close();
   }
 }
 private void OnWindowSelected(object userdata, string[] options, int selected)
 {
   --selected;
   GUIView guiView = selected < 0 ? (GUIView) null : ((List<GUIView>) userdata)[selected];
   if ((UnityEngine.Object) this.m_Inspected != (UnityEngine.Object) guiView)
   {
     if ((UnityEngine.Object) this.m_InstructionOverlayWindow != (UnityEngine.Object) null)
       this.m_InstructionOverlayWindow.Close();
     this.m_Inspected = guiView;
     if ((UnityEngine.Object) this.m_Inspected != (UnityEngine.Object) null)
     {
       GUIViewDebuggerHelper.DebugWindow(this.m_Inspected);
       this.m_Inspected.Repaint();
     }
     this.m_ListViewState.row = -1;
     this.m_ListViewState.selectionChanged = true;
     this.m_Instruction = (GUIViewDebuggerWindow.GUIInstruction) null;
   }
   this.Repaint();
 }