refactor: rename DALAMUD_API_LEVEL

This commit is contained in:
goat 2021-04-01 21:12:07 +02:00
parent aca3da09b1
commit 30280c520c
4 changed files with 4 additions and 4 deletions

View file

@ -239,7 +239,7 @@ namespace Dalamud.Interface
} }
ImGui.Separator(); ImGui.Separator();
ImGui.MenuItem("API Level:" + PluginManager.DALAMUD_API_LEVEL, false); ImGui.MenuItem("API Level:" + PluginManager.DalamudApiLevel, false);
ImGui.MenuItem("Loaded plugins:" + this.dalamud.PluginManager?.Plugins.Count, false); ImGui.MenuItem("Loaded plugins:" + this.dalamud.PluginManager?.Plugins.Count, false);
ImGui.EndMenu(); ImGui.EndMenu();
} }

View file

@ -67,7 +67,7 @@ namespace Dalamud.Plugin
public bool IsHide { get; set; } public bool IsHide { get; set; }
/// <summary> /// <summary>
/// Gets or sets the API level of this plugin. For the current API level, please see <see cref="PluginManager.DALAMUD_API_LEVEL"/> for the currently used API level. /// Gets or sets the API level of this plugin. For the current API level, please see <see cref="PluginManager.DalamudApiLevel"/> for the currently used API level.
/// </summary> /// </summary>
public int DalamudApiLevel { get; set; } public int DalamudApiLevel { get; set; }

View file

@ -359,7 +359,7 @@ namespace Dalamud.Plugin
if (pluginDefinition.IsHide) if (pluginDefinition.IsHide)
continue; continue;
if (pluginDefinition.DalamudApiLevel < PluginManager.DALAMUD_API_LEVEL) if (pluginDefinition.DalamudApiLevel < PluginManager.DalamudApiLevel)
continue; continue;
if (this.dalamud.Configuration.HiddenPluginInternalName.Contains(pluginDefinition.InternalName)) if (this.dalamud.Configuration.HiddenPluginInternalName.Contains(pluginDefinition.InternalName))

View file

@ -225,7 +225,7 @@ namespace Dalamud.Plugin
continue; continue;
} }
if (remoteInfo.DalamudApiLevel < PluginManager.DALAMUD_API_LEVEL) { if (remoteInfo.DalamudApiLevel < PluginManager.DalamudApiLevel) {
Log.Information("Has not applicable API level: {0}", info.Name); Log.Information("Has not applicable API level: {0}", info.Name);
continue; continue;
} }