From a25eb456aa07cf401e29f50a31db6c8ee4efc915 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Wed, 14 Nov 2018 23:35:57 +0000 Subject: [PATCH] Added plugin icon --- .../tools/icons/icon_translation_editor.svg | 72 +++++++++++++++++++ .../icons/icon_translation_editor.svg.import | 29 ++++++++ .../zylann.translation_editor/tools/plugin.gd | 4 ++ 3 files changed, 105 insertions(+) create mode 100644 addons/zylann.translation_editor/tools/icons/icon_translation_editor.svg create mode 100644 addons/zylann.translation_editor/tools/icons/icon_translation_editor.svg.import diff --git a/addons/zylann.translation_editor/tools/icons/icon_translation_editor.svg b/addons/zylann.translation_editor/tools/icons/icon_translation_editor.svg new file mode 100644 index 0000000..9f67166 --- /dev/null +++ b/addons/zylann.translation_editor/tools/icons/icon_translation_editor.svg @@ -0,0 +1,72 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/addons/zylann.translation_editor/tools/icons/icon_translation_editor.svg.import b/addons/zylann.translation_editor/tools/icons/icon_translation_editor.svg.import new file mode 100644 index 0000000..f8b23d7 --- /dev/null +++ b/addons/zylann.translation_editor/tools/icons/icon_translation_editor.svg.import @@ -0,0 +1,29 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon_translation_editor.svg-4cd403549c8918c26dc2b3379a53ced2.stex" + +[deps] + +source_file="res://addons/zylann.translation_editor/tools/icons/icon_translation_editor.svg" +dest_files=[ "res://.import/icon_translation_editor.svg-4cd403549c8918c26dc2b3379a53ced2.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/addons/zylann.translation_editor/tools/plugin.gd b/addons/zylann.translation_editor/tools/plugin.gd index 08f1719..652fb6a 100644 --- a/addons/zylann.translation_editor/tools/plugin.gd +++ b/addons/zylann.translation_editor/tools/plugin.gd @@ -32,6 +32,10 @@ func get_plugin_name(): return "Localization" +func get_plugin_icon(): + return preload("icons/icon_translation_editor.svg") + + func make_visible(visible): _main_control.visible = visible