public BaseInspectView(GUIViewDebuggerWindow guiViewDebuggerWindow)
 {
     float[] relativeSizes = new float[] { 80f, 20f };
     int[]   minSizes      = new int[] { 100, 100 };
     this.m_InstructionDetailStacktraceSplitter = new SplitterState(relativeSizes, minSizes, null);
     this.m_GuiViewDebuggerWindow = guiViewDebuggerWindow;
 }
 public BaseInspectView(GUIViewDebuggerWindow guiViewDebuggerWindow)
 {
     float[] relativeSizes = new float[] { 80f, 20f };
     int[] minSizes = new int[] { 100, 100 };
     this.m_InstructionDetailStacktraceSplitter = new SplitterState(relativeSizes, minSizes, null);
     this.m_GuiViewDebuggerWindow = guiViewDebuggerWindow;
 }
 public UnifiedInspectView(GUIViewDebuggerWindow guiViewDebuggerWindow) : base(guiViewDebuggerWindow)
 {
     this.m_Instructions          = new List <IMGUIInstruction>();
     this.m_StacktraceScrollPos   = new Vector2();
     this.m_InstructionClipView   = new GUIClipInspectView(guiViewDebuggerWindow);
     this.m_InstructionStyleView  = new StyleDrawInspectView(guiViewDebuggerWindow);
     this.m_InstructionLayoutView = new GUILayoutInspectView(guiViewDebuggerWindow);
 }
 private static void Init()
 {
     if ((UnityEngine.Object)GUIViewDebuggerWindow.s_ActiveInspector == (UnityEngine.Object)null)
     {
         GUIViewDebuggerWindow.s_ActiveInspector = (GUIViewDebuggerWindow)EditorWindow.GetWindow(typeof(GUIViewDebuggerWindow));
     }
     GUIViewDebuggerWindow.s_ActiveInspector.Show();
 }
Example #5
0
 public UnifiedInspectView(GUIViewDebuggerWindow guiViewDebuggerWindow) : base(guiViewDebuggerWindow)
 {
     m_InstructionClipView         = new GUIClipInspectView(guiViewDebuggerWindow);
     m_InstructionStyleView        = new StyleDrawInspectView(guiViewDebuggerWindow);
     m_InstructionLayoutView       = new GUILayoutInspectView(guiViewDebuggerWindow);
     m_InstructionPropertyView     = new GUIPropertyInspectView(guiViewDebuggerWindow);
     m_InstructionNamedControlView = new GUINamedControlInspectView(guiViewDebuggerWindow);
 }
 public UnifiedInspectView(GUIViewDebuggerWindow guiViewDebuggerWindow) : base(guiViewDebuggerWindow)
 {
     this.m_Instructions = new List<IMGUIInstruction>();
     this.m_StacktraceScrollPos = new Vector2();
     this.m_InstructionClipView = new GUIClipInspectView(guiViewDebuggerWindow);
     this.m_InstructionStyleView = new StyleDrawInspectView(guiViewDebuggerWindow);
     this.m_InstructionLayoutView = new GUILayoutInspectView(guiViewDebuggerWindow);
 }
 private static void Init()
 {
     if (GUIViewDebuggerWindow.s_ActiveInspector == null)
     {
         GUIViewDebuggerWindow gUIViewDebuggerWindow = (GUIViewDebuggerWindow)EditorWindow.GetWindow(typeof(GUIViewDebuggerWindow));
         GUIViewDebuggerWindow.s_ActiveInspector = gUIViewDebuggerWindow;
     }
     GUIViewDebuggerWindow.s_ActiveInspector.Show();
 }
        private static string GetViewName(GUIView view)
        {
            EditorWindow editorWindow = GUIViewDebuggerWindow.GetEditorWindow(view);

            if (editorWindow != null)
            {
                return(editorWindow.titleContent.text);
            }
            return(view.GetType().Name);
        }
 [MenuItem("Window/Analysis/IMGUI Debugger &5", false, 102, false)] // TODO: DEBUG ONLY - REVERT ME
 static void Init()
 {
     // Get existing open window or if none, make a new one:
     if (s_ActiveInspector == null)
     {
         GUIViewDebuggerWindow window = (GUIViewDebuggerWindow)GetWindow(typeof(GUIViewDebuggerWindow));
         s_ActiveInspector = window;
     }
     s_ActiveInspector.Show();
 }
