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();
            }
        }
        private void DoInspectTypePopup()
        {
            EditorGUI.BeginChangeCheck();
            InstructionType type = (InstructionType) EditorGUILayout.EnumPopup(this.m_InstructionType, EditorStyles.toolbarDropDown, new GUILayoutOption[0]);
            if (EditorGUI.EndChangeCheck())
            {
                this.m_InstructionType = type;
                switch (this.m_InstructionType)
                {
                    case InstructionType.Draw:
                        this.m_InstructionModeView = new StyleDrawInspectView(this);
                        break;

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

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

                    case InstructionType.Unified:
                        this.m_InstructionModeView = new UnifiedInspectView(this);
                        break;
                }
                this.m_InstructionModeView.UpdateInstructions();
            }
        }
 protected GUIViewDebuggerWindow()
 {
     m_InstructionModeView        = new StyleDrawInspectView(this);
     m_Highlighter                = new ElementHighlighter();
     m_StylePicker                = new StylePicker(this, m_Highlighter);
     m_StylePicker.CanInspectView = CanInspectView;
 }
 public GUIViewDebuggerWindow()
 {
     float[] relativeSizes = new float[] { 30f, 70f };
     int[] minSizes = new int[] { 0x20, 0x20 };
     this.m_InstructionListDetailSplitter = new SplitterState(relativeSizes, minSizes, null);
     this.m_InstructionModeView = new StyleDrawInspectView(this);
 }
 public GUIViewDebuggerWindow()
 {
     float[] relativeSizes = new float[] { 30f, 70f };
     int[]   minSizes      = new int[] { 0x20, 0x20 };
     this.m_InstructionListDetailSplitter = new SplitterState(relativeSizes, minSizes, null);
     this.m_InstructionModeView           = new StyleDrawInspectView(this);
 }
示例#6
0
        void OnEnable()
        {
            titleContent = EditorGUIUtility.TrTextContent("IMGUI Debugger");
            GUIViewDebuggerHelper.onViewInstructionsChanged += OnInspectedViewChanged;
            GUIView serializedInspected = m_Inspected;

            inspected             = null;
            inspected             = serializedInspected;
            m_InstructionModeView = null;
            instructionType       = m_InstructionType;
        }
示例#7
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;
        }
 public GUIViewDebuggerWindow()
 {
     this.m_InstructionModeView = new StyleDrawInspectView(this);
 }
示例#9
0
 protected GUIViewDebuggerWindow()
 {
     m_InstructionModeView = new StyleDrawInspectView(this);
 }