You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docsrc/manual/scripting-capabilities.rst
+72-8Lines changed: 72 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1222,6 +1222,58 @@ All tileset functions are callable via the global ``map`` object.
1222
1222
:returns: the pixel data
1223
1223
:rtype: array
1224
1224
1225
+
.. |describe-metatile-layer-order|
1226
+
replace:: where ``0`` is the bottom layer, ``1`` is the middle layer, and ``2`` is the top layer. The default order is ``[0, 1, 2]``
1227
+
1228
+
.. |describe-metatile-layer-order-handling|
1229
+
replace:: If no elements are provided the layer order will be reset to the default. Any layer not listed in the provided ``order`` will not be rendered. Any additional elements after the first 3 are ignored
1230
+
1231
+
.. js:function::map.getMetatileLayerOrder()
1232
+
1233
+
Gets the order that metatile layers are rendered for the current layout, |describe-metatile-layer-order|.
1234
+
1235
+
If you'd like to get the default metatile layer order for all layouts, see :js:func:`utility.getMetatileLayerOrder` instead.
1236
+
1237
+
:returns: array of layers
1238
+
:rtype: array
1239
+
1240
+
.. js:function::map.setMetatileLayerOrder(order)
1241
+
1242
+
Sets the order that metatile layers are rendered for the current layout, |describe-metatile-layer-order|.
1243
+
1244
+
|describe-metatile-layer-order-handling|.
1245
+
1246
+
If you'd like to set the default metatile layer order for all layouts, see :js:func:`utility.setMetatileLayerOrder` instead.
1247
+
1248
+
:param order: array of layers
1249
+
:type order: array
1250
+
1251
+
.. |describe-metatile-layer-opacity|
1252
+
replace:: where the first element is the bottom layer, the second element is the middle layer, and the third element is the top layer. The default opacities are ``[1.0, 1.0, 1.0]``
1253
+
1254
+
.. |describe-metatile-layer-opacity-handling|
1255
+
replace:: Any additional elements after the first 3 are ignored. Any elements not provided will be rendered with opacity ``1.0``
1256
+
1257
+
.. js:function::map.getMetatileLayerOpacity()
1258
+
1259
+
Gets the opacities that metatile layers are rendered with for the current layout, |describe-metatile-layer-opacity|.
1260
+
1261
+
If you'd like to get the default metatile layer opacities for all layouts, see :js:func:`utility.getMetatileLayerOpacity` instead.
0 commit comments