From b06070df5f9aab777c91f62e79a12d28e661fe0f Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Thu, 2 Jul 2020 15:27:57 -0500 Subject: [PATCH] Update docs --- docsrc/manual/scripting-capabilities.rst | 27 +++++++++++++++++++++++- src/mainwindow.cpp | 1 - 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/docsrc/manual/scripting-capabilities.rst b/docsrc/manual/scripting-capabilities.rst index 7f1a2662..129159e4 100644 --- a/docsrc/manual/scripting-capabilities.rst +++ b/docsrc/manual/scripting-capabilities.rst @@ -353,7 +353,7 @@ The following functions are related to an overlay that is drawn on top of the ma 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) @@ -483,6 +483,31 @@ The following functions are related to tilesets and their palettes. The function :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 ^^^^^^^^^^^^^^^^^^ diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 353c418d..94bae90b 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2440,7 +2440,6 @@ void MainWindow::on_checkBox_ToggleBorder_stateChanged(int selected) void MainWindow::on_actionTileset_Editor_triggered() { if (!this->tilesetEditor) { - logInfo("new one"); 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, &QObject::destroyed, [=](QObject *) { this->tilesetEditor = nullptr; });