diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-06-28 07:51:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-28 07:51:36 +0200 |
commit | f59430beef2fa0d34670b4533167f03018454b00 (patch) | |
tree | a15ad2c9dd78cf3d00cbe55ae187d9e12924f1d3 /editor | |
parent | 7fad30fb9ab0ea19d67b2640668cbb88ebb1747c (diff) | |
parent | a2fd89bbe20d95bffe57c331bd43aff947c55d5e (diff) |
Merge pull request #9419 from eska014/native-run
Subtle native-run buttons
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_export.h | 1 | ||||
-rw-r--r-- | editor/editor_run_native.cpp | 2 |
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(); |