protected void DrawHandlePatternButton() { if (GUILayout.Button("Handle patterns in selected file")) { string filePath = AssetDatabase.GetAssetPath(Selection.activeObject); EZScriptTemplateProcessor.Replace(filePath, ezScriptTemplate); } }
protected void DrawPatternList() { EditorGUILayout.LabelField("Pattern", EditorStyles.boldLabel); if (GUILayout.Button("Handle patterns in selected file")) { string filePath = AssetDatabase.GetAssetPath(Selection.activeObject); EZScriptTemplateProcessor.Replace(filePath, ezScriptTemplate); } EditorGUILayout.PropertyField(m_TimeFormat); patternFoldout = EditorGUILayout.Foldout(patternFoldout, "Patterns"); if (patternFoldout) { DrawConstPatternList(); DrawCustomPatternList(); } DrawExtensionList(); }