Update docs

This commit is contained in:
Marcus Huderle 2020-07-02 15:27:57 -05:00
parent 7bece548fb
commit b06070df5f
2 changed files with 26 additions and 2 deletions

View file

@ -353,7 +353,7 @@ The following functions are related to an overlay that is drawn on top of the ma
Tileset Functions Tileset Functions
^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^
The following functions are related to tilesets and their palettes. The functions with "preview" in their name operate on a "fake" version of the palette colors. This means that changing these "preview" colors won't affect the actual tileset colors in the project. A good use of the "preview" palettes would be Day/Night tints, for example. The following functions are related to tilesets and how they are rendered. The functions with "preview" in their name operate on a "fake" version of the palette colors. This means that changing these "preview" colors won't affect the actual tileset colors in the project. A good use of the "preview" palettes would be Day/Night tints, for example.
.. js:function:: map.getPrimaryTilesetPalettePreview(paletteIndex) .. js:function:: map.getPrimaryTilesetPalettePreview(paletteIndex)
@ -483,6 +483,31 @@ The following functions are related to tilesets and their palettes. The function
:param string tileset: the tileset name :param string tileset: the tileset name
.. js:function:: map.getMetatileLayerOrder()
Gets the order that metatile layers are rendered.
:return array: array of layers. The bottom layer is represented as 0.
.. js:function:: map.setMetatileLayerOrder(order)
Sets the order that metatile layers are rendered.
:param array: array of layers. The bottom layer is represented as 0.
.. js:function:: map.getMetatileLayerOpacity()
Gets the opacities that metatile layers are rendered with.
:return array: array of opacities for each layer. The bottom layer is the first element.
.. js:function:: map.setMetatileLayerOpacity(opacities)
Sets the opacities that metatile layers are rendered with.
:param array: array of opacities for each layer. The bottom layer is the first element.
Settings Functions Settings Functions
^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^

View file

@ -2440,7 +2440,6 @@ void MainWindow::on_checkBox_ToggleBorder_stateChanged(int selected)
void MainWindow::on_actionTileset_Editor_triggered() void MainWindow::on_actionTileset_Editor_triggered()
{ {
if (!this->tilesetEditor) { if (!this->tilesetEditor) {
logInfo("new one");
this->tilesetEditor = new TilesetEditor(this->editor->project, this->editor->map, this); this->tilesetEditor = new TilesetEditor(this->editor->project, this->editor->map, this);
connect(this->tilesetEditor, SIGNAL(tilesetsSaved(QString, QString)), this, SLOT(onTilesetsSaved(QString, QString))); connect(this->tilesetEditor, SIGNAL(tilesetsSaved(QString, QString)), this, SLOT(onTilesetsSaved(QString, QString)));
connect(this->tilesetEditor, &QObject::destroyed, [=](QObject *) { this->tilesetEditor = nullptr; }); connect(this->tilesetEditor, &QObject::destroyed, [=](QObject *) { this->tilesetEditor = nullptr; });