Example #10
0
        private bool CanInspectView(GUIView view)
        {
            bool result;

            if (view == null)
            {
                result = false;
            }
            else
            {
                EditorWindow editorWindow = GUIViewDebuggerWindow.GetEditorWindow(view);
                result = (editorWindow == null || !(editorWindow == this));
            }
            return(result);
        }
        private static string GetViewName(GUIView view)
        {
            EditorWindow editorWindow = GUIViewDebuggerWindow.GetEditorWindow(view);
            string       result;

            if (editorWindow != null)
            {
                result = editorWindow.titleContent.text;
            }
            else
            {
                result = view.GetType().Name;
            }
            return(result);
        }
        private bool CanInspectView(GUIView view)
        {
            bool result;

            if (view == null)
            {
                result = false;
            }
            else
            {
                EditorWindow editorWindow = GUIViewDebuggerWindow.GetEditorWindow(view);
                result = (editorWindow == null || (!(editorWindow == this) && !(editorWindow == this.m_InstructionOverlayWindow)));
            }
            return(result);
        }
        private void DoWindowPopup()
        {
            string t = "<Please Select>";

            if ((UnityEngine.Object) this.m_Inspected != (UnityEngine.Object)null)
            {
                t = GUIViewDebuggerWindow.GetViewName(this.m_Inspected);
            }
            GUILayout.Label("Inspected Window: ", new GUILayoutOption[1]
            {
                GUILayout.ExpandWidth(false)
            });
            Rect rect = GUILayoutUtility.GetRect(GUIContent.Temp(t), EditorStyles.toolbarDropDown, new GUILayoutOption[1] {
                GUILayout.ExpandWidth(true)
            });

            if (!GUI.Button(rect, GUIContent.Temp(t), EditorStyles.toolbarDropDown))
            {
                return;
            }
            List <GUIView> views = new List <GUIView>();

            GUIViewDebuggerHelper.GetViews(views);
            List <GUIContent> guiContentList = new List <GUIContent>(views.Count + 1);

            guiContentList.Add(new GUIContent("None"));
            int            selected    = 0;
            List <GUIView> guiViewList = new List <GUIView>(views.Count + 1);

            for (int index = 0; index < views.Count; ++index)
            {
                GUIView view = views[index];
                if (this.CanInspectView(view))
                {
                    GUIContent guiContent = new GUIContent(guiContentList.Count.ToString() + ". " + GUIViewDebuggerWindow.GetViewName(view));
                    guiContentList.Add(guiContent);
                    guiViewList.Add(view);
                    if ((UnityEngine.Object)view == (UnityEngine.Object) this.m_Inspected)
                    {
                        selected = guiViewList.Count;
                    }
                }
            }
            EditorUtility.DisplayCustomMenu(rect, guiContentList.ToArray(), selected, new EditorUtility.SelectMenuItemFunction(this.OnWindowSelected), (object)guiViewList);
        }
        private void DoWindowPopup()
        {
            string t = "<Please Select>";

            if (this.m_Inspected != null)
            {
                t = GUIViewDebuggerWindow.GetViewName(this.m_Inspected);
            }
            GUILayout.Label("Inspected Window: ", new GUILayoutOption[]
            {
                GUILayout.ExpandWidth(false)
            });
            Rect rect = GUILayoutUtility.GetRect(GUIContent.Temp(t), EditorStyles.toolbarDropDown, new GUILayoutOption[]
            {
                GUILayout.ExpandWidth(true)
            });

            if (GUI.Button(rect, GUIContent.Temp(t), EditorStyles.toolbarDropDown))
            {
                List <GUIView> list = new List <GUIView>();
                GUIViewDebuggerHelper.GetViews(list);
                List <GUIContent> list2 = new List <GUIContent>(list.Count + 1);
                list2.Add(new GUIContent("None"));
                int            selected = 0;
                List <GUIView> list3    = new List <GUIView>(list.Count + 1);
                for (int i = 0; i < list.Count; i++)
                {
                    GUIView gUIView = list[i];
                    if (this.CanInspectView(gUIView))
                    {
                        string     text = list2.Count + ". " + GUIViewDebuggerWindow.GetViewName(gUIView);
                        GUIContent item = new GUIContent(text);
                        list2.Add(item);
                        list3.Add(gUIView);
                        if (gUIView == this.m_Inspected)
                        {
                            selected = list3.Count;
                        }
                    }
                }
                EditorUtility.DisplayCustomMenu(rect, list2.ToArray(), selected, new EditorUtility.SelectMenuItemFunction(this.OnWindowSelected), list3);
            }
        }
