From 7bd8e95c0dce26b566bc7e9d232cbfd323f6fbb7 Mon Sep 17 00:00:00 2001 From: SchimmelSpreu83 Date: Tue, 25 Feb 2025 22:36:26 +0100 Subject: [PATCH] Added a temporary icon --- asset_src/pictures/icons/icon.svg | 132 +++++++++++++++++ .../components/general/player_spawn_point.gd | 3 +- source/godot_icon.svg | 1 + source/godot_icon.svg.import | 37 +++++ source/icon.svg | 133 +++++++++++++++++- source/icon.svg.import | 4 +- source/project.godot | 2 +- 7 files changed, 307 insertions(+), 5 deletions(-) create mode 100644 asset_src/pictures/icons/icon.svg create mode 100644 source/godot_icon.svg create mode 100644 source/godot_icon.svg.import diff --git a/asset_src/pictures/icons/icon.svg b/asset_src/pictures/icons/icon.svg new file mode 100644 index 0000000..2b5a587 --- /dev/null +++ b/asset_src/pictures/icons/icon.svg @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/components/general/player_spawn_point.gd b/source/components/general/player_spawn_point.gd index 6c6cd4e..85c6d2a 100644 --- a/source/components/general/player_spawn_point.gd +++ b/source/components/general/player_spawn_point.gd @@ -9,7 +9,8 @@ var idx_label: Label3D func _init() -> void: if Engine.is_editor_hint(): - add_child(load("res://components/characters/player/player_character.tscn").instantiate(), false, Node.INTERNAL_MODE_FRONT) + var player_scene: PackedScene = load("res://components/characters/player/player_character.tscn") + add_child(player_scene.instantiate(), false, Node.INTERNAL_MODE_FRONT) # Setup label. idx_label = Label3D.new() diff --git a/source/godot_icon.svg b/source/godot_icon.svg new file mode 100644 index 0000000..9d8b7fa --- /dev/null +++ b/source/godot_icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/source/godot_icon.svg.import b/source/godot_icon.svg.import new file mode 100644 index 0000000..45a434b --- /dev/null +++ b/source/godot_icon.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dhw8y2oqxvgwu" +path="res://.godot/imported/godot_icon.svg-7b3f4db08ef4bccb8acaa5db9e9fe760.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://godot_icon.svg" +dest_files=["res://.godot/imported/godot_icon.svg-7b3f4db08ef4bccb8acaa5db9e9fe760.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 diff --git a/source/icon.svg b/source/icon.svg index 9d8b7fa..11eb560 100644 --- a/source/icon.svg +++ b/source/icon.svg @@ -1 +1,132 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/icon.svg.import b/source/icon.svg.import index 5d80b17..5263cf3 100644 --- a/source/icon.svg.import +++ b/source/icon.svg.import @@ -2,7 +2,7 @@ importer="texture" type="CompressedTexture2D" -uid="uid://dhw8y2oqxvgwu" +uid="uid://bovb32x4x3ps5" path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex" metadata={ "vram_texture": false @@ -32,6 +32,6 @@ process/hdr_as_srgb=false process/hdr_clamp_exposure=false process/size_limit=0 detect_3d/compress_to=1 -svg/scale=1.0 +svg/scale=4.0 editor/scale_with_editor_scale=false editor/convert_colors_with_editor_theme=false diff --git a/source/project.godot b/source/project.godot index 8fa3f93..93d03f7 100644 --- a/source/project.godot +++ b/source/project.godot @@ -12,7 +12,7 @@ config_version=5 config/name="MagicNStuff" config/features=PackedStringArray("4.4", "Forward Plus") -config/icon="res://icon.svg" +config/icon="uid://bovb32x4x3ps5" [autoload]