public override void OnFlowSettingsGUI() { if (Social.settings == null) { Social.settings = this.GetSettingsFile(); if (Social.settings == null) Social.settings = ME.EditorUtilities.GetAssetsOfType<SocialSettings>(useCache: false).FirstOrDefault(); } var settings = Social.settings; if (settings == null) { EditorGUILayout.HelpBox(string.Format(FlowAddon.MODULE_HAS_ERRORS, "Settings file not found (SocialSettings)."), MessageType.Error); } else { GUILayout.Label(FlowAddon.MODULE_INSTALLED, EditorStyles.centeredGreyMiniLabel); if (this.editor == null) this.editor = Editor.CreateEditor(settings); if (this.editor != null) { this.editor.OnInspectorGUI(); } } }
public void Load(SocialSettings settings) { foreach (var platform in settings.activePlatforms) { if (platform.active == true) { this.LoadPlatform(platform); } } }