mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 14:23:40 +01:00
Merge pull request #223 from Aireil/change_plugin_descriptions
Fix and small change in plugin descriptions
This commit is contained in:
commit
8ee3587cc8
1 changed files with 10 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue