mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-14 11:57:42 +01:00
feat: april fools 2022
This commit is contained in:
parent
e151cefb64
commit
57bd6bc1e3
4 changed files with 342 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue