private void OnEnable()
        {
            AndroidLogcatInternalLog.Log("OnEnable");

            if (m_SearchField == null)
            {
                m_SearchField = new SearchField();
            }

            if (m_TagControl == null)
            {
                m_TagControl = new AndroidLogcatTagsControl();
            }
            m_TagControl.TagSelectionChanged += TagSelectionChanged;

            m_SelectedDeviceIndex = -1;
            m_SelectedDeviceId    = null;

            m_TimeOfLastAutoConnectStart = DateTime.Now;
            EditorApplication.update    += Update;

            m_FinishedAutoselectingPackage = false;
            AndroidLogcatInternalLog.Log("Package: {0}, Auto select: {1}", PlayerSettings.applicationIdentifier, AutoSelectPackage);

            m_StatusBar = new AndroidLogcatStatusBar();
        }
        private void OnEnable()
        {
            AndroidLogcatInternalLog.Log("OnEnable");
            m_Runtime = AndroidLogcatManager.instance.Runtime;

            if (m_SearchField == null)
            {
                m_SearchField = new SearchField();
            }

            if (m_TagControl == null)
            {
                m_TagControl = new AndroidLogcatTagsControl();
            }
            m_TagControl.TagSelectionChanged += TagSelectionChanged;

            m_SelectedDeviceIndex = -1;
            m_SelectedDeviceId    = null;

            m_TimeOfLastAutoConnectStart = DateTime.Now;
            m_Runtime.OnUpdate          += Update;

            m_FinishedAutoselectingPackage = false;
            AndroidLogcatInternalLog.Log("Package: {0}, Auto select: {1}", PlayerSettings.applicationIdentifier, AutoSelectPackage);

            m_StatusBar = new AndroidLogcatStatusBar();

            m_Runtime.Settings.OnSettingsChanged += OnSettingsChanged;

            // Can't apply settings here, apparently EditorStyles aren't initialized yet.
            m_ApplySettings = true;
        }
Beispiel #3
0
        public static AndroidLogcatTagWindow Show(AndroidLogcatTagsControl tagControl)
        {
            if (s_TagWindow == null)
            {
                s_TagWindow = ScriptableObject.CreateInstance <AndroidLogcatTagWindow>();
            }

            s_TagWindow.m_TagControl = tagControl;
            s_TagWindow.titleContent = new GUIContent("Tag Control");
            s_TagWindow.Show();
            s_TagWindow.Focus();

            return(s_TagWindow);
        }
 public AndroidLogcatTagListPopup(AndroidLogcatTagsControl tagsControl)
 {
     m_TagControl = tagsControl;
 }