Example #1
0
 private void ShowRefactorParameters(RefactorSettings.Parameters parameters)
 {
     settings = (RefactorSettings)EditorGUILayout.ObjectField(settings, typeof(RefactorSettings), false);
     if (settings != null)
     {
         EditorGUILayout.Space();
         GUI.enabled = false;
         EditorGUILayout.Toggle("Refactor Check Enabled", parameters.enabled);
         EditorGUILayout.Toggle("Show In Console", parameters.showInConsole);
         GUI.enabled = true;
     }
 }
Example #2
0
        private void OnEnable()
        {
            _headerStyle = new GUIStyle
            {
                richText  = true,
                fontStyle = FontStyle.Bold
            };
            _labelStyle = new GUIStyle
            {
                richText = true
            };
            _logStyle = new GUIStyle
            {
                richText = true,
                wordWrap = true
            };

            settings = Resources.Load <RefactorSettings>("Settings/Refactor Settings");
        }
Example #3
0
        void OnEnable()
        {
            _headerStyle = new GUIStyle
            {
                richText  = true,
                wordWrap  = true,
                fontStyle = FontStyle.Bold
            };
            _labelStyle = new GUIStyle
            {
                richText = true,
                wordWrap = true
            };
            _logStyle = new GUIStyle
            {
                richText = true,
                wordWrap = true
            };

            settings = (RefactorSettings)serializedObject.targetObject;
            _refactorCheckEnabled = serializedObject.FindProperty("_refactorCheckEnabled");
            _showInConsole        = serializedObject.FindProperty("_showInConsole");
        }