From 9c4ccd5fecd65f59564df21f2278c6cf76fee5a2 Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Mon, 27 Oct 2025 21:52:02 +1000 Subject: [PATCH] event icon --- .../SharpIdeCodeEdit_Completions.cs | 4 ++ .../Completions/Resources/event-icon.svg | 49 +++++++++++++++++++ .../Resources/event-icon.svg.import | 43 ++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 src/SharpIDE.Godot/Features/Completions/Resources/event-icon.svg create mode 100644 src/SharpIDE.Godot/Features/Completions/Resources/event-icon.svg.import diff --git a/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit_Completions.cs b/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit_Completions.cs index b4e9073..4231015 100644 --- a/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit_Completions.cs +++ b/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit_Completions.cs @@ -13,6 +13,9 @@ public partial class SharpIdeCodeEdit private readonly Texture2D _propertyIcon = ResourceLoader.Load("uid://y5pwrwwrjqmc"); private readonly Texture2D _keywordIcon = ResourceLoader.Load("uid://b0ujhoq2xg2v0"); private readonly Texture2D _namespaceIcon = ResourceLoader.Load("uid://bob5blfjll4h3"); + private readonly Texture2D _eventIcon = ResourceLoader.Load("uid://c3upo3lxmgtls"); + // delegate + // enum private Texture2D? GetIconForCompletion(SymbolKind? symbolKind, TypeKind? typeKind, Accessibility? accessibility, bool isKeyword) { @@ -26,6 +29,7 @@ public partial class SharpIdeCodeEdit (SymbolKind.Field, _, _) => _fieldIcon, (SymbolKind.Property, _, _) => _propertyIcon, (SymbolKind.Namespace, _, _) => _namespaceIcon, + (SymbolKind.Event, _, _) => _eventIcon, _ => null }; return texture; diff --git a/src/SharpIDE.Godot/Features/Completions/Resources/event-icon.svg b/src/SharpIDE.Godot/Features/Completions/Resources/event-icon.svg new file mode 100644 index 0000000..2b14085 --- /dev/null +++ b/src/SharpIDE.Godot/Features/Completions/Resources/event-icon.svg @@ -0,0 +1,49 @@ + + + + + + + + diff --git a/src/SharpIDE.Godot/Features/Completions/Resources/event-icon.svg.import b/src/SharpIDE.Godot/Features/Completions/Resources/event-icon.svg.import new file mode 100644 index 0000000..6674615 --- /dev/null +++ b/src/SharpIDE.Godot/Features/Completions/Resources/event-icon.svg.import @@ -0,0 +1,43 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c3upo3lxmgtls" +path="res://.godot/imported/event-icon.svg-8e71c4d46d93b1117a9e34d4c1895e4f.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Features/Completions/Resources/event-icon.svg" +dest_files=["res://.godot/imported/event-icon.svg-8e71c4d46d93b1117a9e34d4c1895e4f.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 +svg/scale=0.1 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false