diff --git a/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs b/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs index 66f338586..4e684b0e1 100644 --- a/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs +++ b/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs @@ -140,6 +140,14 @@ internal class PluginInstallerWindow : Window, IDisposable private string? staleDalamudNewVersion = null; + private int? aprilFoolsLineIdx = null; + private string[] aprilFoolsLines = + [ + "We sincerely apologize for this year's April Fool's joke.\nWe hope you enjoyed it, and we promise to do better next year.", + "Congratulations! You are Dalamud's 1,000,000th user!\nClick here to claim your prize!", + "Please do not feed the ducks.\nThey are not ducks.", + ]; + /// /// Initializes a new instance of the class. /// @@ -1571,6 +1579,14 @@ internal class PluginInstallerWindow : Window, IDisposable ImGuiHelpers.ScaledDummy(10); } + if (DateTime.Now is { Day: 1, Month: 4 }) + { + ImGuiHelpers.ScaledDummy(10); + this.aprilFoolsLineIdx ??= new Random().Next(0, this.aprilFoolsLines.Length); + DrawLinesCentered(this.aprilFoolsLines[this.aprilFoolsLineIdx.Value]); + ImGuiHelpers.ScaledDummy(10); + } + if (this.staleDalamudNewVersion != null) { DrawWarningIcon();