Ejemplo n.º 1
0
        public override void OnInspectorGUI()
        {
            var umakeTarget = target as UMakeTarget;

            Undo.RecordObject(umakeTarget, "UMakeTarget");

            EditorGUI.BeginChangeCheck();

            EditorHelper.BeginBox("Build Settings");
            ShowBuildSettings(umakeTarget);
            EditorHelper.EndBox();

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

            EditorGUILayout.Space();

            ShowPreBuildActions(umakeTarget);
            ShowPostBuildActions(umakeTarget);

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

            GUILayout.FlexibleSpace();

            ExecuteAction(umakeTarget, action);
        }
Ejemplo n.º 2
0
        public override void OnInspectorGUI(UMakeBuildActionEditor editor)
        {
            base.OnInspectorGUI(editor);

            EditorHelper.BeginBox("Shared Settings");

            EditorGUILayout.BeginHorizontal();
            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;
                }
            }
            EditorGUILayout.EndHorizontal();

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

            EditorHelper.EndBox();

            GUILayout.FlexibleSpace();
        }
        public static void OnPreferencesGUI()
        {
            scroll = EditorHelper.BeginBox(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();
            EditorHelper.EndBox();
        }
Ejemplo n.º 4
0
        public static void OnPreferencesGUI()
        {
            EditorHelper.BeginBox("Assembly Processor");

            bool enabled = AssemblyProcessorManager.Enabled;

            EditorGUI.BeginChangeCheck();
            enabled = EditorGUILayout.Toggle("Enabled", enabled);
            if (EditorGUI.EndChangeCheck())
            {
                AssemblyProcessorManager.Enabled = enabled;
            }

            if (GUILayout.Button("Force Process Assemblies"))
            {
                AssemblyProcessorManager.LockAndProcessAssemblies();
                EditorUtility.RequestScriptReload();

                Debug.Log("Assemblies Processed");
            }

            EditorHelper.EndBox();
        }
Ejemplo n.º 5
0
 public void Dispose()
 {
     EditorHelper.EndBox();
 }