summaryrefslogtreecommitdiff
path: root/StardewModdingAPI/Events/Menu.cs
blob: d3f3e0089908efc277be4df2c145c40e617041d7 (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 { };

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