added icon for editor

This commit is contained in:
Bram Dingelstad 2021-12-06 18:01:01 +01:00
parent 51c899eca6
commit 31447732ad

View file

@ -35,5 +35,9 @@ func get_plugin_name():
return 'Wol' return 'Wol'
func get_plugin_icon(): func get_plugin_icon():
print(get_editor_interface().get_base_control().get_icon('Node', 'EditorIcons')) var icon = ImageTexture.new()
return get_editor_interface().get_base_control().get_icon('Node', 'EditorIcons') var image = Image.new()
image.load('res://addons/Wol/icon-white.svg')
image.resize(34, 34)
icon.create_from_image(image)
return icon