rithik-b_LeaderboardCore/LeaderboardCore/HarmonyPatches/PanelView_SetIsLoaded.cs
using HarmonyLib;
using System;
using System.Reflection;

namespace LeaderboardCore.HarmonyPatches
{
	[HarmonyPatch]
    internal class PanelView_SetIsLoaded
    {
		public static event Action<bool> IsLoadedChanged;
		private static MethodBase TargetMethod() => 
			Plugin.Instance.scoreSaber.Assembly.GetType("ScoreSaber.UI.Leaderboard.PanelView").GetMethod("set_isLoaded", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.SetField);

		private static void Postfix(bool ____isLoaded)
        {
			IsLoadedChanged?.Invoke(____isLoaded);
        }
	}
}
