summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-06-28 07:51:36 +0200
committerGitHub <noreply@github.com>2017-06-28 07:51:36 +0200
commitf59430beef2fa0d34670b4533167f03018454b00 (patch)
treea15ad2c9dd78cf3d00cbe55ae187d9e12924f1d3 /editor
parent7fad30fb9ab0ea19d67b2640668cbb88ebb1747c (diff)
parenta2fd89bbe20d95bffe57c331bd43aff947c55d5e (diff)
Merge pull request #9419 from eska014/native-run
Subtle native-run buttons
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_export.h1
-rw-r--r--editor/editor_run_native.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_export.h b/editor/editor_export.h
index 740f05174b..64381fbb35 100644
--- a/editor/editor_export.h
+++ b/editor/editor_export.h
@@ -197,6 +197,7 @@ public:
};
virtual Error run(const Ref<EditorExportPreset> &p_preset, int p_device, int p_debug_flags) { return OK; }
+ virtual Ref<Texture> get_run_icon() const { return get_logo(); }
virtual bool can_export(const Ref<EditorExportPreset> &p_preset, String &r_error, bool &r_missing_templates) const = 0;
diff --git a/editor/editor_run_native.cpp b/editor/editor_run_native.cpp
index 4a767621ef..52b7e6992d 100644
--- a/editor/editor_run_native.cpp
+++ b/editor/editor_run_native.cpp
@@ -41,7 +41,7 @@ void EditorRunNative::_notification(int p_what) {
Ref<EditorExportPlatform> eep = EditorExport::get_singleton()->get_export_platform(i);
if (eep.is_null())
continue;
- Ref<ImageTexture> icon = eep->get_logo();
+ Ref<ImageTexture> icon = eep->get_run_icon();
if (!icon.is_null()) {
Ref<Image> im = icon->get_data();
im = im->duplicate();