From e0cae47b293333c92cb668ce518843c6e315ef08 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 15 Apr 2024 22:58:18 +0200 Subject: [PATCH] Add custom icon for `Collectable` --- NOTICE.md | 1 + behaviours/collectable.gd | 1 + behaviours/collectable.svg | 39 +++++++++++++++++++++++++++++++ behaviours/collectable.svg.import | 37 +++++++++++++++++++++++++++++ 4 files changed, 78 insertions(+) create mode 100644 behaviours/collectable.svg create mode 100644 behaviours/collectable.svg.import diff --git a/NOTICE.md b/NOTICE.md index 8b0106d..7af921e 100644 --- a/NOTICE.md +++ b/NOTICE.md @@ -25,3 +25,4 @@ This project uses the following external assets: | `./temp/tank.wav` | https://freesound.org/people/JarredGibb/sounds/217273/ | CC0 | | `./temp/demon_dying.wav` | https://freesound.org/people/THE_bizniss/sounds/37823/ | Attribution 3 | | `./entities/coin.ogg` | https://freesound.org/people/forrisday/sounds/214509/ | Attribution 4 | +| `./behaviours/*.svg` | https://fontawesome.com/ | CC-BY 4.0 | diff --git a/behaviours/collectable.gd b/behaviours/collectable.gd index 28ba596..42cd58b 100644 --- a/behaviours/collectable.gd +++ b/behaviours/collectable.gd @@ -1,3 +1,4 @@ +@icon("res://behaviours/collectable.svg") extends Area2D class_name Collectable diff --git a/behaviours/collectable.svg b/behaviours/collectable.svg new file mode 100644 index 0000000..1625126 --- /dev/null +++ b/behaviours/collectable.svg @@ -0,0 +1,39 @@ + + + + + + + diff --git a/behaviours/collectable.svg.import b/behaviours/collectable.svg.import new file mode 100644 index 0000000..70b9a6e --- /dev/null +++ b/behaviours/collectable.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ds6w6y6v8ywg2" +path="res://.godot/imported/collectable.svg-5b05e2ea83b32a2349a97b4d9981d066.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://behaviours/collectable.svg" +dest_files=["res://.godot/imported/collectable.svg-5b05e2ea83b32a2349a97b4d9981d066.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false