asingcrow/godot/PlayVideoRecordAudio.tscn

248 lines
9.0 KiB
Plaintext
Raw Normal View History

2020-09-26 12:59:15 +00:00
[gd_scene load_steps=8 format=2]
[ext_resource path="res://Components/MultiStreamPlayer.tscn" type="PackedScene" id=1]
[ext_resource path="res://main_menu.gd" type="Script" id=2]
[ext_resource path="res://PlayVideoRecordAudio.gd" type="Script" id=3]
[ext_resource path="res://UI/src/meter.png" type="Texture" id=4]
[ext_resource path="res://Components/MultiVolumeSlider.tscn" type="PackedScene" id=5]
2020-09-26 12:59:15 +00:00
[ext_resource path="res://Components/MultiDelaySlider.tscn" type="PackedScene" id=6]
[sub_resource type="AudioStreamMicrophone" id=1]
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_right = -6.10352e-05
rect_pivot_offset = Vector2( -138.227, 18.34 )
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MarginContainer" type="MarginContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 5.0
margin_top = 5.0
margin_right = -5.0
margin_bottom = -5.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
margin_right = 1013.0
margin_bottom = 590.0
[node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
margin_right = 1013.0
margin_bottom = 20.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer2"]
margin_right = 989.0
margin_bottom = 20.0
size_flags_horizontal = 3
[node name="RichTextLabel" type="RichTextLabel" parent="MarginContainer/VBoxContainer/HBoxContainer2/VBoxContainer"]
margin_right = 989.0
margin_bottom = 15.0
size_flags_horizontal = 3
bbcode_enabled = true
bbcode_text = "[center]SANG YOA <3 OUT!!![/center]"
text = "SANG YOA <3 OUT!!!"
fit_content_height = true
scroll_active = false
[node name="Quit" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer2"]
margin_left = 993.0
margin_right = 1013.0
margin_bottom = 20.0
text = "X"
script = ExtResource( 2 )
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
margin_top = 24.0
margin_right = 1013.0
2020-09-26 12:59:15 +00:00
margin_bottom = 293.0
size_flags_horizontal = 3
size_flags_vertical = 3
alignment = 1
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer"]
margin_right = 1013.0
2020-09-26 12:59:15 +00:00
margin_bottom = 269.0
size_flags_horizontal = 3
size_flags_vertical = 3
alignment = 1
[node name="MultiStreamVideoPlayer" parent="MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer" instance=ExtResource( 1 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 1013.0
2020-09-26 12:59:15 +00:00
margin_bottom = 269.0
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="HBoxContainer3" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
2020-09-26 12:59:15 +00:00
margin_top = 297.0
margin_right = 1013.0
2020-09-26 12:59:15 +00:00
margin_bottom = 566.0
size_flags_horizontal = 3
size_flags_vertical = 3
alignment = 1
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer3"]
margin_right = 1013.0
2020-09-26 12:59:15 +00:00
margin_bottom = 269.0
size_flags_horizontal = 3
size_flags_vertical = 3
alignment = 1
[node name="RecordButton" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer"]
2020-09-26 12:59:15 +00:00
margin_top = 20.0
margin_right = 1013.0
2020-09-26 12:59:15 +00:00
margin_bottom = 40.0
text = "Record"
[node name="PlayButton" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer"]
2020-09-26 12:59:15 +00:00
margin_top = 44.0
margin_right = 1013.0
2020-09-26 12:59:15 +00:00
margin_bottom = 64.0
disabled = true
text = "Play"
[node name="Status" type="RichTextLabel" parent="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer"]
2020-09-26 12:59:15 +00:00
margin_top = 68.0
margin_right = 1013.0
2020-09-26 12:59:15 +00:00
margin_bottom = 83.0
fit_content_height = true
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer"]
2020-09-26 12:59:15 +00:00
margin_top = 87.0
margin_right = 1013.0
2020-09-26 12:59:15 +00:00
margin_bottom = 103.0
[node name="Playbacklabel" type="RichTextLabel" parent="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer/HBoxContainer"]
margin_right = 110.0
margin_bottom = 15.0
rect_min_size = Vector2( 110, 0 )
size_flags_vertical = 0
visible_characters = 28
text = "Playback meter : "
fit_content_height = true
scroll_active = false
[node name="PlaybackMeter" type="TextureProgress" parent="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer/HBoxContainer"]
margin_left = 114.0
margin_right = 1013.0
margin_bottom = 16.0
rect_min_size = Vector2( 0, 16 )
size_flags_horizontal = 3
size_flags_vertical = 0
texture_progress = ExtResource( 4 )
nine_patch_stretch = true
[node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer"]
2020-09-26 12:59:15 +00:00
margin_top = 107.0
margin_right = 1013.0
2020-09-26 12:59:15 +00:00
margin_bottom = 123.0
[node name="Recordlabel" type="RichTextLabel" parent="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer/HBoxContainer2"]
margin_right = 110.0
margin_bottom = 16.0
rect_min_size = Vector2( 110, 0 )
text = "Record meter :"
fit_content_height = true
[node name="RecordMeter" type="TextureProgress" parent="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer/HBoxContainer2"]
margin_left = 114.0
margin_right = 1013.0
margin_bottom = 16.0
rect_min_size = Vector2( 0, 16 )
size_flags_horizontal = 3
size_flags_vertical = 0
texture_progress = ExtResource( 4 )
nine_patch_stretch = true
[node name="HBoxContainer3" type="HBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer"]
2020-09-26 12:59:15 +00:00
margin_top = 127.0
margin_right = 1013.0
2020-09-26 12:59:15 +00:00
margin_bottom = 245.0
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer/HBoxContainer3"]
margin_right = 524.0
margin_bottom = 118.0
[node name="VBoxContainer3" type="VBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer/HBoxContainer3/HBoxContainer"]
margin_right = 16.0
margin_bottom = 118.0
[node name="BackgroundaudioSlider" type="VSlider" parent="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer/HBoxContainer3/HBoxContainer/VBoxContainer3"]
margin_right = 16.0
margin_bottom = 100.0
rect_min_size = Vector2( 0, 100 )
value = 50.0
[node name="Label" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer/HBoxContainer3/HBoxContainer/VBoxContainer3"]
margin_top = 104.0
margin_right = 16.0
margin_bottom = 118.0
rect_min_size = Vector2( 16, 0 )
text = "B"
align = 1
valign = 1
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer/HBoxContainer3/HBoxContainer"]
margin_left = 20.0
margin_right = 520.0
margin_bottom = 118.0
2020-09-26 12:59:15 +00:00
rect_min_size = Vector2( 500, 0 )
2020-09-26 12:59:15 +00:00
[node name="MultiDelaySlider" parent="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer/HBoxContainer3/HBoxContainer/VBoxContainer" instance=ExtResource( 6 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 500.0
2020-09-26 12:59:15 +00:00
[node name="MultiVolumeSlider" parent="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer/HBoxContainer3/HBoxContainer" instance=ExtResource( 5 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 524.0
margin_right = 524.0
margin_bottom = 118.0
[node name="HBoxContainer4" type="HBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer"]
2020-09-26 12:59:15 +00:00
margin_top = 249.0
margin_right = 1013.0
2020-09-26 12:59:15 +00:00
margin_bottom = 249.0
[node name="HBoxContainer4" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
margin_top = 570.0
margin_right = 1013.0
margin_bottom = 590.0
__meta__ = {
"_edit_use_anchors_": false
}
2020-09-27 20:58:03 +00:00
[node name="SaveButton" type="MenuButton" parent="MarginContainer/VBoxContainer/HBoxContainer4"]
margin_right = 109.0
2020-09-26 12:59:15 +00:00
margin_bottom = 20.0
2020-09-27 20:58:03 +00:00
text = "Save or Publish"
[node name="AudioStreamRecorder" type="AudioStreamPlayer" parent="."]
stream = SubResource( 1 )
autoplay = true
bus = "Record"
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer2/Quit" to="." method="_on_Quit_pressed"]
[connection signal="finished" from="MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer/MultiStreamVideoPlayer" to="." method="_on_MultiStreamVideoPlayer_finished"]
[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer/RecordButton" to="." method="_on_RecButton_pressed"]
[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer/PlayButton" to="." method="_on_PlayButton_pressed"]
[connection signal="value_changed" from="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer/HBoxContainer3/HBoxContainer/VBoxContainer3/BackgroundaudioSlider" to="." method="_on_BackgroundaudioSlider_changed"]
2020-09-26 12:59:15 +00:00
[connection signal="delay_changed" from="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer/HBoxContainer3/HBoxContainer/VBoxContainer/MultiDelaySlider" to="." method="_on_MultiDelaySlider_delay_changed"]
[connection signal="volume_changed" from="MarginContainer/VBoxContainer/HBoxContainer3/VBoxContainer/HBoxContainer3/HBoxContainer/MultiVolumeSlider" to="." method="_on_VBoxContainer2_volume_changed"]
[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer4/SaveButton" to="." method="_on_SaveButton_pressed"]