[gd_scene load_steps=5 format=3 uid="uid://ctak1goemnnc5"]

[ext_resource type="Script" uid="uid://dmeokosn7gr27" path="res://scenes/main.gd" id="1_8bx00"]
[ext_resource type="PackedScene" uid="uid://xqic6oa5d7oc" path="res://scenes/MorseBanner.tscn" id="2_v02md"]
[ext_resource type="Script" uid="uid://bjt60u6r1hqf7" path="res://addons/SharePlugin/Share.gd" id="3_sugp2"]

[sub_resource type="AudioStreamGenerator" id="AudioStreamGenerator_kvn5v"]
mix_rate = 11025.0
buffer_length = 0.2

[node name="Node2D" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_8bx00")

[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2

[node name="MorseBannerSlow" parent="VBoxContainer" instance=ExtResource("2_v02md")]
unique_name_in_owner = true
layout_mode = 2
display_sec = 30.0
stretch_display = true

[node name="MorseBannerMedium" parent="VBoxContainer" instance=ExtResource("2_v02md")]
unique_name_in_owner = true
layout_mode = 2
display_sec = 10.0

[node name="MorseBanner" parent="VBoxContainer" instance=ExtResource("2_v02md")]
unique_name_in_owner = true
layout_mode = 2

[node name="ColorRect" type="ColorRect" parent="VBoxContainer"]
unique_name_in_owner = true
custom_minimum_size = Vector2(200, 100)
layout_mode = 2
color = Color(0, 0, 0, 1)

[node name="MorseButton" type="Button" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
size_flags_stretch_ratio = 2.0
text = "MORSE"

[node name="WavButton" type="Button" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
text = "Write Wav"

[node name="ResetButton" type="Button" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
size_flags_stretch_ratio = 0.5
text = "Reset"

[node name="MultiplayerButton" type="Button" parent="VBoxContainer"]
visible = false
layout_mode = 2
text = "Connect to Frequency"

[node name="Player" type="AudioStreamPlayer" parent="."]
stream = SubResource("AudioStreamGenerator_kvn5v")
volume_db = -80.0

[node name="Share" type="Node" parent="."]
script = ExtResource("3_sugp2")

[connection signal="button_down" from="VBoxContainer/MorseButton" to="." method="_on_morse_button_down"]
[connection signal="button_up" from="VBoxContainer/MorseButton" to="." method="_on_morse_button_up"]
[connection signal="pressed" from="VBoxContainer/WavButton" to="." method="_on_wav_button_pressed"]
[connection signal="pressed" from="VBoxContainer/ResetButton" to="." method="_on_reset_button_pressed"]
[connection signal="pressed" from="VBoxContainer/MultiplayerButton" to="." method="_on_multiplayer_button_pressed"]