Files
lddc/scenes/Main.tscn
T
2026-11-04 14:13:04 +01:00

94 lines
3.2 KiB
Plaintext

[gd_scene format=3 uid="uid://dsx8ygbmfsyj8"]
[ext_resource type="Script" uid="uid://c76vsjv0asi61" path="res://scripts/SystemAudioAnalyzer.gd" id="1_audio_analyzer"]
[ext_resource type="Script" uid="uid://b8bfvlbipx8j8" path="res://scripts/CompanionController.gd" id="2_companion"]
[ext_resource type="Texture2D" uid="uid://c2yvovlrnbclm" path="res://icon.svg" id="3_icon"]
[sub_resource type="SpriteFrames" id="SpriteFrames_1"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_icon")
}],
"loop": true,
"name": &"dance",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_icon")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_icon")
}],
"loop": true,
"name": &"sleep",
"speed": 2.0
}]
[node name="Main" type="Node2D" unique_id=36355540]
[node name="SystemAudioAnalyzer" type="Node" parent="." unique_id=1763523839]
script = ExtResource("1_audio_analyzer")
[node name="Companion" type="Node2D" parent="." unique_id=444784374 node_paths=PackedStringArray("audio_analyzer", "sprite", "debug_label", "volume_bar", "app_selector")]
position = Vector2(200, 280)
script = ExtResource("2_companion")
audio_analyzer = NodePath("../SystemAudioAnalyzer")
sprite = NodePath("AnimatedSprite2D")
debug_label = NodePath("../UI/MarginContainer/VBoxContainer/DebugLabel")
volume_bar = NodePath("../UI/MarginContainer/VBoxContainer/VolumeBar")
app_selector = NodePath("../UI/MarginContainer/VBoxContainer/AppSelector")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Companion" unique_id=1873221699]
scale = Vector2(1.2, 1.2)
sprite_frames = SubResource("SpriteFrames_1")
animation = &"idle"
[node name="UI" type="CanvasLayer" parent="." unique_id=2055130498]
[node name="MarginContainer" type="MarginContainer" parent="UI" unique_id=700137692]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 16
theme_override_constants/margin_top = 16
theme_override_constants/margin_right = 16
theme_override_constants/margin_bottom = 16
[node name="VBoxContainer" type="VBoxContainer" parent="UI/MarginContainer" unique_id=969047865]
layout_mode = 2
size_flags_vertical = 0
theme_override_constants/separation = 6
[node name="TitleLabel" type="Label" parent="UI/MarginContainer/VBoxContainer" unique_id=2017771158]
layout_mode = 2
theme_override_colors/font_color = Color(0.9, 0.9, 0.9, 1)
theme_override_font_sizes/font_size = 13
text = "Desktop Companion"
horizontal_alignment = 1
[node name="AppSelector" type="OptionButton" parent="UI/MarginContainer/VBoxContainer" unique_id=1135696676]
layout_mode = 2
tooltip_text = "Seleziona l'applicazione da ascoltare (Spotify, Chrome, ecc.)"
[node name="VolumeBar" type="ProgressBar" parent="UI/MarginContainer/VBoxContainer" unique_id=426369941]
custom_minimum_size = Vector2(0, 8)
layout_mode = 2
max_value = 1.0
show_percentage = false
[node name="DebugLabel" type="Label" parent="UI/MarginContainer/VBoxContainer" unique_id=826112804]
layout_mode = 2
theme_override_colors/font_color = Color(0.65, 0.9, 0.75, 1)
theme_override_font_sizes/font_size = 12
text = "Stato: IDLE | Volume: 0.00 | Rilevamento..."
horizontal_alignment = 1