Add Prefabs tab to API manual
This commit is contained in:
parent
c81829cd3f
commit
af955fd218
1 changed files with 4 additions and 4 deletions
|
@ -178,7 +178,7 @@ Callbacks
|
||||||
|
|
||||||
.. js:function:: onMapViewTabChanged(oldTab, newTab)
|
.. 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 oldTab: the index of the previously selected tab
|
||||||
:param number newTab: the index of the newly 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()
|
.. 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
|
:returns number: current map view tab index
|
||||||
|
|
||||||
.. js:function:: utility.setMapViewTab(tab)
|
.. 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
|
:param number tab: index of the tab to select
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue