private void DoInspectTypePopup()
        {
            EditorGUI.BeginChangeCheck();
            GUIViewDebuggerWindow.InstructionType instructionType = (GUIViewDebuggerWindow.InstructionType)EditorGUILayout.EnumPopup(this.m_InstructionType, EditorStyles.toolbarDropDown, new GUILayoutOption[0]);
            if (EditorGUI.EndChangeCheck())
            {
                this.m_InstructionType = instructionType;
                switch (this.m_InstructionType)
                {
                case GUIViewDebuggerWindow.InstructionType.Draw:
                    this.m_InstructionModeView = new StyleDrawInspectView(this);
                    break;

                case GUIViewDebuggerWindow.InstructionType.Clip:
                    this.m_InstructionModeView = new GUIClipInspectView(this);
                    break;

                case GUIViewDebuggerWindow.InstructionType.Layout:
                    this.m_InstructionModeView = new GUILayoutInspectView(this);
                    break;

                case GUIViewDebuggerWindow.InstructionType.Unified:
                    this.m_InstructionModeView = new UnifiedInspectView(this);
                    break;
                }
                this.m_InstructionModeView.UpdateInstructions();
            }
        }
Exemple #2
0
 private void DoInspectTypePopup()
 {
     EditorGUI.BeginChangeCheck();
     GUIViewDebuggerWindow.InstructionType instructionType = (GUIViewDebuggerWindow.InstructionType)EditorGUILayout.EnumPopup(this.m_InstructionType, EditorStyles.toolbarDropDown, new GUILayoutOption[0]);
     if (EditorGUI.EndChangeCheck())
     {
         this.instructionType = instructionType;
     }
 }
Exemple #3
0
        private void OnEnable()
        {
            base.titleContent = EditorGUIUtility.TrTextContent("GUI Inspector", null, null);
            GUIViewDebuggerHelper.onViewInstructionsChanged = (Action)Delegate.Combine(GUIViewDebuggerHelper.onViewInstructionsChanged, new Action(this.OnInspectedViewChanged));
            GUIView inspected = this.m_Inspected;

            this.inspected             = null;
            this.inspected             = inspected;
            this.m_InstructionModeView = null;
            this.instructionType       = this.m_InstructionType;
        }