Changes

Jump to navigation Jump to search
→‎Display: + render step events in SMAPI 4.0.0
Line 281: Line 281:  
  |arg type 2 = <samp>Point</samp>
 
  |arg type 2 = <samp>Point</samp>
 
  |arg desc 2 = The new window width (<samp>e.NewSize.X</samp>) and height (<samp>e.NewSize.Y</samp>).
 
  |arg desc 2 = The new window width (<samp>e.NewSize.X</samp>) and height (<samp>e.NewSize.Y</samp>).
 +
}}
 +
{{/event
 +
|group = Display
 +
|name  = RenderingStep
 +
|desc  = {{SMAPI upcoming|4.0.0}} ''(Specialized)'' Raised before the game draws a specific step in the rendering cycle. This gives more granular control over render logic, but is more vulnerable to changes in game updates. Consider using one of the other render events if possible.
 +
 +
|arg name 1 = <samp>e.SpriteBatch</samp>
 +
|arg type 1 = <samp>SpriteBatch</samp>
 +
|arg desc 1 = The sprite batch being drawn. Add anything you want to appear on-screen to this sprite batch.
 +
 +
|arg name 2 = <samp>e.Step</samp>
 +
|arg type 2 = <samp>RenderSteps</samp>
 +
|arg desc 2 = The step being rendered in the draw cycle.
 +
}}
 +
{{/event
 +
|group = Display
 +
|name  = RenderedStep
 +
|desc  = {{SMAPI upcoming|4.0.0}} ''(Specialized)'' Raised after the game draws a specific step in the rendering cycle.  This gives more granular control over render logic, but is more vulnerable to changes in game updates. Consider using one of the other render events if possible.
 +
 +
|arg name 1 = <samp>e.SpriteBatch</samp>
 +
|arg type 1 = <samp>SpriteBatch</samp>
 +
|arg desc 1 = The sprite batch being drawn. Add anything you want to appear on-screen to this sprite batch.
 +
 +
|arg name 2 = <samp>e.Step</samp>
 +
|arg type 2 = <samp>RenderSteps</samp>
 +
|arg desc 2 = The step being rendered in the draw cycle.
 
}}
 
}}
 
|}
 
|}
translators
8,403

edits

Navigation menu