This wiki is a read-only version of the Stardew Valley Wiki. The official editable wiki maintained by ConcernedApe can be found at stardewvalleywiki.com

Changes

Jump to: navigation, search

Modding:Migrate to SMAPI 3.0

2,216 bytes added, 05:46, 2 June 2018
Event changes: + input events
|-
! old event
! →! new equivalentevent
! conversion notes
|-
| <tt>ContentEvents.AfterLocaleChanged</tt>
| →
| ''TODO''
|
|-
| <tt>ControlEvents.ControllerButtonPressed</tt>
| ''TODO''| <tt>Input.ButtonPressed</tt>| Mostly equivalent.* Remove <tt>e.PlayerIndex</tt> (this was always <tt>PlayerIndex.One</tt>).* Change <tt>e.ButtonPressed</tt> to <tt>e.Button</tt>, which is now an [[Modding:Modder Guide/APIs/Utilities#Input|<tt>SButton</tt>]] value.
|-
| <tt>ControlEvents.ControllerButtonReleased</tt>
| ''TODO''| <tt>Input.ButtonReleased</tt>| Mostly equivalent.* Remove <tt>e.PlayerIndex</tt> (this was always <tt>PlayerIndex.One</tt>).* Change <tt>e.ButtonPressed</tt> to <tt>e.Button</tt>, which is now an [[Modding:Modder Guide/APIs/Utilities#Input|<tt>SButton</tt>]] value. 
|-
| <tt>ControlEvents.ControllerTriggerPressed</tt>
| ''TODO''| <tt>Input.ButtonPressed</tt>| Mostly equivalent.* Remove <tt>e.PlayerIndex</tt> (this was always <tt>PlayerIndex.One</tt>).* Remove <tt>e.Value</tt>.* Change <tt>e.ButtonPressed</tt> to <tt>e.Button</tt>, which is now an [[Modding:Modder Guide/APIs/Utilities#Input|<tt>SButton</tt>]] value.
|-
| <tt>ControlEvents.ControllerTriggerReleased</tt>
| ''TODO''| <tt>Input.ButtonReleased</tt>| Mostly equivalent.* Remove <tt>e.PlayerIndex</tt> (this was always <tt>PlayerIndex.One</tt>).* Remove <tt>e.Value</tt>.* Change <tt>e.ButtonPressed</tt> to <tt>e.Button</tt>, which is now an [[Modding:Modder Guide/APIs/Utilities#Input|<tt>SButton</tt>]] value.
|-
| <tt>ControlEvents.KeyboardChanged</tt>
| ''TODO''| <tt>Input.ButtonPressed</tt><br /><tt>Input.ButtonReleased</tt>| Not directly equivalent; may need to rewrite affected code.
|-
| <tt>ControlEvents.KeyPressed</tt>
| ''TODO''| <tt>Input.ButtonPressed</tt>| Mostly equivalent.* Change <tt>e.KeyPressed</tt> to <tt>e.Button</tt>, which is now an [[Modding:Modder Guide/APIs/Utilities#Input|<tt>SButton</tt>]] value.
|-
| <tt>ControlEvents.KeyReleased</tt>
| ''TODO''| <tt>Input.ButtonReleased</tt>| Mostly equivalent.* Change <tt>e.KeyPressed</tt> to <tt>e.Button</tt>, which is now an [[Modding:Modder Guide/APIs/Utilities#Input|<tt>SButton</tt>]] value.
|-
| <tt>ControlEvents.MouseChanged</tt>
| →
| ''TODO''
|
|-
| <tt>GameEvents.EighthUpdateTick</tt>
| →
| ''TODO''
|
|-
| <tt>GameEvents.FirstUpdateTick</tt>
| →
| ''TODO''
|
|-
| <tt>GameEvents.FourthUpdateTick</tt>
| →
| ''TODO''
|
|-
| <tt>GameEvents.HalfSecondTick</tt>
| →
| ''TODO''
|
|-
| <tt>GameEvents.OneSecondTick</tt>
| →
| ''TODO''
|
|-
| <tt>GameEvents.QuarterSecondTick</tt>
| →
| ''TODO''
|
|-
| <tt>GameEvents.SecondUpdateTick</tt>
| →
| ''TODO''
|
|-
| <tt>GameEvents.UpdateTick</tt>
| →
| ''TODO''
|
|-
| <tt>GraphicsEvents.OnPostRenderEvent</tt>
| →
| ''TODO''
|
|-
| <tt>GraphicsEvents.OnPostRenderGuiEvent</tt>
| →
| ''TODO''
|
|-
| <tt>GraphicsEvents.OnPostRenderHudEvent</tt>
| →
| ''TODO''
|
|-
| <tt>GraphicsEvents.OnPreRenderEvent</tt>
| →
| ''TODO''
|
|-
| <tt>GraphicsEvents.OnPreRenderGuiEvent</tt>
| →
| ''TODO''
|
|-
| <tt>GraphicsEvents.OnPreRenderHudEvent</tt>
| →
| ''TODO''
|
|-
| <tt>GraphicsEvents.Resize</tt>
| →
| ''TODO''
|
|-
| <tt>InputEvents.ButtonPressed</tt>
| ''TODO''| <tt>Input.ButtonPressed</tt>| Mostly equivalent.* Change <tt>e.IsActionButton</tt> to <tt>e.Button.IsActionButton()</tt>.* Change <tt>e.IsUseToolButton</tt> to <tt>e.Button.IsUseToolButton()</tt>.
|-
| <tt>InputEvents.ButtonReleased</tt>
| ''TODO''| <tt>Input.ButtonReleased</tt>| Mostly equivalent.* Change <tt>e.IsActionButton</tt> to <tt>e.Button.IsActionButton()</tt>.* Change <tt>e.IsUseToolButton</tt> to <tt>e.Button.IsUseToolButton()</tt>.
|-
| <tt>LocationEvents.BuildingsChanged</tt>
| →
| <tt>World.BuildingListChanged</tt>
| Equivalent.
|-
| <tt>LocationEvents.LocationsChanged</tt>
| →
| <tt>World.LocationListChanged</tt>
| Equivalent.
|-
| <tt>LocationEvents.ObjectsChanged</tt>
| →
| <tt>World.ObjectListChanged</tt>
| Equivalent.
|-
| <tt>MenuEvents.MenuChanged</tt>
| →
| ''TODO''
|
|-
| <tt>MenuEvents.MenuClosed</tt>
| →
| ''TODO''
|
|-
| <tt>MineEvents.MineLevelChanged</tt>
| →
| ''TODO''
|
|-
| <tt>MultiplayerEvents.AfterMainBroadcast</tt>
| →
| ''TODO''
|
|-
| <tt>MultiplayerEvents.AfterMainSync</tt>
| →
| ''TODO''
|
|-
| <tt>MultiplayerEvents.BeforeMainBroadcast</tt>
| →
| ''TODO''
|
|-
| <tt>MultiplayerEvents.BeforeMainSync</tt>
| →
| ''TODO''
|
|-
| <tt>PlayerEvents.InventoryChanged</tt>
| →
| ''TODO''
|
|-
| <tt>PlayerEvents.LeveledUp</tt>
| →
| ''TODO''
|
|-
| <tt>PlayerEvents.Warped</tt>
| →
| ''TODO''
|
|-
| <tt>SaveEvents.AfterCreate</tt>
| →
| ''TODO''
|
|-
| <tt>SaveEvents.AfterLoad</tt>
| →
| ''TODO''
|
|-
| <tt>SaveEvents.AfterReturnToTitle</tt>
| →
| ''TODO''
|
|-
| <tt>SaveEvents.AfterSave</tt>
| →
| ''TODO''
|
|-
| <tt>SaveEvents.BeforeCreate</tt>
| →
| ''TODO''
|
|-
| <tt>SaveEvents.BeforeSave</tt>
| →
| ''TODO''
|
|-
| <tt>SpecialisedEvents.UnvalidatedUpdateTick</tt>
| →
| ''TODO''
|
|-
| <tt>TimeEvents.AfterDayStarted</tt>
| →
| ''TODO''
|
|-
| <tt>TimeEvents.TimeOfDayChanged</tt>
| →
| ''TODO''
|
Protected, translators
5,421
edits

Navigation menu