Exemple #1
0
        private void OnWindowSelected(object userdata, string[] options, int selected)
        {
            GUIView view;

            selected--;
            if (selected >= 0)
            {
                List <GUIView> list = (List <GUIView>)userdata;
                view = list[selected];
            }
            else
            {
                view = null;
            }
            if (this.m_Inspected != view)
            {
                if (this.m_InstructionOverlayWindow != null)
                {
                    this.m_InstructionOverlayWindow.Close();
                }
                this.m_Inspected = view;
                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();
        }
Exemple #2
0
 private void OnSelectedInstructionChanged()
 {
     if (this.m_ListViewState.row >= 0)
     {
         if (this.m_Instruction == null)
         {
             this.m_Instruction = new GUIInstruction();
         }
         if (this.m_CachedinstructionInfo == null)
         {
             this.m_CachedinstructionInfo = new 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();
         }
     }
 }
 internal override void OnSelectedInstructionChanged(int index)
 {
     base.m_ListViewState.row = index;
     if (base.m_ListViewState.row >= 0)
     {
         if (this.m_Instruction == null)
         {
             this.m_Instruction = new GUIInstruction();
         }
         if (this.m_CachedinstructionInfo == null)
         {
             this.m_CachedinstructionInfo = new CachedInstructionInfo();
         }
         this.m_Instruction.rect = GUIViewDebuggerHelper.GetRectFromInstruction(base.m_ListViewState.row);
         this.m_Instruction.usedGUIStyle = GUIViewDebuggerHelper.GetStyleFromInstruction(base.m_ListViewState.row);
         this.m_Instruction.usedGUIContent = GUIViewDebuggerHelper.GetContentFromInstruction(base.m_ListViewState.row);
         this.m_Instruction.stackframes = GUIViewDebuggerHelper.GetManagedStackTrace(base.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);
         base.m_GuiViewDebuggerWindow.HighlightInstruction(base.m_GuiViewDebuggerWindow.m_Inspected, this.m_Instruction.rect, this.m_Instruction.usedGUIStyle);
     }
     else
     {
         this.m_Instruction = null;
         this.m_CachedinstructionInfo = null;
         if (base.m_GuiViewDebuggerWindow.InstructionOverlayWindow != null)
         {
             base.m_GuiViewDebuggerWindow.InstructionOverlayWindow.Close();
         }
     }
 }
 public override void Unselect()
 {
     base.Unselect();
     this.m_Instruction = null;
 }
 public override void Unselect()
 {
     base.Unselect();
     this.m_Instruction = null;
 }