add chain note drawing
This commit is contained in:
@@ -32,6 +32,7 @@ namespace WacK.Scenes
|
||||
// TunnelObjects we can instantiate
|
||||
public static PackedScene noteTouch = GD.Load<PackedScene>("res://Things/TunnelObjects/Notes/NoteTouch.tscn");
|
||||
public static PackedScene noteHold = GD.Load<PackedScene>("res://Things/TunnelObjects/Notes/NoteHold.tscn");
|
||||
public static PackedScene noteChain = GD.Load<PackedScene>("res://Things/TunnelObjects/Notes/NoteChain.tscn");
|
||||
|
||||
[Export]
|
||||
public Control noteDisplay;
|
||||
@@ -89,6 +90,9 @@ namespace WacK.Scenes
|
||||
case NotePlayType.Touch:
|
||||
nNote = noteTouch.Instantiate<THNotePlay>();
|
||||
break;
|
||||
case NotePlayType.Untimed:
|
||||
nNote = noteChain.Instantiate<THNotePlay>();
|
||||
break;
|
||||
default:
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
@@ -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
|
||||
Binary file not shown.
Reference in New Issue
Block a user