Example #15
0
        private void DoWindowPopup()
        {
            string t = (!(this.inspected == null)) ? GUIViewDebuggerWindow.GetViewName(this.inspected) : GUIViewDebuggerWindow.Styles.defaultWindowPopupText;

            GUILayout.Label(GUIViewDebuggerWindow.Styles.inspectedWindowLabel, new GUILayoutOption[]
            {
                GUILayout.ExpandWidth(false)
            });
            Rect rect = GUILayoutUtility.GetRect(GUIContent.Temp(t), EditorStyles.toolbarDropDown, new GUILayoutOption[]
            {
                GUILayout.ExpandWidth(true)
            });

            if (GUI.Button(rect, GUIContent.Temp(t), EditorStyles.toolbarDropDown))
            {
                List <GUIView> list = new List <GUIView>();
                GUIViewDebuggerHelper.GetViews(list);
                List <GUIContent> list2 = new List <GUIContent>(list.Count + 1);
                list2.Add(EditorGUIUtility.TrTextContent("None", null, null));
                int            selected = 0;
                List <GUIView> list3    = new List <GUIView>(list.Count + 1);
                for (int i = 0; i < list.Count; i++)
                {
                    GUIView gUIView = list[i];
                    if (this.CanInspectView(gUIView))
                    {
                        GUIContent item = new GUIContent(string.Format("{0}. {1}", list2.Count, GUIViewDebuggerWindow.GetViewName(gUIView)));
                        list2.Add(item);
                        list3.Add(gUIView);
                        if (gUIView == this.inspected)
                        {
                            selected = list3.Count;
                        }
                    }
                }
                EditorUtility.DisplayCustomMenu(rect, list2.ToArray(), selected, new EditorUtility.SelectMenuItemFunction(this.OnWindowSelected), list3);
            }
        }
 public BaseInspectView(GUIViewDebuggerWindow guiViewDebuggerWindow)
 {
     m_DebuggerWindow = guiViewDebuggerWindow;
 }
 public GUIClipInspectView(GUIViewDebuggerWindow guiViewDebuggerWindow) : base(guiViewDebuggerWindow)
 {
 }
 public BaseInspectView(GUIViewDebuggerWindow guiViewDebuggerWindow)
 {
     m_DebuggerWindow            = guiViewDebuggerWindow;
     EditorGUI.hyperLinkClicked += EditorGUI_HyperLinkClicked;
 }
Example #19
0
 public GUIPropertyInspectView(GUIViewDebuggerWindow guiViewDebuggerWindow) : base(guiViewDebuggerWindow)
 {
 }
