void OnGUIContentStep4() { GUIStyle radioStyle = new GUIStyle(EditorStyles.radioButton); radioStyle.padding = new RectOffset(20, 0, 0, 0); GUILayout.Space(50); BeginCenter(); EditorGUILayout.BeginVertical(); // P("Select an export method", TextAnchor.MiddleLeft); // exportMethod = (ExportMethod) GUILayout.SelectionGrid( // (int) exportMethod, // (new[] {"Files (named by slug)", "Unity assets"}), // 1, // radioStyle // ); // GUILayout.Space(20); P($"Result files will be put in {ResultFile.GetAbsolutePath()}"); P("What should happen if the file already exists?", TextAnchor.MiddleLeft); replaceExistingFiles = 1 == GUILayout.SelectionGrid( replaceExistingFiles ? 1 : 0, (new[] { "Don't synthesize (skip the line)", "Replace the existing file" }), 1, radioStyle ); EditorGUILayout.EndVertical(); EndCenter(); }
public string GetResultFileAbsolutePath() { return(ResultFile.GetAbsolutePath(text_slug)); }
public string GetMainResultFileAbsolutePath() { return(ResultFile.GetAbsolutePath(slug)); }