Leave only one track type, WIP: track deletion.

This commit is contained in:
2025-07-27 23:52:25 +02:00
parent 90e85f5404
commit ecadfb7033
15 changed files with 190 additions and 218 deletions

View File

@@ -1,9 +1,9 @@
[gd_scene load_steps=6 format=3 uid="uid://c3kajrpp2ux7"]
[ext_resource type="Theme" uid="uid://b8rk41gjual2b" path="res://Assets/DefaultTheme.tres" id="1_tbi88"]
[ext_resource type="Texture2D" uid="uid://bwfbs4jxbia3o" path="res://Assets/Icons/microphone_track.svg" id="2_r2pin"]
[ext_resource type="Script" uid="uid://nq2n8r8tq3nt" path="res://Scripts/Track.gd" id="2_rsf0h"]
[ext_resource type="FontFile" uid="uid://ctw3g5gundhpj" path="res://Assets/Fonts/InterVariable.ttf" id="3_12y3l"]
[ext_resource type="Script" uid="uid://dxqa86sq21uac" path="res://Scripts/TrackLineEdit.gd" id="4_2nwak"]
[sub_resource type="FontVariation" id="FontVariation_lbdn3"]
base_font = ExtResource("3_12y3l")
@@ -12,73 +12,86 @@ variation_opentype = {
2003265652: 500
}
[node name="Track" type="Control"]
clip_children = 1
custom_minimum_size = Vector2(128, 64)
layout_mode = 3
anchors_preset = 0
offset_right = 382.0
offset_bottom = 64.0
theme = ExtResource("1_tbi88")
[node name="Track" type="Button"]
clip_children = 2
custom_minimum_size = Vector2(0, 40)
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_right = -1466.0
offset_bottom = -1040.0
grow_horizontal = 2
grow_vertical = 2
theme_type_variation = &"Track"
script = ExtResource("2_rsf0h")
[node name="PanelContainer" type="PanelContainer" parent="."]
[node name="HBoxContainer" type="HBoxContainer" parent="."]
clip_children = 1
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_type_variation = &"Track"
mouse_filter = 2
[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer"]
clip_children = 1
layout_mode = 2
[node name="ColorStrip" type="ColorRect" parent="PanelContainer/HBoxContainer"]
[node name="ColorStrip" type="ColorRect" parent="HBoxContainer"]
self_modulate = Color(0.699653, 0.699654, 0.699653, 1)
clip_contents = true
custom_minimum_size = Vector2(2, 0)
layout_mode = 2
mouse_filter = 2
color = Color(0.435294, 0.435294, 0.435294, 1)
[node name="Body" type="MarginContainer" parent="PanelContainer/HBoxContainer"]
[node name="Body" type="MarginContainer" parent="HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
mouse_filter = 2
theme_override_constants/margin_left = 4
theme_override_constants/margin_top = 4
theme_override_constants/margin_right = 4
theme_override_constants/margin_bottom = 4
[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer/HBoxContainer/Body"]
[node name="HBoxContainer" type="HBoxContainer" parent="HBoxContainer/Body"]
layout_mode = 2
mouse_filter = 2
[node name="NameIconControls" type="VBoxContainer" parent="PanelContainer/HBoxContainer/Body/HBoxContainer"]
[node name="NameIconControls" type="VBoxContainer" parent="HBoxContainer/Body/HBoxContainer"]
clip_children = 1
layout_mode = 2
size_flags_horizontal = 3
mouse_filter = 2
theme_override_constants/separation = 4
alignment = 1
[node name="IconAndName" type="HBoxContainer" parent="PanelContainer/HBoxContainer/Body/HBoxContainer/NameIconControls"]
[node name="IconAndName" type="HBoxContainer" parent="HBoxContainer/Body/HBoxContainer/NameIconControls"]
custom_minimum_size = Vector2(0, 32)
layout_mode = 2
mouse_filter = 2
[node name="TrackIcon" type="TextureRect" parent="PanelContainer/HBoxContainer/Body/HBoxContainer/NameIconControls/IconAndName"]
[node name="TrackIcon" type="TextureRect" parent="HBoxContainer/Body/HBoxContainer/NameIconControls/IconAndName"]
visible = false
modulate = Color(0.43134, 0.43134, 0.43134, 1)
custom_minimum_size = Vector2(16, 16)
layout_mode = 2
size_flags_horizontal = 0
mouse_filter = 2
texture = ExtResource("2_r2pin")
expand_mode = 2
[node name="TrackName" type="LineEdit" parent="PanelContainer/HBoxContainer/Body/HBoxContainer/NameIconControls/IconAndName"]
[node name="TrackName" type="LineEdit" parent="HBoxContainer/Body/HBoxContainer/NameIconControls/IconAndName"]
unique_name_in_owner = true
custom_minimum_size = Vector2(256, 0)
layout_mode = 2
size_flags_horizontal = 3
size_flags_horizontal = 0
size_flags_vertical = 4
theme_override_fonts/font = SubResource("FontVariation_lbdn3")
text = "Track Name"
expand_to_text_length = true
placeholder_text = "Empty Track"
context_menu_enabled = false
flat = true
draw_control_chars = true
caret_blink = true
script = ExtResource("4_2nwak")
[connection signal="text_submitted" from="PanelContainer/HBoxContainer/Body/HBoxContainer/NameIconControls/IconAndName/TrackName" to="PanelContainer/HBoxContainer/Body/HBoxContainer/NameIconControls/IconAndName/TrackName" method="release_focus" unbinds=1]
[node name="PopupMenu" type="PopupMenu" parent="."]
unique_name_in_owner = true