private void ShowButtons() { GUILayout.BeginHorizontal(); if (GUILayout.Button("Apply all")) { MetaProjectSettings.ApplyAllRecommendedSettings(); } if (GUILayout.Button("Close")) { Close(); } GUILayout.EndHorizontal(); GUILayout.Space(_spaceBetweenSettings); }
private void ShowSettingsOptions() { _scrollPosition = GUILayout.BeginScrollView(_scrollPosition); ShowSettingsGroup(_platform, MetaProjectSettings.GetCurrentBuildPlatform() == MetaProjectSettings.BuildPlatform, MetaProjectSettings.GetCurrentBuildPlatform().ToString(), MetaProjectSettings.SetRecommendedBuildArchitecture); ShowSettingsGroup(_architecture, MetaProjectSettings.GetCurrentBuildArchitecture() == MetaProjectSettings.BuildArchitecture, MetaProjectSettings.GetCurrentBuildArchitecture().ToString(), MetaProjectSettings.SetRecommendedBuildPlatform); ShowSettingsGroup(_apiCompatibility, MetaProjectSettings.GetCurrentApiCompatibility() == MetaProjectSettings.ApiCompatibility, MetaProjectSettings.GetCurrentApiCompatibility().ToString(), MetaProjectSettings.SetRecommendedApiCompatibility); ShowSettingsGroup(_vsync, MetaProjectSettings.GetCurrentVSync() == MetaProjectSettings.VSync, MetaProjectSettings.GetCurrentVSync() != MetaProjectSettings.VSync ? "Enabled" : "Disabled", MetaProjectSettings.SetRecommendedVSync); ShowSettingsGroup(_audio, MetaProjectSettings.GetCurrentSpeakerMode() == MetaProjectSettings.MetaSpeakerMode, MetaProjectSettings.GetCurrentSpeakerMode().ToString(), MetaProjectSettings.SetRecommendedAudioSettings); ShowSettingsGroup(_runInBackground, MetaProjectSettings.GetCurrentRunInBackground() == MetaProjectSettings.RunInBackground, MetaProjectSettings.GetCurrentRunInBackground().ToString(), MetaProjectSettings.SetRecommendedRunInBackground); ShowSettingsGroup(_gpuSkinning, MetaProjectSettings.GetCurrentGpuSkinning() == MetaProjectSettings.GpuSkinning, MetaProjectSettings.GetCurrentGpuSkinning().ToString(), MetaProjectSettings.SetRecommendedGpuSkinning); ShowSettingsGroup(_resolutionDialog, MetaProjectSettings.GetCurrentResolutionDialog() == MetaProjectSettings.DialogSetting, MetaProjectSettings.GetCurrentResolutionDialog().ToString(), MetaProjectSettings.SetRecommendedDialogSetting); ShowSettingsGroup(_aspectRatios, MetaProjectSettings.IsCurrentAspectRatioSetup(), MetaProjectSettings.IsCurrentAspectRatioSetup() ? "Setup" : "Not Setup", MetaProjectSettings.SetRecommendedAspectRatios); GUILayout.EndScrollView(); }