286 lines
8.0 KiB
Plaintext
286 lines
8.0 KiB
Plaintext
[gd_scene load_steps=7 format=2]
|
|
|
|
[ext_resource path="res://theme.tres" type="Theme" id=1]
|
|
[ext_resource path="res://Main.gd" type="Script" id=2]
|
|
|
|
[sub_resource type="StyleBoxFlat" id=1]
|
|
bg_color = Color( 0, 0, 0, 0.392157 )
|
|
|
|
[sub_resource type="StyleBoxFlat" id=2]
|
|
bg_color = Color( 0, 0, 0, 0.784314 )
|
|
border_width_left = 2
|
|
border_width_top = 2
|
|
border_width_right = 2
|
|
border_width_bottom = 2
|
|
border_color = Color( 0.392157, 0.392157, 0.392157, 0.784314 )
|
|
border_blend = true
|
|
corner_radius_top_left = 5
|
|
corner_radius_top_right = 5
|
|
corner_radius_bottom_right = 5
|
|
corner_radius_bottom_left = 5
|
|
|
|
[sub_resource type="StyleBoxEmpty" id=3]
|
|
|
|
[sub_resource type="StyleBoxEmpty" id=4]
|
|
|
|
[node name="Control" type="Control"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
script = ExtResource( 2 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Panel" type="Panel" parent="."]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Margin" type="MarginContainer" parent="Panel"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
margin_left = 20.0
|
|
margin_top = 20.0
|
|
margin_right = -20.0
|
|
margin_bottom = -20.0
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Main" type="VBoxContainer" parent="Panel/Margin"]
|
|
margin_right = 984.0
|
|
margin_bottom = 560.0
|
|
custom_constants/separation = 20
|
|
|
|
[node name="URL" type="VBoxContainer" parent="Panel/Margin/Main"]
|
|
margin_right = 984.0
|
|
margin_bottom = 60.0
|
|
custom_constants/separation = 10
|
|
|
|
[node name="Label" type="Label" parent="Panel/Margin/Main/URL"]
|
|
margin_right = 984.0
|
|
margin_bottom = 20.0
|
|
theme = ExtResource( 1 )
|
|
text = "Page URL"
|
|
|
|
[node name="Value" type="LineEdit" parent="Panel/Margin/Main/URL"]
|
|
margin_top = 30.0
|
|
margin_right = 984.0
|
|
margin_bottom = 60.0
|
|
size_flags_horizontal = 3
|
|
theme = ExtResource( 1 )
|
|
placeholder_text = "Write your Youtube (or other website) URL here"
|
|
|
|
[node name="Settings" type="TabContainer" parent="Panel/Margin/Main"]
|
|
margin_top = 80.0
|
|
margin_right = 984.0
|
|
margin_bottom = 500.0
|
|
size_flags_vertical = 3
|
|
theme = ExtResource( 1 )
|
|
tab_align = 0
|
|
|
|
[node name="General" type="MarginContainer" parent="Panel/Margin/Main/Settings"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
margin_left = 4.0
|
|
margin_top = 38.0
|
|
margin_right = -4.0
|
|
margin_bottom = -4.0
|
|
custom_constants/margin_right = 5
|
|
custom_constants/margin_top = 5
|
|
custom_constants/margin_left = 5
|
|
custom_constants/margin_bottom = 5
|
|
|
|
[node name="VBox" type="VBoxContainer" parent="Panel/Margin/Main/Settings/General"]
|
|
process_priority = 10
|
|
margin_left = 5.0
|
|
margin_top = 5.0
|
|
margin_right = 971.0
|
|
margin_bottom = 373.0
|
|
custom_constants/separation = 20
|
|
|
|
[node name="Audio" type="CheckBox" parent="Panel/Margin/Main/Settings/General/VBox"]
|
|
margin_right = 966.0
|
|
margin_bottom = 28.0
|
|
theme = ExtResource( 1 )
|
|
text = "Audio only"
|
|
|
|
[node name="Format" type="VBoxContainer" parent="Panel/Margin/Main/Settings/General/VBox"]
|
|
margin_top = 48.0
|
|
margin_right = 966.0
|
|
margin_bottom = 136.0
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Option" type="HBoxContainer" parent="Panel/Margin/Main/Settings/General/VBox/Format"]
|
|
margin_right = 966.0
|
|
margin_bottom = 26.0
|
|
|
|
[node name="Label" type="Label" parent="Panel/Margin/Main/Settings/General/VBox/Format/Option"]
|
|
margin_right = 340.0
|
|
margin_bottom = 26.0
|
|
size_flags_vertical = 7
|
|
theme = ExtResource( 1 )
|
|
text = "To choose a format, analyze the video first: "
|
|
valign = 1
|
|
|
|
[node name="Button" type="Button" parent="Panel/Margin/Main/Settings/General/VBox/Format/Option"]
|
|
margin_left = 344.0
|
|
margin_right = 417.0
|
|
margin_bottom = 26.0
|
|
theme = ExtResource( 1 )
|
|
disabled = true
|
|
text = "Analyze"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Checkbox" type="CheckBox" parent="Panel/Margin/Main/Settings/General/VBox/Format"]
|
|
margin_top = 30.0
|
|
margin_right = 966.0
|
|
margin_bottom = 58.0
|
|
theme = ExtResource( 1 )
|
|
disabled = true
|
|
text = "Download specific format"
|
|
|
|
[node name="MenuButton" type="OptionButton" parent="Panel/Margin/Main/Settings/General/VBox/Format"]
|
|
margin_top = 62.0
|
|
margin_right = 966.0
|
|
margin_bottom = 88.0
|
|
theme = ExtResource( 1 )
|
|
disabled = true
|
|
text = "Video format"
|
|
|
|
[node name="Network" type="MarginContainer" parent="Panel/Margin/Main/Settings"]
|
|
visible = false
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
margin_left = 4.0
|
|
margin_top = 38.0
|
|
margin_right = -4.0
|
|
margin_bottom = -4.0
|
|
custom_constants/margin_right = 5
|
|
custom_constants/margin_top = 5
|
|
custom_constants/margin_left = 5
|
|
custom_constants/margin_bottom = 5
|
|
|
|
[node name="VBox" type="VBoxContainer" parent="Panel/Margin/Main/Settings/Network"]
|
|
process_priority = 10
|
|
margin_left = 5.0
|
|
margin_top = 5.0
|
|
margin_right = 971.0
|
|
margin_bottom = 373.0
|
|
custom_constants/separation = 20
|
|
|
|
[node name="RateLimit" type="VBoxContainer" parent="Panel/Margin/Main/Settings/Network/VBox"]
|
|
process_priority = 10
|
|
margin_right = 742.0
|
|
margin_bottom = 62.0
|
|
|
|
[node name="Checkbox" type="CheckBox" parent="Panel/Margin/Main/Settings/Network/VBox/RateLimit"]
|
|
margin_right = 742.0
|
|
margin_bottom = 28.0
|
|
theme = ExtResource( 1 )
|
|
text = "Set maximum download rate (in bytes per second)"
|
|
|
|
[node name="Value" type="LineEdit" parent="Panel/Margin/Main/Settings/Network/VBox/RateLimit"]
|
|
margin_top = 32.0
|
|
margin_right = 742.0
|
|
margin_bottom = 62.0
|
|
theme = ExtResource( 1 )
|
|
editable = false
|
|
placeholder_text = "eg. 50K or 4.2M"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Geo box" type="CheckBox" parent="Panel/Margin/Main/Settings/Network/VBox"]
|
|
margin_top = 82.0
|
|
margin_right = 742.0
|
|
margin_bottom = 110.0
|
|
theme = ExtResource( 1 )
|
|
text = "Bypass geographic restriction via faking X-Forwarded-For HTTP header"
|
|
|
|
[node name="Actions" type="HBoxContainer" parent="Panel/Margin/Main"]
|
|
margin_top = 520.0
|
|
margin_right = 984.0
|
|
margin_bottom = 560.0
|
|
|
|
[node name="Download" type="Button" parent="Panel/Margin/Main/Actions"]
|
|
margin_right = 150.0
|
|
margin_bottom = 40.0
|
|
rect_min_size = Vector2( 150, 40 )
|
|
theme = ExtResource( 1 )
|
|
disabled = true
|
|
text = "Download"
|
|
|
|
[node name="ProgressBG" type="Panel" parent="."]
|
|
visible = false
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
custom_styles/panel = SubResource( 1 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="ProgressPanel" type="Panel" parent="ProgressBG"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
margin_left = 40.0
|
|
margin_top = 40.0
|
|
margin_right = -40.0
|
|
margin_bottom = -40.0
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
custom_styles/panel = SubResource( 2 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="TextEdit" type="TextEdit" parent="ProgressBG/ProgressPanel"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
margin_left = 10.0
|
|
margin_top = 10.0
|
|
margin_right = -10.0
|
|
margin_bottom = -10.0
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
theme = ExtResource( 1 )
|
|
custom_styles/read_only = SubResource( 3 )
|
|
custom_styles/normal = SubResource( 4 )
|
|
custom_colors/font_color = Color( 1, 1, 1, 1 )
|
|
readonly = true
|
|
context_menu_enabled = false
|
|
shortcut_keys_enabled = false
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
wait_time = 0.2
|
|
|
|
[node name="FileDialog" type="FileDialog" parent="."]
|
|
margin_right = 341.0
|
|
margin_bottom = 154.0
|
|
window_title = "Save video"
|
|
resizable = true
|
|
dialog_hide_on_ok = true
|
|
access = 2
|
|
current_dir = "/VC/yodel"
|
|
current_path = "/VC/yodel/"
|
|
[connection signal="finished" from="." to="." method="_on_finish"]
|
|
[connection signal="text_changed" from="Panel/Margin/Main/URL/Value" to="." method="_url_changed"]
|
|
[connection signal="toggled" from="Panel/Margin/Main/Settings/General/VBox/Audio" to="." method="_audio_checkbox_changed"]
|
|
[connection signal="pressed" from="Panel/Margin/Main/Settings/General/VBox/Format/Option/Button" to="." method="_analyze"]
|
|
[connection signal="toggled" from="Panel/Margin/Main/Settings/General/VBox/Format/Checkbox" to="." method="_format_checkbox_changed"]
|
|
[connection signal="toggled" from="Panel/Margin/Main/Settings/Network/VBox/RateLimit/Checkbox" to="." method="_ratelimit_checkbox_changed"]
|
|
[connection signal="pressed" from="Panel/Margin/Main/Actions/Download" to="." method="_download"]
|
|
[connection signal="timeout" from="Timer" to="." method="_timer_tick"]
|
|
[connection signal="file_selected" from="FileDialog" to="." method="_target_selected"]
|