− | |summary = Equivalent, except the new event isn't triggered during certain special cutscenes and minigames (''e.g.'', the [[Sebastian#Six Hearts|board game scene]]). | + | |summary = Equivalent, except the new event isn't triggered during certain special cutscenes and minigames (''e.g.,'' the [[Sebastian#Six Hearts|board game scene]]). |
| |old events = MenuEvents.MenuChanged, MenuEvents.MenuClosed | | |old events = MenuEvents.MenuChanged, MenuEvents.MenuClosed |
− | |summary = These caused a lot of confusion (''e.g.'', <samp>MenuEvents.MenuClosed</samp> wasn't called when a menu was closed and immediately replaced), so they've been combined into one event which is called when a menu is opened, closed, or replaced. You can check the <samp>e.OldMenu</samp> and <samp>e.NewMenu</samp> event args to know what the change is (''e.g.'', to match the old <samp>MenuEvents.MenuClosed</samp>, check <code>if (e.NewMenu == null)</code>). | + | |summary = These caused a lot of confusion (''e.g.,'' <samp>MenuEvents.MenuClosed</samp> wasn't called when a menu was closed and immediately replaced), so they've been combined into one event which is called when a menu is opened, closed, or replaced. You can check the <samp>e.OldMenu</samp> and <samp>e.NewMenu</samp> event args to know what the change is (''e.g.,'' to match the old <samp>MenuEvents.MenuClosed</samp>, check <code>if (e.NewMenu == null)</code>). |