Add offer price hightlight; static patches classes

This commit is contained in:
Tyfon
2024-05-25 11:44:37 -07:00
parent 114df1551a
commit d18dfc0310
11 changed files with 80 additions and 29 deletions

View File

@@ -13,7 +13,7 @@ using UnityEngine.UI;
namespace UIFixes
{
public class ScrollPatches
public static class ScrollPatches
{
public static void Enable()
{
@@ -24,7 +24,7 @@ namespace UIFixes
new MouseScrollingSpeedPatch().Enable();
}
protected static void HandleInput(ScrollRect scrollRect)
private static void HandleInput(ScrollRect scrollRect)
{
if (scrollRect != null)
{
@@ -59,7 +59,7 @@ namespace UIFixes
}
// LightScrollers don't expose heights that I can see, so just fudge it with fake OnScroll events
protected static void HandleInput(LightScroller lightScroller)
private static void HandleInput(LightScroller lightScroller)
{
if (lightScroller != null)
{
@@ -97,7 +97,7 @@ namespace UIFixes
}
}
protected static IEnumerable<CodeInstruction> RemovePageUpDownHandling(IEnumerable<CodeInstruction> instructions)
private static IEnumerable<CodeInstruction> RemovePageUpDownHandling(IEnumerable<CodeInstruction> instructions)
{
foreach (var instruction in instructions)
{