FAbrowser/main.tscn
2024-07-22 11:06:25 -04:00

210 lines
6.1 KiB
Text

[gd_scene load_steps=8 format=2]
[ext_resource path="res://scripts/GalleryGather.gd" type="Script" id=1]
[ext_resource path="res://scripts/Filter.gd" type="Script" id=2]
[ext_resource path="res://scripts/main.gd" type="Script" id=3]
[ext_resource path="res://theme_panels/padding.tres" type="StyleBox" id=4]
[ext_resource path="res://theme_panels/toolbar.tres" type="StyleBox" id=6]
[ext_resource path="res://scripts/LoadingBar.gd" type="Script" id=7]
[ext_resource path="res://scripts/SearchBar.gd" type="Script" id=8]
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 3 )
[node name="ColorRect" type="ColorRect" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
color = Color( 0.105882, 0.105882, 0.113725, 1 )
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="c" type="VBoxContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
custom_constants/separation = 0
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="Log" type="RichTextLabel" parent="c"]
unique_name_in_owner = true
visible = false
margin_right = 1024.0
margin_bottom = 128.0
rect_min_size = Vector2( 0, 128 )
focus_mode = 2
scroll_following = true
selection_enabled = true
[node name="Pad" type="PanelContainer" parent="c"]
margin_right = 1024.0
margin_bottom = 67.0
custom_styles/panel = ExtResource( 6 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="V" type="VBoxContainer" parent="c/Pad"]
margin_left = 5.0
margin_top = 5.0
margin_right = 1019.0
margin_bottom = 61.0
[node name="HB" type="HFlowContainer" parent="c/Pad/V"]
margin_right = 1014.0
margin_bottom = 24.0
[node name="Nuke" type="Button" parent="c/Pad/V/HB"]
unique_name_in_owner = true
margin_right = 133.0
margin_bottom = 24.0
disabled = true
text = "Nuke and Refresh"
[node name="LoadStatus" type="Label" parent="c/Pad/V/HB"]
unique_name_in_owner = true
margin_left = 137.0
margin_top = 4.0
margin_right = 137.0
margin_bottom = 20.0
[node name="Loading" type="ProgressBar" parent="c/Pad/V/HB"]
unique_name_in_owner = true
margin_left = 141.0
margin_right = 524.0
margin_bottom = 24.0
rect_min_size = Vector2( 96, 20 )
size_flags_horizontal = 3
size_flags_vertical = 1
script = ExtResource( 7 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="sizeSlider" type="HSlider" parent="c/Pad/V/HB"]
margin_left = 528.0
margin_right = 943.0
margin_bottom = 24.0
rect_min_size = Vector2( 128, 0 )
size_flags_horizontal = 3
size_flags_vertical = 1
min_value = 128.0
max_value = 512.0
step = 2.0
value = 256.0
tick_count = 4
[node name="Setting" type="Button" parent="c/Pad/V/HB"]
margin_left = 947.0
margin_right = 1014.0
margin_bottom = 24.0
text = "Settings"
[node name="Filter" type="HFlowContainer" parent="c/Pad/V"]
unique_name_in_owner = true
visible = false
margin_top = 28.0
margin_right = 1014.0
margin_bottom = 56.0
script = ExtResource( 2 )
[node name="Label" type="Label" parent="c/Pad/V/Filter"]
margin_top = 6.0
margin_right = 126.0
margin_bottom = 22.0
text = "Filter submissions:"
[node name="Search" type="LineEdit" parent="c/Pad/V/Filter"]
margin_left = 130.0
margin_right = 1014.0
margin_bottom = 28.0
size_flags_horizontal = 3
clear_button_enabled = true
[node name="SearchBar" type="HFlowContainer" parent="c/Pad/V"]
unique_name_in_owner = true
margin_top = 28.0
margin_right = 1014.0
margin_bottom = 56.0
mouse_filter = 2
script = ExtResource( 8 )
[node name="Label" type="Label" parent="c/Pad/V/SearchBar"]
margin_top = 6.0
margin_right = 123.0
margin_bottom = 22.0
text = "Currently viewing:"
[node name="Mode" type="OptionButton" parent="c/Pad/V/SearchBar"]
margin_left = 127.0
margin_right = 219.0
margin_bottom = 28.0
text = "Watch list"
items = [ "Watch list", null, false, 0, null, "User Gallery", null, false, 1, null, "User Scraps", null, false, 2, null, "User Gallery and Scraps", null, false, 3, null, "User Favorites", null, false, 4, null, "Search", null, false, 5, null, "Submission ID", null, false, 6, null ]
selected = 0
[node name="SearchQuery" type="LineEdit" parent="c/Pad/V/SearchBar"]
margin_left = 223.0
margin_right = 976.0
margin_bottom = 28.0
size_flags_horizontal = 3
editable = false
placeholder_text = "Query"
[node name="GoButton" type="Button" parent="c/Pad/V/SearchBar"]
margin_left = 980.0
margin_right = 1014.0
margin_bottom = 28.0
text = "Go!"
[node name="ViewSplit" type="HSplitContainer" parent="c"]
unique_name_in_owner = true
margin_top = 67.0
margin_right = 1024.0
margin_bottom = 600.0
size_flags_vertical = 3
split_offset = 780
[node name="imglist" type="ScrollContainer" parent="c/ViewSplit"]
margin_right = 1024.0
margin_bottom = 533.0
rect_min_size = Vector2( 32, 32 )
follow_focus = true
[node name="Pad" type="PanelContainer" parent="c/ViewSplit/imglist"]
margin_right = 1024.0
margin_bottom = 16.0
mouse_filter = 2
size_flags_horizontal = 3
custom_styles/panel = ExtResource( 4 )
[node name="ThumbGrid" type="HFlowContainer" parent="c/ViewSplit/imglist/Pad"]
unique_name_in_owner = true
margin_left = 8.0
margin_top = 8.0
margin_right = 1016.0
margin_bottom = 8.0
mouse_filter = 2
[node name="GalleryGather" type="Node" parent="."]
script = ExtResource( 1 )
[node name="RefTimer" type="Timer" parent="."]
unique_name_in_owner = true
wait_time = 3600.0
one_shot = true
[connection signal="pressed" from="c/Pad/V/HB/Nuke" to="." method="_on_Nuke_pressed"]
[connection signal="value_changed" from="c/Pad/V/HB/sizeSlider" to="." method="_on_sizeSlider_value_changed"]
[connection signal="pressed" from="c/Pad/V/HB/Setting" to="." method="_on_Setting_pressed"]
[connection signal="text_changed" from="c/Pad/V/Filter/Search" to="c/Pad/V/Filter" method="_on_Search_text_changed"]
[connection signal="item_selected" from="c/Pad/V/SearchBar/Mode" to="c/Pad/V/SearchBar" method="_on_OptionButton_item_selected"]
[connection signal="text_entered" from="c/Pad/V/SearchBar/SearchQuery" to="c/Pad/V/SearchBar" method="_on_SearchQuery_text_entered"]
[connection signal="pressed" from="c/Pad/V/SearchBar/GoButton" to="c/Pad/V/SearchBar" method="_on_GoButton_pressed"]
[connection signal="GatheringComplete" from="GalleryGather" to="." method="_on_GalleryGather_GatheringComplete"]
[connection signal="timeout" from="RefTimer" to="." method="_on_Nuke_pressed"]