Changes

Jump to navigation Jump to search
→‎Events (SMAPI 3.0): + display events
Line 244: Line 244:  
{{SMAPI upcoming|3.0}}
 
{{SMAPI upcoming|3.0}}
 
SMAPI 3.0 will introduce a new event system that's much more powerful, flexible, and consistent. You can try these events now, but '''these are preview prototypes and may change at any time'''. See [[Modding:Migrate to SMAPI 3.0]] for details.
 
SMAPI 3.0 will introduce a new event system that's much more powerful, flexible, and consistent. You can try these events now, but '''these are preview prototypes and may change at any time'''. See [[Modding:Migrate to SMAPI 3.0]] for details.
 +
 +
===Display===
 +
<tt>this.Helper.Events.Displays</tt> has events linked to UI and drawing to the screen.
 +
 +
{| class="wikitable"
 +
|-
 +
! event
 +
! summary
 +
{{/event
 +
|name = MenuChanged
 +
|desc = Raised after a game menu is opened, closed, or replaced.
 +
 +
|arg name 1 = <tt>e.NewMenu</tt>
 +
|arg type 1 = <tt>IClickableMenu</tt>
 +
|arg desc 1 = The previous menu instance (or <tt>null</tt> if none).
 +
 +
|arg name 2 = <tt>e.PriorMenu</tt>
 +
|arg type 2 = <tt>IClickableMenu</tt>
 +
|arg desc 2 = The new menu instance (or <tt>null</tt> if none).
 +
}}
 +
|}
 +
    
===Game loop===
 
===Game loop===
translators
8,445

edits

Navigation menu