Beispiel #1
0
            public void OnGUI(NodeGUI node)
            {
                m_fileTypeMask = (FileTypeMask)EditorGUILayout.EnumFlagsField(m_fileTypeMask, GUILayout.Width(85f));
                var newPattern = GUILayout.TextField(m_ignorePattern);

                if (newPattern != m_ignorePattern)
                {
                    m_ignorePattern = newPattern;
                    m_match         = null;
                }
            }
Beispiel #2
0
 public void OnGUI(NodeGUI node)
 {
     #if UNITY_2017_3_OR_NEWER
     m_fileTypeMask = (FileTypeMask)EditorGUILayout.EnumFlagsField(m_fileTypeMask, GUILayout.Width(85f));
     #else
     m_fileTypeMask = (FileTypeMask)EditorGUILayout.EnumMaskField(m_fileTypeMask, GUILayout.Width(80f));
     #endif
     var newPattern = GUILayout.TextField(m_ignorePattern);
     if (newPattern != m_ignorePattern)
     {
         m_ignorePattern = newPattern;
         m_match         = null;
     }
 }
Beispiel #3
0
 public IgnorePattern(IgnorePattern p)
 {
     m_fileTypeMask  = p.m_fileTypeMask;
     m_ignorePattern = p.m_ignorePattern;
 }
Beispiel #4
0
 public IgnorePattern(FileTypeMask typeMask, string pattern)
 {
     m_fileTypeMask  = typeMask;
     m_ignorePattern = pattern;
 }