new analyzer
This commit is contained in:
1 parent
4b1fc0835a
commit
98d9fa24cf
110 files changed
+1749
-52
No files matched your search
+23
-23
@@ -1,8 +1,8 @@
|
||||
[gd_scene load_steps=5 format=3]
|
||||
[gd_scene format=3 uid="uid://dsx8ygbmfsyj8"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/SystemAudioAnalyzer.gd" id="1_audio_analyzer"]
|
||||
[ext_resource type="Script" path="res://scripts/CompanionController.gd" id="2_companion"]
|
||||
[ext_resource type="Texture2D" path="res://icon.svg" id="3_icon"]
|
||||
[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 = [{
|
||||
@@ -11,14 +11,6 @@ animations = [{
|
||||
"texture": ExtResource("3_icon")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_icon")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"dance",
|
||||
"speed": 10.0
|
||||
}, {
|
||||
@@ -27,16 +19,24 @@ animations = [{
|
||||
"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"]
|
||||
[node name="Main" type="Node2D" unique_id=36355540]
|
||||
|
||||
[node name="SystemAudioAnalyzer" type="Node" parent="."]
|
||||
[node name="SystemAudioAnalyzer" type="Node" parent="." unique_id=1763523839]
|
||||
script = ExtResource("1_audio_analyzer")
|
||||
|
||||
[node name="Companion" type="Node2D" parent="." node_paths=PackedStringArray("audio_analyzer", "sprite", "debug_label", "volume_bar", "app_selector")]
|
||||
[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")
|
||||
@@ -45,14 +45,14 @@ 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"]
|
||||
[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="."]
|
||||
[node name="UI" type="CanvasLayer" parent="." unique_id=2055130498]
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="UI"]
|
||||
[node name="MarginContainer" type="MarginContainer" parent="UI" unique_id=700137692]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
@@ -63,29 +63,29 @@ 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"]
|
||||
[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"]
|
||||
[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"]
|
||||
[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"]
|
||||
[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"]
|
||||
[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
|
||||
|
||||
Reference in new issue
Block a user