コード例 #1
0
        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();
        }
コード例 #2
0
 public string GetResultFileAbsolutePath()
 {
     return(ResultFile.GetAbsolutePath(text_slug));
 }
コード例 #3
0
 public string GetMainResultFileAbsolutePath()
 {
     return(ResultFile.GetAbsolutePath(slug));
 }