Remember inspect panel size, add restore size button

This commit is contained in:
Tyfon
2024-05-08 13:49:33 -07:00
parent bf4774d3d2
commit 25209525a7
3 changed files with 135 additions and 1 deletions

View File

@@ -31,6 +31,7 @@ namespace UIFixes
public static ConfigEntry<WeaponPresetConfirmationOption> ShowPresetConfirmations { get; set; }
public static ConfigEntry<TransferConfirmationOption> ShowTransferConfirmations { get; set; }
public static ConfigEntry<bool> ShowModStats { get; set; }
public static ConfigEntry<bool> RememberInspectSize { get; set; }
// Input
public static ConfigEntry<bool> UseHomeEnd { get; set; }
@@ -82,6 +83,15 @@ namespace UIFixes
null,
new ConfigurationManagerAttributes { })));
configEntries.Add(RememberInspectSize = config.Bind(
GeneralSection,
"Remember Inspect Panel Size",
true,
new ConfigDescription(
"Save the size of the inspect panel when you resize it",
null,
new ConfigurationManagerAttributes { })));
// Input
configEntries.Add(UseHomeEnd = config.Bind(
InputSection,