From 2a049c40d687d908445a7114a2e7a0c3099d2467 Mon Sep 17 00:00:00 2001 From: goaaats Date: Tue, 1 Apr 2025 01:53:14 +0200 Subject: [PATCH] Make it lame again --- .../PluginInstaller/PluginInstallerWindow.cs | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs b/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs index 6c27bfcd2..44516fc7e 100644 --- a/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs +++ b/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs @@ -144,7 +144,6 @@ internal class PluginInstallerWindow : Window, IDisposable 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, a set of 4 high quality wallpapers!", "Please do not feed the ducks.\nThey are not ducks.", ]; @@ -1561,17 +1560,13 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.PopStyleColor(); } - bool DrawLinesCentered(string text) + void DrawLinesCentered(string text) { - var clicked = false; var lines = text.Split('\n'); foreach (var line in lines) { ImGuiHelpers.CenteredText(line); - clicked |= ImGui.IsItemClicked(); } - - return clicked; } var pm = Service.Get(); @@ -1587,13 +1582,7 @@ internal class PluginInstallerWindow : Window, IDisposable { ImGuiHelpers.ScaledDummy(10); this.aprilFoolsLineIdx ??= new Random().Next(0, this.aprilFoolsLines.Length); - - var clicked = DrawLinesCentered(this.aprilFoolsLines[this.aprilFoolsLineIdx.Value]); - if (clicked && this.aprilFoolsLineIdx == 1) - { - Util.OpenLink("https://goatcorp.github.io/high_quality_wallpapers.zip"); - } - + DrawLinesCentered(this.aprilFoolsLines[this.aprilFoolsLineIdx.Value]); ImGuiHelpers.ScaledDummy(10); }