summaryrefslogtreecommitdiff
path: root/StardewModdingAPI/Events/Menu.cs
blob: 466a364e70153a2afc12c6116777ed26a1d2e7f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;
using StardewValley.Menus;

namespace StardewModdingAPI.Events
{
    public static class MenuEvents
    {
        public static event EventHandler<EventArgsClickableMenuChanged> MenuChanged = delegate { };

        internal static void InvokeMenuChanged(IClickableMenu priorMenu, IClickableMenu newMenu)
        {
            MenuChanged.Invoke(null, new EventArgsClickableMenuChanged(priorMenu, newMenu));
        }
    }
}