Skip to content

Commit c9cdb52

Browse files
Add a proper editor icon (#3)
1 parent 46ac9d0 commit c9cdb52

File tree

4 files changed

+92
-2
lines changed

4 files changed

+92
-2
lines changed

CREDITS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Icons made by [Freepik](https://www.flaticon.com/authors/freepik) from [Flaticon](https://www.flaticon.com/).
Lines changed: 56 additions & 0 deletions
Loading
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="StreamTexture"
5+
path="res://.import/plugin-editor-icon.svg-b27733904a7899b70bf2e32c6ffbb24b.stex"
6+
metadata={
7+
"vram_texture": false
8+
}
9+
10+
[deps]
11+
12+
source_file="res://addons/dialogic/Images/plugin-editor-icon.svg"
13+
dest_files=[ "res://.import/plugin-editor-icon.svg-b27733904a7899b70bf2e32c6ffbb24b.stex" ]
14+
15+
[params]
16+
17+
compress/mode=0
18+
compress/lossy_quality=0.7
19+
compress/hdr_mode=0
20+
compress/bptc_ldr=0
21+
compress/normal_map=0
22+
flags/repeat=0
23+
flags/filter=true
24+
flags/mipmaps=false
25+
flags/anisotropic=false
26+
flags/srgb=2
27+
process/fix_alpha_border=true
28+
process/premult_alpha=false
29+
process/HDR_as_SRGB=false
30+
process/invert_color=false
31+
stream=false
32+
size_limit=0
33+
detect_3d=true
34+
svg/scale=1.0

addons/dialogic/dialogic.gd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ func make_visible(visible):
2626
_editor_view.visible = visible
2727

2828
func get_plugin_icon():
29-
# Must return some kind of Texture for the icon.
30-
return get_editor_interface().get_base_control().get_icon("Node", "EditorIcons")
29+
return preload("res://addons/dialogic/Images/plugin-editor-icon.svg")
3130

3231
func _add_custom_editor_view():
3332
_editor_view = preload("res://addons/dialogic/Editor/EditorView.tscn").instance()

0 commit comments

Comments
 (0)