chore: housekeeping — linter & formatter setup
Add .prettierrc.json, .markdownlint.json, .yamllint.yaml, .gitattributes Run CSharpier, Prettier and markdownlint across the entire codebase. No logic changes — formatting, using order and line endings only.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
using Dalamud.Bindings.ImGui;
|
||||
using Dalamud.Interface.Utility.Raii;
|
||||
using HellionChat.Resources;
|
||||
using HellionChat.Util;
|
||||
using Dalamud.Interface.Utility.Raii;
|
||||
using Dalamud.Bindings.ImGui;
|
||||
|
||||
namespace HellionChat.Ui.SettingsTabs;
|
||||
|
||||
@@ -42,22 +42,42 @@ internal sealed class Window : ISettingsTab
|
||||
ImGui.Checkbox(Language.Options_HideChat_Name, ref Mutable.HideChat);
|
||||
ImGuiUtil.HelpMarker(Language.Options_HideChat_Description);
|
||||
|
||||
ImGui.Checkbox(Language.Options_HideDuringCutscenes_Name, ref Mutable.HideDuringCutscenes);
|
||||
ImGuiUtil.HelpMarker(string.Format(Language.Options_HideDuringCutscenes_Description, Plugin.PluginName));
|
||||
ImGui.Checkbox(
|
||||
Language.Options_HideDuringCutscenes_Name,
|
||||
ref Mutable.HideDuringCutscenes
|
||||
);
|
||||
ImGuiUtil.HelpMarker(
|
||||
string.Format(Language.Options_HideDuringCutscenes_Description, Plugin.PluginName)
|
||||
);
|
||||
|
||||
ImGui.Checkbox(Language.Options_HideWhenNotLoggedIn_Name, ref Mutable.HideWhenNotLoggedIn);
|
||||
ImGuiUtil.HelpMarker(string.Format(Language.Options_HideWhenNotLoggedIn_Description, Plugin.PluginName));
|
||||
ImGui.Checkbox(
|
||||
Language.Options_HideWhenNotLoggedIn_Name,
|
||||
ref Mutable.HideWhenNotLoggedIn
|
||||
);
|
||||
ImGuiUtil.HelpMarker(
|
||||
string.Format(Language.Options_HideWhenNotLoggedIn_Description, Plugin.PluginName)
|
||||
);
|
||||
|
||||
ImGui.Checkbox(Language.Options_HideWhenUiHidden_Name, ref Mutable.HideWhenUiHidden);
|
||||
ImGuiUtil.HelpMarker(string.Format(Language.Options_HideWhenUiHidden_Description, Plugin.PluginName));
|
||||
ImGuiUtil.HelpMarker(
|
||||
string.Format(Language.Options_HideWhenUiHidden_Description, Plugin.PluginName)
|
||||
);
|
||||
|
||||
ImGui.Checkbox(Language.Options_HideInLoadingScreens_Name, ref Mutable.HideInLoadingScreens);
|
||||
ImGuiUtil.HelpMarker(string.Format(Language.Options_HideInLoadingScreens_Description, Plugin.PluginName));
|
||||
ImGui.Checkbox(
|
||||
Language.Options_HideInLoadingScreens_Name,
|
||||
ref Mutable.HideInLoadingScreens
|
||||
);
|
||||
ImGuiUtil.HelpMarker(
|
||||
string.Format(Language.Options_HideInLoadingScreens_Description, Plugin.PluginName)
|
||||
);
|
||||
|
||||
ImGui.Checkbox(Language.Options_HideInBattle_Name, ref Mutable.HideInBattle);
|
||||
ImGuiUtil.HelpMarker(Language.Options_HideInBattle_Description);
|
||||
|
||||
ImGui.Checkbox(Language.Options_HideInNewGamePlusMenu_Name, ref Mutable.HideInNewGamePlusMenu);
|
||||
ImGui.Checkbox(
|
||||
Language.Options_HideInNewGamePlusMenu_Name,
|
||||
ref Mutable.HideInNewGamePlusMenu
|
||||
);
|
||||
ImGuiUtil.HelpMarker(Language.Options_HideInNewGamePlusMenu_Description);
|
||||
}
|
||||
}
|
||||
@@ -80,13 +100,22 @@ internal sealed class Window : ISettingsTab
|
||||
return;
|
||||
}
|
||||
|
||||
ImGuiUtil.InputIntVertical(Language.Options_InactivityHideTimeout_Name, Language.Options_InactivityHideTimeout_Description, ref Mutable.InactivityHideTimeout, 1, 10);
|
||||
ImGuiUtil.InputIntVertical(
|
||||
Language.Options_InactivityHideTimeout_Name,
|
||||
Language.Options_InactivityHideTimeout_Description,
|
||||
ref Mutable.InactivityHideTimeout,
|
||||
1,
|
||||
10
|
||||
);
|
||||
// Untergrenze von 2 Sekunden gegen Selbst-Soft-Lock.
|
||||
Mutable.InactivityHideTimeout = Math.Max(2, Mutable.InactivityHideTimeout);
|
||||
|
||||
using (ImRaii.Disabled(Mutable.HideInBattle))
|
||||
{
|
||||
ImGui.Checkbox(Language.Options_InactivityHideActiveDuringBattle_Name, ref Mutable.InactivityHideActiveDuringBattle);
|
||||
ImGui.Checkbox(
|
||||
Language.Options_InactivityHideActiveDuringBattle_Name,
|
||||
ref Mutable.InactivityHideActiveDuringBattle
|
||||
);
|
||||
ImGuiUtil.HelpMarker(Language.Options_InactivityHideActiveDuringBattle_Description);
|
||||
}
|
||||
|
||||
@@ -96,7 +125,12 @@ internal sealed class Window : ISettingsTab
|
||||
return;
|
||||
}
|
||||
|
||||
if (ImGuiUtil.CtrlShiftButton(Language.Options_InactivityHideChannels_All_Label, Language.Options_InactivityHideChannels_Button_Tooltip))
|
||||
if (
|
||||
ImGuiUtil.CtrlShiftButton(
|
||||
Language.Options_InactivityHideChannels_All_Label,
|
||||
Language.Options_InactivityHideChannels_Button_Tooltip
|
||||
)
|
||||
)
|
||||
{
|
||||
Mutable.InactivityHideChannelsV2 = TabsUtil.AllChannels();
|
||||
Mutable.InactivityHideExtraChatAll = true;
|
||||
@@ -104,7 +138,12 @@ internal sealed class Window : ISettingsTab
|
||||
}
|
||||
|
||||
ImGui.SameLine();
|
||||
if (ImGuiUtil.CtrlShiftButton(Language.Options_InactivityHideChannels_None_Label, Language.Options_InactivityHideChannels_Button_Tooltip))
|
||||
if (
|
||||
ImGuiUtil.CtrlShiftButton(
|
||||
Language.Options_InactivityHideChannels_None_Label,
|
||||
Language.Options_InactivityHideChannels_Button_Tooltip
|
||||
)
|
||||
)
|
||||
{
|
||||
Mutable.InactivityHideChannelsV2 = [];
|
||||
Mutable.InactivityHideExtraChatAll = false;
|
||||
@@ -113,8 +152,15 @@ internal sealed class Window : ISettingsTab
|
||||
|
||||
ImGui.Spacing();
|
||||
|
||||
ImGuiUtil.ChannelSelector(Language.Options_Tabs_Channels, Mutable.InactivityHideChannelsV2);
|
||||
ImGuiUtil.ExtraChatSelector(Language.Options_Tabs_ExtraChatChannels, ref Mutable.InactivityHideExtraChatAll, Mutable.InactivityHideExtraChatChannels);
|
||||
ImGuiUtil.ChannelSelector(
|
||||
Language.Options_Tabs_Channels,
|
||||
Mutable.InactivityHideChannelsV2
|
||||
);
|
||||
ImGuiUtil.ExtraChatSelector(
|
||||
Language.Options_Tabs_ExtraChatChannels,
|
||||
ref Mutable.InactivityHideExtraChatAll,
|
||||
Mutable.InactivityHideExtraChatChannels
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -132,7 +178,10 @@ internal sealed class Window : ISettingsTab
|
||||
ImGui.Checkbox(Language.Options_CanResize_Name, ref Mutable.CanResize);
|
||||
|
||||
// v0.6.0 — global master switch for the pop-out input bar.
|
||||
ImGui.Checkbox(HellionStrings.Settings_Window_PopOutInputEnabled_Name, ref Mutable.PopOutInputEnabled);
|
||||
ImGui.Checkbox(
|
||||
HellionStrings.Settings_Window_PopOutInputEnabled_Name,
|
||||
ref Mutable.PopOutInputEnabled
|
||||
);
|
||||
ImGuiUtil.HelpMarker(HellionStrings.Settings_Window_PopOutInputEnabled_Description);
|
||||
|
||||
ImGui.Spacing();
|
||||
@@ -156,12 +205,26 @@ internal sealed class Window : ISettingsTab
|
||||
|
||||
using (ImRaii.PushIndent(ImGui.GetStyle().IndentSpacing, false))
|
||||
{
|
||||
ImGui.Checkbox(Language.Options_NativeItemTooltips_Name, ref Mutable.NativeItemTooltips);
|
||||
ImGuiUtil.HelpMarker(string.Format(Language.Options_NativeItemTooltips_Description, Plugin.PluginName));
|
||||
ImGui.Checkbox(
|
||||
Language.Options_NativeItemTooltips_Name,
|
||||
ref Mutable.NativeItemTooltips
|
||||
);
|
||||
ImGuiUtil.HelpMarker(
|
||||
string.Format(Language.Options_NativeItemTooltips_Description, Plugin.PluginName)
|
||||
);
|
||||
|
||||
if (Mutable.NativeItemTooltips)
|
||||
{
|
||||
ImGuiUtil.DragFloatVertical(Language.Options_TooltipOffset_Name, Language.Options_TooltipOffset_Desc, ref Mutable.TooltipOffset, 1, 0f, 400f, $"{Mutable.TooltipOffset:N0}px", ImGuiSliderFlags.AlwaysClamp);
|
||||
ImGuiUtil.DragFloatVertical(
|
||||
Language.Options_TooltipOffset_Name,
|
||||
Language.Options_TooltipOffset_Desc,
|
||||
ref Mutable.TooltipOffset,
|
||||
1,
|
||||
0f,
|
||||
400f,
|
||||
$"{Mutable.TooltipOffset:N0}px",
|
||||
ImGuiSliderFlags.AlwaysClamp
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user