Script Canvas: Added take screenshot button to toolbar
Signed-off-by: lsemp3d <58790905+lsemp3d@users.noreply.github.com>
This commit is contained in:
@@ -513,7 +513,6 @@ namespace ScriptCanvasEditor
|
||||
m_editorToolbar->AddCustomAction(m_createFunctionOutput);
|
||||
connect(m_createFunctionOutput, &QToolButton::clicked, this, &MainWindow::CreateFunctionOutput);
|
||||
|
||||
|
||||
{
|
||||
m_validateGraphToolButton = new QToolButton();
|
||||
m_validateGraphToolButton->setToolTip("Will run a validation check on the current graph and report any warnings/errors discovered.");
|
||||
@@ -523,6 +522,18 @@ namespace ScriptCanvasEditor
|
||||
|
||||
m_editorToolbar->AddCustomAction(m_validateGraphToolButton);
|
||||
|
||||
// Screenshot
|
||||
{
|
||||
m_takeScreenshot = new QToolButton();
|
||||
m_takeScreenshot->setToolTip("Captures a full resolution screenshot of the entire graph or selected nodes into the clipboard");
|
||||
m_takeScreenshot->setIcon(QIcon(":/ScriptCanvasEditorResources/Resources/scriptcanvas_screenshot.png"));
|
||||
m_takeScreenshot->setEnabled(false);
|
||||
}
|
||||
|
||||
m_editorToolbar->AddCustomAction(m_takeScreenshot);
|
||||
connect(m_takeScreenshot, &QToolButton::clicked, this, &MainWindow::OnScreenshot);
|
||||
|
||||
|
||||
connect(m_validateGraphToolButton, &QToolButton::clicked, this, &MainWindow::OnValidateCurrentGraph);
|
||||
|
||||
m_layout->addWidget(m_editorToolbar);
|
||||
@@ -3211,6 +3222,7 @@ namespace ScriptCanvasEditor
|
||||
|
||||
m_createFunctionOutput->setEnabled(enabled);
|
||||
m_createFunctionInput->setEnabled(enabled);
|
||||
m_takeScreenshot->setEnabled(enabled);
|
||||
|
||||
// File Menu
|
||||
ui->action_Close->setEnabled(enabled);
|
||||
|
||||
@@ -648,6 +648,7 @@ namespace ScriptCanvasEditor
|
||||
|
||||
QToolButton* m_createFunctionInput = nullptr;
|
||||
QToolButton* m_createFunctionOutput = nullptr;
|
||||
QToolButton* m_takeScreenshot = nullptr;
|
||||
|
||||
QToolButton* m_createScriptCanvas = nullptr;
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ef1d048b1ef82137424b6c346e7f87f156e97402ecc89eca8c0dc0e2b6acc395
|
||||
size 400
|
||||
@@ -34,6 +34,7 @@
|
||||
<file>Resources/scriptcanvas_nodes.png</file>
|
||||
<file>Resources/scriptcanvas_outliner.png</file>
|
||||
<file>Resources/scriptcanvas_properties.png</file>
|
||||
<file>Resources/scriptcanvas_screenshot.png</file>
|
||||
<file>Resources/scriptcanvas_variables.png</file>
|
||||
<file>Resources/settings_icon.png</file>
|
||||
<file>Resources/settings_dropdown_icon.png</file>
|
||||
|
||||
Reference in New Issue
Block a user