mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
pi: show release date on changelog entries
This commit is contained in:
parent
c88689a79a
commit
05ec0b8c11
1 changed files with 10 additions and 0 deletions
|
|
@ -2276,6 +2276,16 @@ internal class PluginInstallerWindow : Window, IDisposable
|
|||
ImGui.TextColored(ImGuiColors.DalamudGrey3, Locs.PluginBody_AuthorWithoutDownloadCount(log.Author));
|
||||
}
|
||||
|
||||
if (log.Date != DateTime.MinValue)
|
||||
{
|
||||
var whenText = log.Date.LocRelativePastLong();
|
||||
var whenSize = ImGui.CalcTextSize(whenText);
|
||||
ImGui.SameLine(ImGui.GetWindowWidth() - whenSize.X - (25 * ImGuiHelpers.GlobalScale));
|
||||
ImGui.TextColored(ImGuiColors.DalamudGrey3, whenText);
|
||||
if (ImGui.IsItemHovered())
|
||||
ImGui.SetTooltip("Published on " + log.Date.LocAbsolute());
|
||||
}
|
||||
|
||||
cursor.Y += ImGui.GetTextLineHeightWithSpacing();
|
||||
ImGui.SetCursorPos(cursor);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue