Fix and small change in plugin descriptions

This commit is contained in:
Aireil 2020-12-14 23:17:52 +01:00
parent c4eca8c7d3
commit b360c74418

View file

@ -321,11 +321,17 @@ namespace Dalamud.Plugin
ImGui.Indent();
ImGui.Text(pluginDefinition.Name);
ImGui.SameLine();
ImGui.TextColored(new Vector4(0.5f, 0.5f, 0.5f, 1.0f),
$" by {pluginDefinition.Author}, {pluginDefinition.DownloadCount} downloads{(pluginDefinition.FromRepo != "goatcorp.github.io" ? $", from {pluginDefinition.FromRepo}" : string.Empty)}");
ImGui.Text(pluginDefinition.Description);
ImGui.SameLine();
var info = $" by {pluginDefinition.Author}";
info += pluginDefinition.DownloadCount != 0 ? $", {pluginDefinition.DownloadCount} downloads" : ", download count unavailable";
if (pluginDefinition.FromRepo != "goatcorp.github.io" && !string.IsNullOrWhiteSpace(pluginDefinition.FromRepo))
info += $", from {pluginDefinition.FromRepo}";
ImGui.TextColored(new Vector4(0.5f, 0.5f, 0.5f, 1.0f), info);
if (!string.IsNullOrWhiteSpace(pluginDefinition.Description))
ImGui.Text(pluginDefinition.Description);
if (!isInstalled) {
if (this.installStatus == PluginInstallStatus.InProgress) {