[gd_scene load_steps=8 format=3 uid="uid://cb8ftj7lpxrfy"]

[ext_resource type="Theme" uid="uid://cbutfawaljce6" path="res://game/BlackWhiteThem.tres" id="1"]
[ext_resource type="Script" path="res://game/ui/YouTubeUI/YouTubeUI.gd" id="2"]
[ext_resource type="PackedScene" uid="uid://bw1m0m5qftnsb" path="res://game/ui/YouTubeUI/YouTubeAPI/YouTubeAPI.tscn" id="3"]
[ext_resource type="PackedScene" uid="uid://chg13dcum75og" path="res://game/scripts/HTTPRequestPool.tscn" id="4"]
[ext_resource type="Texture2D" uid="uid://6slr1heu84vp" path="res://game/ui/YouTubeUI/youtube_icon.png" id="5"]
[ext_resource type="Texture2D" uid="uid://cxvyqmtckg782" path="res://game/ui/YouTubeUI/default_thumbnail.png" id="6"]
[ext_resource type="Script" path="res://game/vr_slider.gd" id="7"]

[node name="YouTubeUI" type="Panel"]
offset_right = 1536.0
offset_bottom = 960.0
theme = ExtResource("1")
script = ExtResource("2")

[node name="YouTubeAPI" parent="." instance=ExtResource("3")]

[node name="YoutubeIcon" type="TextureRect" parent="."]
layout_mode = 0
offset_left = 32.0
offset_top = 24.0
offset_right = 212.0
offset_bottom = 64.0
texture = ExtResource("5")
expand_mode = 1

[node name="SearchLineEdit" type="LineEdit" parent="."]
layout_mode = 0
offset_left = 224.0
offset_top = 16.0
offset_right = 944.0
offset_bottom = 72.0
text = "heartbreak anthem"
caret_blink = true
caret_blink_interval = 0.5

[node name="SearchButton" type="Button" parent="."]
layout_mode = 0
offset_left = 952.0
offset_top = 16.0
offset_right = 1088.0
offset_bottom = 72.0
text = "Search"

[node name="ResultsList" type="ItemList" parent="."]
layout_mode = 0
offset_left = 16.0
offset_top = 80.0
offset_right = 1088.0
offset_bottom = 944.0
script = ExtResource("7")
scroll_node_path = NodePath(".")

[node name="SelectSongButton" type="Button" parent="."]
layout_mode = 0
offset_left = 1096.0
offset_top = 880.0
offset_right = 1304.0
offset_bottom = 944.0
disabled = true
text = "Select Song"

[node name="BackButton" type="Button" parent="."]
layout_mode = 0
offset_left = 1312.0
offset_top = 880.0
offset_right = 1520.0
offset_bottom = 944.0
text = "Back"

[node name="ThumbnailRequestPool" parent="." instance=ExtResource("4")]

[node name="DefaultThumbnail" type="TextureRect" parent="."]
visible = false
layout_mode = 0
offset_right = 200.0
offset_bottom = 100.0
texture = ExtResource("6")

[connection signal="failed_request" from="YouTubeAPI" to="." method="_on_YouTubeAPI_failed_request"]
[connection signal="search_complete" from="YouTubeAPI" to="." method="_on_YouTubeAPI_search_complete"]
[connection signal="focus_entered" from="SearchLineEdit" to="." method="_on_SearchLineEdit_focus_entered"]
[connection signal="pressed" from="SearchButton" to="." method="_on_SearchButton_pressed"]
[connection signal="item_selected" from="ResultsList" to="." method="_on_ResultsList_item_selected"]
[connection signal="pressed" from="SelectSongButton" to="." method="_on_SelectSongButton_pressed"]
[connection signal="pressed" from="BackButton" to="." method="_on_BackButton_pressed"]
[connection signal="request_complete" from="ThumbnailRequestPool" to="." method="_on_ThumbnailRequestPool_request_complete"]
