diff options
author | L. Krause <eska@eska.me> | 2017-05-25 20:57:13 +0200 |
---|---|---|
committer | L. Krause <eska@eska.me> | 2017-06-27 21:06:26 +0200 |
commit | 92367968e7f1416f33eebfa06c60cacf5c757f65 (patch) | |
tree | 3aeb61b8e0347446891e11859dd9ae230773b3d7 /editor | |
parent | 90592ccf03521cda14ee3a9576b671136da2021d (diff) |
Use custom native-run icons for Android and HTML5
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(); |