Example #20
0
 public GUINamedControlInspectView(GUIViewDebuggerWindow guiViewDebuggerWindow) : base(guiViewDebuggerWindow)
 {
 }
 private static void Init()
 {
   if ((UnityEngine.Object) GUIViewDebuggerWindow.s_ActiveInspector == (UnityEngine.Object) null)
     GUIViewDebuggerWindow.s_ActiveInspector = (GUIViewDebuggerWindow) EditorWindow.GetWindow(typeof (GUIViewDebuggerWindow));
   GUIViewDebuggerWindow.s_ActiveInspector.Show();
 }
 public GUIClipInspectView(GUIViewDebuggerWindow guiViewDebuggerWindow) : base(guiViewDebuggerWindow)
 {
     this.m_ClipList            = new List <IMGUIClipInstruction>();
     this.m_StacktraceScrollPos = new Vector2();
 }
 public GUILayoutInspectView(GUIViewDebuggerWindow guiViewDebuggerWindow) : base(guiViewDebuggerWindow)
 {
 }
Example #24
0
 protected BaseInspectView(GUIViewDebuggerWindow guiViewDebuggerWindow)
 {
     m_DebuggerWindow = guiViewDebuggerWindow;
 }
        private bool CanInspectView(GUIView view)
        {
            EditorWindow editorWindow = GUIViewDebuggerWindow.GetEditorWindow(view);

            return((UnityEngine.Object)editorWindow == (UnityEngine.Object)null || !((UnityEngine.Object)editorWindow == (UnityEngine.Object) this) && !((UnityEngine.Object)editorWindow == (UnityEngine.Object) this.m_InstructionOverlayWindow));
        }
 private static void Init()
 {
     if (s_ActiveInspector == null)
     {
         GUIViewDebuggerWindow window = (GUIViewDebuggerWindow) EditorWindow.GetWindow(typeof(GUIViewDebuggerWindow));
         s_ActiveInspector = window;
     }
     s_ActiveInspector.Show();
 }
        private bool CanInspectView(GUIView view)
        {
            EditorWindow editorWindow = GUIViewDebuggerWindow.GetEditorWindow(view);

            return(editorWindow == null || (!(editorWindow == this) && !(editorWindow == this.m_InstructionOverlayWindow)));
        }
 public StyleDrawInspectView(GUIViewDebuggerWindow guiViewDebuggerWindow) : base(guiViewDebuggerWindow)
 {
     this.m_StacktraceScrollPos = new Vector2();
 }
 public StyleDrawInspectView(GUIViewDebuggerWindow guiViewDebuggerWindow) : base(guiViewDebuggerWindow)
 {
 }
 public GUILayoutInspectView(GUIViewDebuggerWindow guiViewDebuggerWindow) : base(guiViewDebuggerWindow)
 {
     this.m_StacktraceScrollPos = new Vector2();
     this.m_LayoutInstructions = new List<IMGUILayoutInstruction>();
     this.m_FakeMargingStyleForOverlay = new GUIStyle();
 }
 public StyleDrawInspectView(GUIViewDebuggerWindow guiViewDebuggerWindow) : base(guiViewDebuggerWindow)
 {
     this.m_StacktraceScrollPos = new Vector2();
 }
 public GUILayoutInspectView(GUIViewDebuggerWindow guiViewDebuggerWindow) : base(guiViewDebuggerWindow)
 {
     this.m_StacktraceScrollPos        = new Vector2();
     this.m_LayoutInstructions         = new List <IMGUILayoutInstruction>();
     this.m_FakeMargingStyleForOverlay = new GUIStyle();
 }
Example #33
0
 public BaseInspectView(GUIViewDebuggerWindow guiViewDebuggerWindow)
 {
     this.m_GuiViewDebuggerWindow = guiViewDebuggerWindow;
 }
Example #34
0
 public UnifiedInspectView(GUIViewDebuggerWindow guiViewDebuggerWindow) : base(guiViewDebuggerWindow)
 {
     this.m_InstructionClipView   = new GUIClipInspectView(guiViewDebuggerWindow);
     this.m_InstructionStyleView  = new StyleDrawInspectView(guiViewDebuggerWindow);
     this.m_InstructionLayoutView = new GUILayoutInspectView(guiViewDebuggerWindow);
 }