void OnEnable() { PluginConfigHelper.SearchVSCommonToolsDir(); _pluginSource = (PluginSource)PluginConfigHelper.CurrentPluginSource; _buildConfig = (PluginBuildConfig)PluginConfigHelper.CurrentBuildConfig; _winLegacyDir = PluginConfigHelper.WinLegacyDir; _winIntegrationDir = PluginConfigHelper.WinIntegrationDir; _nugetDir = PluginConfigHelper.BuildScriptsDir; _vsCommonToolDir = PluginConfigHelper.VSCommonToolDir; }
void OnEnable() { PluginConfigHelper.SearchVSCommonToolsDir(); _pluginSource = (PluginSource)PluginConfigHelper.CurrentPluginSource; _buildConfig = (PluginBuildConfig)PluginConfigHelper.CurrentBuildConfig; _winLegacyDir = PluginConfigHelper.WinLegacyDir; _winIntegrationDir = PluginConfigHelper.WinIntegrationDir; _nugetDir = PluginConfigHelper.BuildScriptsDir; _vsCommonToolDir = PluginConfigHelper.VSCommonToolDir; }
/// <summary> /// GUI for Update Source. /// </summary> void DrawUpdateSource() { GUILayout.Space(5f); GUI.changed = false; _pluginSource = (PluginSource)EditorGUILayout.EnumPopup("Plugin Source", _pluginSource, GUILayout.MaxWidth(250f)); if (GUI.changed) { PluginConfigHelper.CurrentPluginSource = (int)_pluginSource; } GUILayout.Space(10f); }
/// <summary> /// GUI for Update Source. /// </summary> void DrawUpdateSource() { GUILayout.Space(5f); GUI.changed = false; _pluginSource = (PluginSource)EditorGUILayout.EnumPopup("Plugin Source", _pluginSource, GUILayout.MaxWidth(250f)); if (GUI.changed) { PluginConfigHelper.CurrentPluginSource = (int)_pluginSource; } GUILayout.Space(10f); }