feat: april fools 2022

This commit is contained in:
goaaats 2022-04-01 10:53:56 +02:00
parent e151cefb64
commit 57bd6bc1e3
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
4 changed files with 342 additions and 0 deletions

View file

@ -49,6 +49,8 @@ namespace Dalamud.Interface.Internal.Windows
private bool doFocus;
private bool doTsm;
private bool doFools22;
private List<string>? dtrOrder;
private List<string>? dtrIgnore;
private int dtrSpacing;
@ -104,6 +106,8 @@ namespace Dalamud.Interface.Internal.Windows
this.doFocus = configuration.IsFocusManagementEnabled;
this.doTsm = configuration.ShowTsm;
this.doFools22 = configuration.Fools22;
this.dtrSpacing = configuration.DtrSpacing;
this.dtrSwapDirection = configuration.DtrSwapDirection;
@ -236,6 +240,12 @@ namespace Dalamud.Interface.Internal.Windows
private void DrawGeneralTab()
{
if (DateTime.Now.Month == 4 && DateTime.Now.Day == 1)
{
ImGui.Checkbox(Loc.Localize("Fools22", "Enable April Fools 2022"), ref this.doFools22);
ImGui.TextColored(ImGuiColors.DalamudGrey, Loc.Localize("Fools22Hint", "Enables the April Fools 2022 funny joke. Turn this off if you don't think it's funny."));
}
ImGui.Text(Loc.Localize("DalamudSettingsLanguage", "Language"));
ImGui.Combo("##XlLangCombo", ref this.langIndex, this.locLanguages, this.locLanguages.Length);
ImGui.TextColored(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsLanguageHint", "Select the language Dalamud will be displayed in."));
@ -843,6 +853,8 @@ namespace Dalamud.Interface.Internal.Windows
configuration.IsFocusManagementEnabled = this.doFocus;
configuration.ShowTsm = this.doTsm;
configuration.Fools22 = this.doFools22;
configuration.UseAxisFontsFromGame = this.doUseAxisFontsFromGame;
configuration.FontGamma = this.fontGamma;