예제 #1
0
        public override void OnInspectorGUI(UMakeBuildActionEditor editor)
        {
            base.OnInspectorGUI(editor);

            using (BoxGroup.Do("Shared Settings"))
            {
                using (Horizontal.Do())
                {
                    steamSdkPath.Value = EditorGUILayout.TextField("Steam SDK Folder", steamSdkPath.Value);
                    if (GUILayout.Button("Change", GUILayout.Width(64.0f)))
                    {
                        string path = EditorUtility.OpenFolderPanel("Steam SDK Folder Path", steamSdkPath.Value, "");
                        if (!string.IsNullOrEmpty(path))
                        {
                            steamSdkPath.Value = path;
                        }
                    }
                }

                steamUsername.Value = EditorGUILayout.TextField("Steam Username", steamUsername.Value);
                steamPassword.Value = EditorGUILayout.PasswordField("Steam Password", steamPassword.Value);
            }

            GUILayout.FlexibleSpace();
        }
예제 #2
0
        public override void OnInspectorGUI()
        {
            var umakeTarget = target as UMakeTarget;

            Undo.RecordObject(umakeTarget, "UMakeTarget");

            EditorGUI.BeginChangeCheck();

            using (BoxGroup.Do("Build Settings"))
            {
                ShowBuildSettings(umakeTarget);
            }

            EditorGUILayout.Space();
            BuildAction action = ShowActions();

            EditorGUILayout.Space();

            ShowPreBuildActions(umakeTarget);
            ShowPostBuildActions(umakeTarget);

            if (EditorGUI.EndChangeCheck())
            {
                EditorUtility.SetDirty(umakeTarget);
            }

            GUILayout.FlexibleSpace();

            ExecuteAction(umakeTarget, action);
        }
        public static void OnPreferencesGUI()
        {
            using (BoxGroup.Do(ref scroll, "Script Templates"))
            {
                bool windowsLineEnding = EditorGUILayout.Toggle("Use windows line ending format", ScriptTemplateUseWindowsLineEnding.Value);

                if (windowsLineEnding != ScriptTemplateUseWindowsLineEnding.Value)
                {
                    ScriptTemplateUseWindowsLineEnding.Value = windowsLineEnding;
                    cSharpScriptTemplate.UpdateLineEnding();
                    cSharpEditorScriptTemplate.UpdateLineEnding();
                }
                cSharpScriptTemplate.OnPreferencesGUI();
                EditorGUILayout.Space();
                cSharpEditorScriptTemplate.OnPreferencesGUI();
            }
        }