From 328224ca652fb89507ce8433ea68fb0df3aba70f Mon Sep 17 00:00:00 2001 From: Tyfon <29051038+tyfon7@users.noreply.github.com> Date: Wed, 29 May 2024 14:33:43 -0700 Subject: [PATCH] Consistent access modifiers on inner patches --- Patches/FleaPrevSearchPatches.cs | 4 ++-- Patches/InspectWindowResizePatches.cs | 6 +++--- Patches/InspectWindowStatsPatches.cs | 10 +++++----- Patches/SyncScrollPositionPatches.cs | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Patches/FleaPrevSearchPatches.cs b/Patches/FleaPrevSearchPatches.cs index be598f7..4eed06b 100644 --- a/Patches/FleaPrevSearchPatches.cs +++ b/Patches/FleaPrevSearchPatches.cs @@ -36,7 +36,7 @@ namespace UIFixes new RagfairScreenShowPatch().Enable(); new OfferViewListCategoryPickedPatch().Enable(); new OfferViewListDoneLoadingPatch().Enable(); - new ChangedViewListType().Enable(); + new ChangedViewListTypePatch().Enable(); Settings.EnableFleaHistory.SettingChanged += (object sender, EventArgs args) => { @@ -268,7 +268,7 @@ namespace UIFixes } } - public class ChangedViewListType : ModulePatch + public class ChangedViewListTypePatch : ModulePatch { protected override MethodBase GetTargetMethod() { diff --git a/Patches/InspectWindowResizePatches.cs b/Patches/InspectWindowResizePatches.cs index ecf80d1..e04e491 100644 --- a/Patches/InspectWindowResizePatches.cs +++ b/Patches/InspectWindowResizePatches.cs @@ -31,7 +31,7 @@ namespace UIFixes new GrowInspectWindowDescriptionPatch().Enable(); } - private class SaveInspectWindowSizePatch : ModulePatch + public class SaveInspectWindowSizePatch : ModulePatch { protected override MethodBase GetTargetMethod() { @@ -57,7 +57,7 @@ namespace UIFixes } } - private class AddInspectWindowButtonsPatch : ModulePatch + public class AddInspectWindowButtonsPatch : ModulePatch { protected override MethodBase GetTargetMethod() { @@ -212,7 +212,7 @@ namespace UIFixes } } - private class GrowInspectWindowDescriptionPatch : ModulePatch + public class GrowInspectWindowDescriptionPatch : ModulePatch { protected override MethodBase GetTargetMethod() { diff --git a/Patches/InspectWindowStatsPatches.cs b/Patches/InspectWindowStatsPatches.cs index d8486cb..0d3aee5 100644 --- a/Patches/InspectWindowStatsPatches.cs +++ b/Patches/InspectWindowStatsPatches.cs @@ -25,7 +25,7 @@ namespace UIFixes new FormatFullValuesPatch().Enable(); } - private class CalculateModStatsPatch : ModulePatch + public class CalculateModStatsPatch : ModulePatch { protected override MethodBase GetTargetMethod() { @@ -89,7 +89,7 @@ namespace UIFixes // I wish I could prefix method_6 and update the compare item with the deep attributes, but that only works when adding a mod // When removing, current item and compare item end up the same since current item never considers the mod anyway // So I have to forcably call the refresh values method - private class CompareModStatsPatch : ModulePatch + public class CompareModStatsPatch : ModulePatch { protected override MethodBase GetTargetMethod() { @@ -141,7 +141,7 @@ namespace UIFixes } } - private class AddShowHideModStatsButtonPatch : ModulePatch + public class AddShowHideModStatsButtonPatch : ModulePatch { protected override MethodBase GetTargetMethod() { @@ -202,7 +202,7 @@ namespace UIFixes } } - private class FormatCompactValuesPatch : ModulePatch + public class FormatCompactValuesPatch : ModulePatch { protected override MethodBase GetTargetMethod() { @@ -223,7 +223,7 @@ namespace UIFixes } } - private class FormatFullValuesPatch : ModulePatch + public class FormatFullValuesPatch : ModulePatch { private static MethodInfo RoundToIntMethod; private static MethodInfo ToStringMethod; diff --git a/Patches/SyncScrollPositionPatches.cs b/Patches/SyncScrollPositionPatches.cs index d97d922..33e5be1 100644 --- a/Patches/SyncScrollPositionPatches.cs +++ b/Patches/SyncScrollPositionPatches.cs @@ -35,7 +35,7 @@ namespace UIFixes scrollRect.onValueChanged.AddListener(UpdateScrollPosition); } - private class SyncStashScrollPatch : ModulePatch + public class SyncStashScrollPatch : ModulePatch { protected override MethodBase GetTargetMethod() {