Merge pull request #7262 from aws-lumberyard-dev/scripting/screenshot_toolbutton

Script Canvas: Added a toolbar button to capture a screenshot
monroegm-disable-blank-issue-2
Luis Sempé 4 years ago committed by GitHub
commit eb84f54138
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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>

Loading…
Cancel
Save