2016-03-23 08:36:04 +08:00
|
|
|
|
using System;
|
|
|
|
|
using StardewValley.Menus;
|
2016-03-04 22:05:36 +08:00
|
|
|
|
|
|
|
|
|
namespace StardewModdingAPI.Events
|
|
|
|
|
{
|
|
|
|
|
public static class MenuEvents
|
|
|
|
|
{
|
|
|
|
|
public static event EventHandler<EventArgsClickableMenuChanged> MenuChanged = delegate { };
|
2016-03-28 16:13:40 +08:00
|
|
|
|
public static event EventHandler<EventArgsClickableMenuClosed> MenuClosed = delegate { };
|
2016-03-04 22:05:36 +08:00
|
|
|
|
|
2016-03-27 17:05:36 +08:00
|
|
|
|
internal static void InvokeMenuChanged(IClickableMenu priorMenu, IClickableMenu newMenu)
|
2016-03-04 22:05:36 +08:00
|
|
|
|
{
|
|
|
|
|
MenuChanged.Invoke(null, new EventArgsClickableMenuChanged(priorMenu, newMenu));
|
|
|
|
|
}
|
2016-03-28 16:13:40 +08:00
|
|
|
|
|
|
|
|
|
internal static void InvokeMenuClosed(IClickableMenu priorMenu)
|
|
|
|
|
{
|
|
|
|
|
MenuClosed.Invoke(null, new EventArgsClickableMenuClosed(priorMenu));
|
|
|
|
|
}
|
2016-03-04 22:05:36 +08:00
|
|
|
|
}
|
2016-03-27 13:09:09 +08:00
|
|
|
|
}
|