Add Prefabs tab to API manual

This commit is contained in:
GriffinR 2022-09-24 19:21:53 -04:00
parent c81829cd3f
commit af955fd218

View file

@ -178,7 +178,7 @@ Callbacks
.. js:function:: onMapViewTabChanged(oldTab, newTab)
Called when the selected tab in the map view tab bar is changed. Tabs are indexed from left to right, starting at 0 (``0``: Metatiles, ``1``: Collision).
Called when the selected tab in the map view tab bar is changed. Tabs are indexed from left to right, starting at 0 (``0``: Metatiles, ``1``: Collision, ``2``: Prefabs).
:param number oldTab: the index of the previously selected tab
:param number newTab: the index of the newly selected tab
@ -1244,13 +1244,13 @@ All settings functions are callable via the global ``utility`` object.
.. js:function:: utility.getMapViewTab()
Gets the index of the currently selected map view tab. Tabs are indexed from left to right, starting at 0 (``0``: Metatiles, ``1``: Collision).
Gets the index of the currently selected map view tab. Tabs are indexed from left to right, starting at 0 (``0``: Metatiles, ``1``: Collision, ``2``: Prefabs).
:returns number: current map view tab index
.. js:function:: utility.setMapViewTab(tab)
Sets the currently selected map view tab. Tabs are indexed from left to right, starting at 0 (``0``: Metatiles, ``1``: Collision).
Sets the currently selected map view tab. Tabs are indexed from left to right, starting at 0 (``0``: Metatiles, ``1``: Collision, ``2``: Prefabs).
:param number tab: index of the tab to select