public virtual void Init(string name) { m_InUse = true; m_PathFilter = string.Empty; m_MyName = name; m_PathFilterType = PathFilterType.Name; }
public virtual void Draw() { EditorGUILayout.BeginVertical("box"); this.m_InUse = EditorGUILayout.Toggle("InUse", this.m_InUse); EditorGUILayout.LabelField("FilterType", this.m_TypeFilter.ToString()); this.m_MyName = EditorGUILayout.TextField("Name", this.m_MyName); this.m_PathFilterType = (PathFilterType)EditorGUILayout.EnumPopup("PathFilterType", this.m_PathFilterType); EditorGUILayout.LabelField("PathFilter"); this.m_PathFilter = EditorGUILayout.TextArea(this.m_PathFilter, GUILayout.MinWidth(180)); EditorGUILayout.HelpBox("_name0=t&(hi=f|cc=t)\n(路径包含_name0)并且((路径不包含hi)或者(路径包含cc))", MessageType.Info); EditorGUILayout.EndVertical(); }
public virtual void Draw() { EditorGUILayout.BeginVertical("box"); this.m_InUse = EditorGUILayout.Toggle(new GUIContent("InUse", "是否启用,不启用相当于不存在"), this.m_InUse); this.m_TmpIgnore = EditorGUILayout.Toggle(new GUIContent("TmpIgnore", "暂时忽略,要调试某个资源的时候,可以将管辖的设置暂时定义为[暂时忽略],不会强制设置属性,同时也挡住继续往上查找下一个"), this.m_TmpIgnore); EditorGUILayout.LabelField("FilterType", this.m_TypeFilter.ToString()); this.m_MyName = EditorGUILayout.TextField("Name", this.m_MyName); this.m_PathFilterType = (PathFilterType)EditorGUILayout.EnumPopup("PathFilterType", this.m_PathFilterType); EditorGUILayout.LabelField("PathFilter"); this.m_PathFilter = EditorGUILayout.TextArea(this.m_PathFilter, GUILayout.MinWidth(180)); EditorGUILayout.HelpBox("&:与\n|:或\n!:非\n_name0&(!hi|cc)\n(路径含_name0)且((路径不含hi)或(路径含cc))", MessageType.Info, true); EditorGUILayout.EndVertical(); }
public PathsToRemoveDropDownMenu(CodeCoverageWindow parent, PathFilterType type) { m_Parent = parent; m_PathFilterType = type; }
public PathsToAddHandler(CodeCoverageWindow parent, PathFilterType type) { m_Parent = parent; m_PathFilterType = type; }