Changes

→‎Event changes: + input events
Line 48: Line 48:  
|-
 
|-
 
! old event
 
! old event
! new equivalent
+
! →
 +
! new event
 
! conversion notes
 
! conversion notes
 
|-
 
|-
 
| <tt>ContentEvents.AfterLocaleChanged</tt>
 
| <tt>ContentEvents.AfterLocaleChanged</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>ControlEvents.ControllerButtonPressed</tt>
 
| <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>
 
| <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>
 
| <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>
 
| <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>
 
| <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>
 
| <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>
 
| <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>
 
| <tt>ControlEvents.MouseChanged</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>GameEvents.EighthUpdateTick</tt>
 
| <tt>GameEvents.EighthUpdateTick</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>GameEvents.FirstUpdateTick</tt>
 
| <tt>GameEvents.FirstUpdateTick</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>GameEvents.FourthUpdateTick</tt>
 
| <tt>GameEvents.FourthUpdateTick</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>GameEvents.HalfSecondTick</tt>
 
| <tt>GameEvents.HalfSecondTick</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>GameEvents.OneSecondTick</tt>
 
| <tt>GameEvents.OneSecondTick</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>GameEvents.QuarterSecondTick</tt>
 
| <tt>GameEvents.QuarterSecondTick</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>GameEvents.SecondUpdateTick</tt>
 
| <tt>GameEvents.SecondUpdateTick</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>GameEvents.UpdateTick</tt>
 
| <tt>GameEvents.UpdateTick</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>GraphicsEvents.OnPostRenderEvent</tt>
 
| <tt>GraphicsEvents.OnPostRenderEvent</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>GraphicsEvents.OnPostRenderGuiEvent</tt>
 
| <tt>GraphicsEvents.OnPostRenderGuiEvent</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>GraphicsEvents.OnPostRenderHudEvent</tt>
 
| <tt>GraphicsEvents.OnPostRenderHudEvent</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>GraphicsEvents.OnPreRenderEvent</tt>
 
| <tt>GraphicsEvents.OnPreRenderEvent</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>GraphicsEvents.OnPreRenderGuiEvent</tt>
 
| <tt>GraphicsEvents.OnPreRenderGuiEvent</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>GraphicsEvents.OnPreRenderHudEvent</tt>
 
| <tt>GraphicsEvents.OnPreRenderHudEvent</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>GraphicsEvents.Resize</tt>
 
| <tt>GraphicsEvents.Resize</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>InputEvents.ButtonPressed</tt>
 
| <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>
 
| <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>LocationEvents.BuildingsChanged</tt>
 +
| →
 
| <tt>World.BuildingListChanged</tt>
 
| <tt>World.BuildingListChanged</tt>
 
| Equivalent.
 
| Equivalent.
 
|-
 
|-
 
| <tt>LocationEvents.LocationsChanged</tt>
 
| <tt>LocationEvents.LocationsChanged</tt>
 +
| →
 
| <tt>World.LocationListChanged</tt>
 
| <tt>World.LocationListChanged</tt>
 
| Equivalent.
 
| Equivalent.
 
|-
 
|-
 
| <tt>LocationEvents.ObjectsChanged</tt>
 
| <tt>LocationEvents.ObjectsChanged</tt>
 +
| →
 
| <tt>World.ObjectListChanged</tt>
 
| <tt>World.ObjectListChanged</tt>
 
| Equivalent.
 
| Equivalent.
 
|-
 
|-
 
| <tt>MenuEvents.MenuChanged</tt>
 
| <tt>MenuEvents.MenuChanged</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>MenuEvents.MenuClosed</tt>
 
| <tt>MenuEvents.MenuClosed</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>MineEvents.MineLevelChanged</tt>
 
| <tt>MineEvents.MineLevelChanged</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>MultiplayerEvents.AfterMainBroadcast</tt>
 
| <tt>MultiplayerEvents.AfterMainBroadcast</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>MultiplayerEvents.AfterMainSync</tt>
 
| <tt>MultiplayerEvents.AfterMainSync</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>MultiplayerEvents.BeforeMainBroadcast</tt>
 
| <tt>MultiplayerEvents.BeforeMainBroadcast</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>MultiplayerEvents.BeforeMainSync</tt>
 
| <tt>MultiplayerEvents.BeforeMainSync</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>PlayerEvents.InventoryChanged</tt>
 
| <tt>PlayerEvents.InventoryChanged</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>PlayerEvents.LeveledUp</tt>
 
| <tt>PlayerEvents.LeveledUp</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>PlayerEvents.Warped</tt>
 
| <tt>PlayerEvents.Warped</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>SaveEvents.AfterCreate</tt>
 
| <tt>SaveEvents.AfterCreate</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>SaveEvents.AfterLoad</tt>
 
| <tt>SaveEvents.AfterLoad</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>SaveEvents.AfterReturnToTitle</tt>
 
| <tt>SaveEvents.AfterReturnToTitle</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>SaveEvents.AfterSave</tt>
 
| <tt>SaveEvents.AfterSave</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>SaveEvents.BeforeCreate</tt>
 
| <tt>SaveEvents.BeforeCreate</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>SaveEvents.BeforeSave</tt>
 
| <tt>SaveEvents.BeforeSave</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>SpecialisedEvents.UnvalidatedUpdateTick</tt>
 
| <tt>SpecialisedEvents.UnvalidatedUpdateTick</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>TimeEvents.AfterDayStarted</tt>
 
| <tt>TimeEvents.AfterDayStarted</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
 
|-
 
|-
 
| <tt>TimeEvents.TimeOfDayChanged</tt>
 
| <tt>TimeEvents.TimeOfDayChanged</tt>
 +
| →
 
| ''TODO''
 
| ''TODO''
 
|  
 
|  
translators
8,404

edits