mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-22 07:47:45 +01:00
feat: add ban reason in the installer
This commit is contained in:
parent
daaf3c9328
commit
f8966318c8
3 changed files with 27 additions and 2 deletions
|
|
@ -1430,7 +1430,7 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
ImGui.TextWrapped(manifest.Description);
|
||||
}
|
||||
|
||||
if (plugin.IsOutdated)
|
||||
if (plugin.IsOutdated && !plugin.IsBanned)
|
||||
{
|
||||
ImGui.PushStyleColor(ImGuiCol.Text, ImGuiColors.DalamudRed);
|
||||
ImGui.TextWrapped(Locs.PluginBody_Outdated);
|
||||
|
|
@ -1440,7 +1440,10 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
if (plugin.IsBanned)
|
||||
{
|
||||
ImGui.PushStyleColor(ImGuiCol.Text, ImGuiColors.DalamudRed);
|
||||
ImGui.TextWrapped(Locs.PluginBody_Banned);
|
||||
ImGui.TextWrapped(plugin.BanReason.IsNullOrEmpty()
|
||||
? Locs.PluginBody_Banned
|
||||
: Locs.PluginBody_BannedReason(plugin.BanReason));
|
||||
|
||||
ImGui.PopStyleColor();
|
||||
}
|
||||
|
||||
|
|
@ -2436,6 +2439,9 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
|
||||
public static string PluginBody_Banned => Loc.Localize("InstallerBannedPluginBody ", "This plugin version is banned due to incompatibilities and not available at the moment. Please wait for it to be updated by its author.");
|
||||
|
||||
public static string PluginBody_BannedReason(string message) =>
|
||||
Loc.Localize("InstallerBannedPluginBodyReason ", "This plugin is banned: {0}").Format(message);
|
||||
|
||||
#endregion
|
||||
|
||||
#region Plugin buttons
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue