diff --git a/Scripts/Scenes/Play.cs b/Scripts/Scenes/Play.cs index b698a06..f372025 100644 --- a/Scripts/Scenes/Play.cs +++ b/Scripts/Scenes/Play.cs @@ -32,6 +32,7 @@ namespace WacK.Scenes // TunnelObjects we can instantiate public static PackedScene noteTouch = GD.Load("res://Things/TunnelObjects/Notes/NoteTouch.tscn"); public static PackedScene noteHold = GD.Load("res://Things/TunnelObjects/Notes/NoteHold.tscn"); + public static PackedScene noteChain = GD.Load("res://Things/TunnelObjects/Notes/NoteChain.tscn"); [Export] public Control noteDisplay; @@ -89,6 +90,9 @@ namespace WacK.Scenes case NotePlayType.Touch: nNote = noteTouch.Instantiate(); break; + case NotePlayType.Untimed: + nNote = noteChain.Instantiate(); + break; default: continue; } diff --git a/Things/TunnelObjects/Notes/NoteChain.tscn b/Things/TunnelObjects/Notes/NoteChain.tscn new file mode 100644 index 0000000..1f18ed2 --- /dev/null +++ b/Things/TunnelObjects/Notes/NoteChain.tscn @@ -0,0 +1,24 @@ +[gd_scene load_steps=3 format=3 uid="uid://dmaf7ww28ek72"] + +[ext_resource type="Script" path="res://Scripts/Things/TunnelObjects/THNotePlay.cs" id="1_o1r8c"] +[ext_resource type="Texture2D" uid="uid://cn8esiei5u0hf" path="res://_Assets/Textures/Notes/Chain.png" id="2_i26u3"] + +[node name="NoteChain" type="Control"] +layout_mode = 3 +anchors_preset = 0 +offset_right = 200.0 +offset_bottom = 24.0 +script = ExtResource("1_o1r8c") + +[node name="NinePatchRect" type="NinePatchRect" parent="."] +layout_mode = 1 +anchors_preset = -1 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_top = -36.0 +offset_bottom = -24.0 +grow_horizontal = 2 +grow_vertical = 2 +texture = ExtResource("2_i26u3") +patch_margin_left = 12 +patch_margin_right = 12 diff --git a/_Assets/Textures/Notes/Chain.png b/_Assets/Textures/Notes/Chain.png new file mode 100644 index 0000000..182d32f Binary files /dev/null and b/_Assets/Textures/Notes/Chain.png differ diff --git a/_Assets/Textures/Notes/Chain.png.import b/_Assets/Textures/Notes/Chain.png.import new file mode 100644 index 0000000..0762236 --- /dev/null +++ b/_Assets/Textures/Notes/Chain.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cn8esiei5u0hf" +path="res://.godot/imported/Chain.png-b122c4429315606b8d96481b93cc6c89.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://_Assets/Textures/Notes/Chain.png" +dest_files=["res://.godot/imported/Chain.png-b122c4429315606b8d96481b93cc6c89.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 diff --git a/_Assets/Textures/Notes/Notes.xcf b/_Assets/Textures/Notes/Notes.xcf index b112096..ebb5630 100644 Binary files a/_Assets/Textures/Notes/Notes.xcf and b/_Assets/Textures/Notes/Notes.xcf differ