mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Add 2025 april fools
This commit is contained in:
parent
3d04d75811
commit
104504f6a6
1 changed files with 16 additions and 0 deletions
|
|
@ -140,6 +140,14 @@ internal class PluginInstallerWindow : Window, IDisposable
|
||||||
|
|
||||||
private string? staleDalamudNewVersion = null;
|
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.",
|
||||||
|
];
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="PluginInstallerWindow"/> class.
|
/// Initializes a new instance of the <see cref="PluginInstallerWindow"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -1571,6 +1579,14 @@ internal class PluginInstallerWindow : Window, IDisposable
|
||||||
ImGuiHelpers.ScaledDummy(10);
|
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)
|
if (this.staleDalamudNewVersion != null)
|
||||||
{
|
{
|
||||||
DrawWarningIcon();
|
DrawWarningIcon();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue