mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-24 20:17:31 -04:00
add license, move folders
This commit is contained in:
parent
185cc74060
commit
271c4a46a1
132 changed files with 21 additions and 0 deletions
156
app/scenes/components/bookmark.tscn
Normal file
156
app/scenes/components/bookmark.tscn
Normal file
|
@ -0,0 +1,156 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://82ca8so31njy"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui/menu/bookmark_ui.gd" id="1_bpkqj"]
|
||||
[ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://resources/gate_events.res" id="2_7i5yr"]
|
||||
[ext_resource type="Texture2D" uid="uid://cykx425p6ylwr" path="res://textures/background.png" id="3_kgutt"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_40hft"]
|
||||
bg_color = Color(0.25098, 0.25098, 0.25098, 1)
|
||||
corner_radius_top_left = 16
|
||||
corner_radius_top_right = 16
|
||||
corner_radius_bottom_right = 16
|
||||
corner_radius_bottom_left = 16
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_od0ga"]
|
||||
corner_radius_top_left = 16
|
||||
corner_radius_top_right = 16
|
||||
corner_radius_bottom_right = 16
|
||||
corner_radius_bottom_left = 16
|
||||
|
||||
[node name="Bookmark" type="Control" node_paths=PackedStringArray("image", "title")]
|
||||
clip_children = 1
|
||||
custom_minimum_size = Vector2(130, 166)
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 130.0
|
||||
offset_bottom = 160.0
|
||||
script = ExtResource("1_bpkqj")
|
||||
gate_events = ExtResource("2_7i5yr")
|
||||
image = NodePath("VBoxContainer/Panel/Mask/Image")
|
||||
title = NodePath("VBoxContainer/Title")
|
||||
|
||||
[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
|
||||
theme_override_constants/separation = 5
|
||||
|
||||
[node name="Panel" type="Panel" parent="VBoxContainer"]
|
||||
custom_minimum_size = Vector2(130, 130)
|
||||
layout_mode = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_40hft")
|
||||
|
||||
[node name="Mask" type="Panel" parent="VBoxContainer/Panel"]
|
||||
clip_children = 1
|
||||
custom_minimum_size = Vector2(87, 87)
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -43.5
|
||||
offset_top = -43.5
|
||||
offset_right = 43.5
|
||||
offset_bottom = 43.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 1
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_od0ga")
|
||||
|
||||
[node name="Image" type="TextureRect" parent="VBoxContainer/Panel/Mask"]
|
||||
custom_minimum_size = Vector2(87, 87)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
texture = ExtResource("3_kgutt")
|
||||
expand_mode = 1
|
||||
stretch_mode = 6
|
||||
|
||||
[node name="Title" type="Label" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 0.8)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "Unnamed"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
text_overrun_behavior = 3
|
||||
|
||||
[node name="BaseButton" type="BaseButton" parent="."]
|
||||
_import_path = NodePath("")
|
||||
unique_name_in_owner = false
|
||||
process_mode = 0
|
||||
process_priority = 0
|
||||
editor_description = ""
|
||||
visible = true
|
||||
modulate = Color(1, 1, 1, 1)
|
||||
self_modulate = Color(1, 1, 1, 1)
|
||||
show_behind_parent = false
|
||||
top_level = false
|
||||
clip_children = 0
|
||||
light_mask = 1
|
||||
visibility_layer = 1
|
||||
z_index = 0
|
||||
z_as_relative = true
|
||||
y_sort_enabled = false
|
||||
texture_filter = 0
|
||||
texture_repeat = 0
|
||||
material = null
|
||||
use_parent_material = false
|
||||
clip_contents = false
|
||||
custom_minimum_size = Vector2(0, 0)
|
||||
layout_direction = 0
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 0.0
|
||||
offset_top = 0.0
|
||||
offset_right = 0.0
|
||||
offset_bottom = 0.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
rotation = 0.0
|
||||
scale = Vector2(1, 1)
|
||||
pivot_offset = Vector2(0, 0)
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 1
|
||||
size_flags_stretch_ratio = 1.0
|
||||
auto_translate = true
|
||||
localize_numeral_system = true
|
||||
tooltip_text = ""
|
||||
focus_neighbor_left = NodePath("")
|
||||
focus_neighbor_top = NodePath("")
|
||||
focus_neighbor_right = NodePath("")
|
||||
focus_neighbor_bottom = NodePath("")
|
||||
focus_next = NodePath("")
|
||||
focus_previous = NodePath("")
|
||||
focus_mode = 2
|
||||
mouse_filter = 0
|
||||
mouse_force_pass_scroll_events = true
|
||||
mouse_default_cursor_shape = 2
|
||||
theme = null
|
||||
theme_type_variation = &""
|
||||
disabled = false
|
||||
toggle_mode = false
|
||||
button_pressed = false
|
||||
action_mode = 1
|
||||
button_mask = 1
|
||||
keep_pressed_outside = false
|
||||
button_group = null
|
||||
shortcut = null
|
||||
shortcut_feedback = true
|
||||
shortcut_in_tooltip = true
|
||||
script = null
|
||||
|
||||
[connection signal="pressed" from="BaseButton" to="." method="_on_base_button_pressed"]
|
107
app/scenes/components/hint.tscn
Normal file
107
app/scenes/components/hint.tscn
Normal file
|
@ -0,0 +1,107 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://m622v03jydnq"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui/hint.gd" id="1_mhnl1"]
|
||||
[ext_resource type="Texture2D" uid="uid://byvigfpu44dnu" path="res://textures/arrow.svg" id="2_amrir"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_7wdcy"]
|
||||
bg_color = Color(0.22, 0.22, 0.22, 0.631373)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color(1, 1, 0, 1)
|
||||
corner_radius_top_left = 20
|
||||
corner_radius_top_right = 20
|
||||
corner_radius_bottom_right = 20
|
||||
corner_radius_bottom_left = 20
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_8td41"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_tul52"]
|
||||
resource_name = "Hint"
|
||||
step = 0.05
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("AnimRoot:position")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.25, 0.5, 0.75, 1),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector2(0, 0), Vector2(0, -20), Vector2(0, 0), Vector2(0, -20), Vector2(0, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_a1w2o"]
|
||||
length = 0.001
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_l0m26"]
|
||||
_data = {
|
||||
"Bounce": SubResource("Animation_tul52"),
|
||||
"RESET": SubResource("Animation_a1w2o")
|
||||
}
|
||||
|
||||
[node name="Hint" type="Control"]
|
||||
custom_minimum_size = Vector2(150, 50)
|
||||
layout_mode = 3
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -75.0
|
||||
offset_top = -70.0
|
||||
offset_right = 75.0
|
||||
offset_bottom = -20.0
|
||||
grow_horizontal = 2
|
||||
script = ExtResource("1_mhnl1")
|
||||
|
||||
[node name="AnimRoot" type="Control" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Background" type="Panel" parent="AnimRoot"]
|
||||
layout_mode = 0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_7wdcy")
|
||||
|
||||
[node name="Label" type="Label" parent="AnimRoot"]
|
||||
layout_mode = 0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "type your hint"
|
||||
label_settings = SubResource("LabelSettings_8td41")
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="AnimRoot"]
|
||||
modulate = Color(1, 1, 0, 1)
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -16.0
|
||||
offset_top = -7.0
|
||||
offset_right = 16.0
|
||||
offset_bottom = 25.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
rotation = 1.5708
|
||||
pivot_offset = Vector2(16, 16)
|
||||
texture = ExtResource("2_amrir")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_l0m26")
|
||||
}
|
86
app/scenes/components/prompt.tscn
Normal file
86
app/scenes/components/prompt.tscn
Normal file
|
@ -0,0 +1,86 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://b57n6cvtqn5b7"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui/search/prompt.gd" id="1_7xv44"]
|
||||
[ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://resources/gate_events.res" id="2_33m26"]
|
||||
[ext_resource type="Texture2D" uid="uid://c28surtqjf4st" path="res://textures/search.svg" id="2_tk8hn"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_wbjg7"]
|
||||
bg_color = Color(0.25098, 0.25098, 0.25098, 0)
|
||||
corner_radius_top_left = 6
|
||||
corner_radius_top_right = 6
|
||||
corner_radius_bottom_right = 6
|
||||
corner_radius_bottom_left = 6
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_srt8r"]
|
||||
bg_color = Color(0, 0, 0, 0.25098)
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
border_color = Color(0, 0, 0, 0)
|
||||
border_blend = true
|
||||
corner_radius_top_left = 6
|
||||
corner_radius_top_right = 6
|
||||
corner_radius_bottom_right = 6
|
||||
corner_radius_bottom_left = 6
|
||||
shadow_color = Color(0, 0, 0, 0)
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_6fg0o"]
|
||||
content_margin_left = 40.0
|
||||
|
||||
[node name="prompt" type="Button" node_paths=PackedStringArray("prompt_text")]
|
||||
custom_minimum_size = Vector2(0, 40)
|
||||
anchors_preset = 14
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
offset_top = -20.0
|
||||
offset_bottom = 20.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_wbjg7")
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_srt8r")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxFlat_srt8r")
|
||||
script = ExtResource("1_7xv44")
|
||||
gate_events = ExtResource("2_33m26")
|
||||
prompt_text = NodePath("Label")
|
||||
focus_style = SubResource("StyleBoxFlat_srt8r")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_font_sizes/font_size = 20
|
||||
theme_override_styles/normal = SubResource("StyleBoxEmpty_6fg0o")
|
||||
text = "prompt"
|
||||
vertical_alignment = 1
|
||||
text_overrun_behavior = 3
|
||||
|
||||
[node name="SearchStatus" type="Control" parent="."]
|
||||
self_modulate = Color(1, 1, 1, 0.8)
|
||||
layout_mode = 1
|
||||
anchors_preset = 4
|
||||
anchor_top = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = 12.0
|
||||
offset_top = -8.0
|
||||
offset_right = 28.0
|
||||
offset_bottom = 8.0
|
||||
grow_vertical = 2
|
||||
mouse_filter = 1
|
||||
|
||||
[node name="Search" type="TextureRect" parent="SearchStatus"]
|
||||
self_modulate = Color(1, 1, 1, 0.8)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("2_tk8hn")
|
||||
expand_mode = 1
|
||||
|
||||
[connection signal="pressed" from="." to="." method="_on_button_pressed"]
|
126
app/scenes/components/result.tscn
Normal file
126
app/scenes/components/result.tscn
Normal file
|
@ -0,0 +1,126 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://i3lgu2dyypcq"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui/search/result.gd" id="1_b6nfm"]
|
||||
[ext_resource type="Texture2D" uid="uid://cykx425p6ylwr" path="res://textures/background.png" id="1_cbuy3"]
|
||||
[ext_resource type="Script" path="res://scripts/ui/search/one_line_text.gd" id="2_nxics"]
|
||||
[ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://resources/gate_events.res" id="2_wgd6i"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_7mafe"]
|
||||
bg_color = Color(0.25098, 0.25098, 0.25098, 0)
|
||||
corner_radius_top_left = 16
|
||||
corner_radius_top_right = 16
|
||||
corner_radius_bottom_right = 16
|
||||
corner_radius_bottom_left = 16
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_37xan"]
|
||||
bg_color = Color(0.25098, 0.25098, 0.25098, 1)
|
||||
corner_radius_top_left = 16
|
||||
corner_radius_top_right = 16
|
||||
corner_radius_bottom_right = 16
|
||||
corner_radius_bottom_left = 16
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6os7t"]
|
||||
corner_radius_top_left = 16
|
||||
corner_radius_top_right = 16
|
||||
corner_radius_bottom_right = 16
|
||||
corner_radius_bottom_left = 16
|
||||
|
||||
[node name="Result" type="Button" node_paths=PackedStringArray("url", "title", "description", "image")]
|
||||
custom_minimum_size = Vector2(0, 132)
|
||||
anchors_preset = 14
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_7mafe")
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_37xan")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxFlat_37xan")
|
||||
script = ExtResource("1_b6nfm")
|
||||
gate_events = ExtResource("2_wgd6i")
|
||||
url = NodePath("HBoxContainer/VBoxContainer/SpanLimiter/HBoxContainer/Url")
|
||||
title = NodePath("HBoxContainer/VBoxContainer/SpanLimiter/HBoxContainer/Title")
|
||||
description = NodePath("HBoxContainer/VBoxContainer/Description")
|
||||
image = NodePath("HBoxContainer/Mask/Image")
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 16.0
|
||||
offset_right = -16.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/separation = 16
|
||||
|
||||
[node name="Mask" type="Panel" parent="HBoxContainer"]
|
||||
clip_children = 1
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
mouse_filter = 1
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_6os7t")
|
||||
|
||||
[node name="Image" type="TextureRect" parent="HBoxContainer/Mask"]
|
||||
custom_minimum_size = Vector2(87, 87)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
texture = ExtResource("1_cbuy3")
|
||||
expand_mode = 1
|
||||
stretch_mode = 6
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 80)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 4
|
||||
|
||||
[node name="SpanLimiter" type="Control" parent="HBoxContainer/VBoxContainer"]
|
||||
clip_contents = true
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
mouse_filter = 1
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="HBoxContainer/VBoxContainer/SpanLimiter"]
|
||||
layout_mode = 2
|
||||
offset_right = 1772.0
|
||||
offset_bottom = 38.0
|
||||
size_flags_vertical = 3
|
||||
theme_override_constants/separation = 16
|
||||
|
||||
[node name="Title" type="Label" parent="HBoxContainer/VBoxContainer/SpanLimiter/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 24
|
||||
text = "Title"
|
||||
|
||||
[node name="Slash" type="Label" parent="HBoxContainer/VBoxContainer/SpanLimiter/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 24
|
||||
text = "/"
|
||||
|
||||
[node name="Url" type="Label" parent="HBoxContainer/VBoxContainer/SpanLimiter/HBoxContainer"]
|
||||
self_modulate = Color(1, 1, 1, 0.8)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "http://localhost:8000"
|
||||
|
||||
[node name="Description" type="RichTextLabel" parent="HBoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
mouse_filter = 1
|
||||
theme_override_font_sizes/normal_font_size = 20
|
||||
bbcode_enabled = true
|
||||
text = "Description"
|
||||
scroll_active = false
|
||||
script = ExtResource("2_nxics")
|
||||
|
||||
[connection signal="pressed" from="." to="." method="_on_button_pressed"]
|
456
app/scenes/components/search.tscn
Normal file
456
app/scenes/components/search.tscn
Normal file
|
@ -0,0 +1,456 @@
|
|||
[gd_scene load_steps=21 format=3 uid="uid://ctam0fxigbefk"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui/search.gd" id="1_7ivk2"]
|
||||
[ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://resources/gate_events.res" id="2_13io8"]
|
||||
[ext_resource type="Texture2D" uid="uid://c28surtqjf4st" path="res://textures/search.svg" id="3_1rllf"]
|
||||
[ext_resource type="Script" path="res://scripts/ui/search/search_status.gd" id="3_3p1re"]
|
||||
[ext_resource type="Script" path="res://scripts/ui/search_go.gd" id="3_eayvw"]
|
||||
[ext_resource type="Texture2D" uid="uid://byvigfpu44dnu" path="res://textures/arrow.svg" id="5_dqxpp"]
|
||||
[ext_resource type="Script" path="res://scripts/ui/search/download_animation.gd" id="6_fn1n3"]
|
||||
[ext_resource type="Script" path="res://scripts/ui/menu/star.gd" id="6_iyikx"]
|
||||
[ext_resource type="Texture2D" uid="uid://cx3xxaqo3s3eq" path="res://textures/gate.svg" id="6_twd8p"]
|
||||
[ext_resource type="Resource" uid="uid://bewhdj6jugt6q" path="res://resources/bookmarks.tres" id="7_2mijb"]
|
||||
[ext_resource type="Texture2D" uid="uid://dystd8vvbqwo2" path="res://textures/exit.svg" id="7_jllve"]
|
||||
[ext_resource type="Texture2D" uid="uid://btn6ytky782a2" path="res://textures/star.svg" id="8_b00p6"]
|
||||
[ext_resource type="Texture2D" uid="uid://lxx36xkotvh1" path="res://textures/star_filled.svg" id="9_2en0l"]
|
||||
[ext_resource type="Script" path="res://scripts/ui/search/prompt_results.gd" id="14_0lofv"]
|
||||
[ext_resource type="Script" path="res://scripts/ui/search/prompt_navigation.gd" id="14_h86vl"]
|
||||
[ext_resource type="Script" path="res://scripts/ui/search/fix_promt_position.gd" id="15_35wcy"]
|
||||
[ext_resource type="Resource" uid="uid://cjcdum6fm4ta0" path="res://resources/api_settings.tres" id="15_uafyh"]
|
||||
[ext_resource type="PackedScene" uid="uid://b57n6cvtqn5b7" path="res://scenes/components/prompt.tscn" id="16_lbcsd"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_hyysn"]
|
||||
content_margin_left = 40.0
|
||||
content_margin_right = 40.0
|
||||
bg_color = Color(0.207843, 0.164706, 0.47451, 1)
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
border_color = Color(0.176471, 0.14902, 0.352941, 1)
|
||||
corner_radius_top_left = 6
|
||||
corner_radius_top_right = 6
|
||||
corner_radius_bottom_right = 6
|
||||
corner_radius_bottom_left = 6
|
||||
corner_detail = 10
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_mh73y"]
|
||||
bg_color = Color(0.207843, 0.164706, 0.47451, 1)
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
border_color = Color(0.176471, 0.14902, 0.352941, 1)
|
||||
corner_radius_top_left = 6
|
||||
corner_radius_top_right = 6
|
||||
corner_radius_bottom_right = 6
|
||||
corner_radius_bottom_left = 6
|
||||
corner_detail = 10
|
||||
|
||||
[node name="Search" type="LineEdit" node_paths=PackedStringArray("prompt_panel")]
|
||||
custom_minimum_size = Vector2(1000, 40)
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -500.0
|
||||
offset_top = -20.0
|
||||
offset_right = 500.0
|
||||
offset_bottom = 20.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
auto_translate = false
|
||||
localize_numeral_system = false
|
||||
focus_next = NodePath("Prompt")
|
||||
focus_mode = 1
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 0.8)
|
||||
theme_override_colors/font_placeholder_color = Color(1, 1, 1, 0.498039)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_hyysn")
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_hyysn")
|
||||
placeholder_text = "Search or enter address"
|
||||
script = ExtResource("1_7ivk2")
|
||||
gate_events = ExtResource("2_13io8")
|
||||
prompt_panel = NodePath("Prompt/Panel")
|
||||
|
||||
[node name="SearchStatus" type="Control" parent="." node_paths=PackedStringArray("search_line_edit", "search", "downloading", "success", "error")]
|
||||
self_modulate = Color(1, 1, 1, 0.8)
|
||||
layout_mode = 1
|
||||
anchors_preset = 4
|
||||
anchor_top = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = 12.0
|
||||
offset_top = -8.0
|
||||
offset_right = 28.0
|
||||
offset_bottom = 8.0
|
||||
grow_vertical = 2
|
||||
mouse_filter = 1
|
||||
script = ExtResource("3_3p1re")
|
||||
gate_events = ExtResource("2_13io8")
|
||||
search_line_edit = NodePath("..")
|
||||
search = NodePath("Search")
|
||||
downloading = NodePath("Downloading")
|
||||
success = NodePath("Success")
|
||||
error = NodePath("Error")
|
||||
|
||||
[node name="Search" type="TextureRect" parent="SearchStatus"]
|
||||
self_modulate = Color(1, 1, 1, 0.8)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("3_1rllf")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Downloading" type="TextureRect" parent="SearchStatus"]
|
||||
visible = false
|
||||
self_modulate = Color(1, 1, 1, 0.8)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
pivot_offset = Vector2(8, 8)
|
||||
texture = ExtResource("6_twd8p")
|
||||
expand_mode = 1
|
||||
script = ExtResource("6_fn1n3")
|
||||
duration = 0.5
|
||||
start_scale = 0.5
|
||||
end_scale = 1.0
|
||||
|
||||
[node name="Success" type="TextureRect" parent="SearchStatus"]
|
||||
visible = false
|
||||
self_modulate = Color(1, 1, 1, 0.8)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("6_twd8p")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Error" type="TextureRect" parent="SearchStatus"]
|
||||
visible = false
|
||||
self_modulate = Color(1, 1, 1, 0.8)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("7_jllve")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Go" type="BaseButton" parent="."]
|
||||
_import_path = NodePath("")
|
||||
unique_name_in_owner = false
|
||||
process_mode = 0
|
||||
process_priority = 0
|
||||
process_physics_priority = 0
|
||||
process_thread_group = 0
|
||||
editor_description = ""
|
||||
visible = false
|
||||
modulate = Color(1, 1, 1, 1)
|
||||
self_modulate = Color(1, 1, 1, 1)
|
||||
show_behind_parent = false
|
||||
top_level = false
|
||||
clip_children = 0
|
||||
light_mask = 1
|
||||
visibility_layer = 1
|
||||
z_index = 0
|
||||
z_as_relative = true
|
||||
y_sort_enabled = false
|
||||
texture_filter = 0
|
||||
texture_repeat = 0
|
||||
material = null
|
||||
use_parent_material = false
|
||||
clip_contents = false
|
||||
custom_minimum_size = Vector2(0, 0)
|
||||
layout_direction = 0
|
||||
layout_mode = 1
|
||||
anchors_preset = 6
|
||||
anchor_left = 1.0
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -30.0
|
||||
offset_top = -10.0
|
||||
offset_right = -10.0
|
||||
offset_bottom = 10.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 2
|
||||
rotation = 0.0
|
||||
scale = Vector2(1, 1)
|
||||
pivot_offset = Vector2(20, 20)
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 1
|
||||
size_flags_stretch_ratio = 1.0
|
||||
auto_translate = true
|
||||
localize_numeral_system = true
|
||||
tooltip_text = ""
|
||||
focus_neighbor_left = NodePath("")
|
||||
focus_neighbor_top = NodePath("")
|
||||
focus_neighbor_right = NodePath("")
|
||||
focus_neighbor_bottom = NodePath("")
|
||||
focus_next = NodePath("")
|
||||
focus_previous = NodePath("")
|
||||
focus_mode = 2
|
||||
mouse_filter = 0
|
||||
mouse_force_pass_scroll_events = true
|
||||
mouse_default_cursor_shape = 2
|
||||
theme = null
|
||||
theme_type_variation = &""
|
||||
disabled = false
|
||||
toggle_mode = false
|
||||
button_pressed = false
|
||||
action_mode = 1
|
||||
button_mask = 1
|
||||
keep_pressed_outside = false
|
||||
button_group = null
|
||||
shortcut = null
|
||||
shortcut_feedback = true
|
||||
shortcut_in_tooltip = true
|
||||
script = ExtResource("3_eayvw")
|
||||
gate_events = ExtResource("2_13io8")
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Go"]
|
||||
self_modulate = Color(1, 1, 1, 0.8)
|
||||
layout_mode = 0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("5_dqxpp")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Bookmark" type="Control" parent="." node_paths=PackedStringArray("star", "unstar")]
|
||||
layout_mode = 1
|
||||
anchors_preset = 6
|
||||
anchor_left = 1.0
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -30.0
|
||||
offset_top = -10.0
|
||||
offset_right = -10.0
|
||||
offset_bottom = 10.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 2
|
||||
script = ExtResource("6_iyikx")
|
||||
gate_events = ExtResource("2_13io8")
|
||||
bookmarks = ExtResource("7_2mijb")
|
||||
star = NodePath("Star")
|
||||
unstar = NodePath("Unstar")
|
||||
|
||||
[node name="Star" type="BaseButton" parent="Bookmark"]
|
||||
_import_path = NodePath("")
|
||||
unique_name_in_owner = false
|
||||
process_mode = 0
|
||||
process_priority = 0
|
||||
process_physics_priority = 0
|
||||
process_thread_group = 0
|
||||
editor_description = ""
|
||||
visible = true
|
||||
modulate = Color(1, 1, 1, 1)
|
||||
self_modulate = Color(1, 1, 1, 1)
|
||||
show_behind_parent = false
|
||||
top_level = false
|
||||
clip_children = 0
|
||||
light_mask = 1
|
||||
visibility_layer = 1
|
||||
z_index = 0
|
||||
z_as_relative = true
|
||||
y_sort_enabled = false
|
||||
texture_filter = 0
|
||||
texture_repeat = 0
|
||||
material = null
|
||||
use_parent_material = false
|
||||
clip_contents = false
|
||||
custom_minimum_size = Vector2(0, 0)
|
||||
layout_direction = 0
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 0.0
|
||||
offset_top = 0.0
|
||||
offset_right = 0.0
|
||||
offset_bottom = 0.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
rotation = 0.0
|
||||
scale = Vector2(1, 1)
|
||||
pivot_offset = Vector2(0, 0)
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 1
|
||||
size_flags_stretch_ratio = 1.0
|
||||
auto_translate = true
|
||||
localize_numeral_system = true
|
||||
tooltip_text = ""
|
||||
focus_neighbor_left = NodePath("")
|
||||
focus_neighbor_top = NodePath("")
|
||||
focus_neighbor_right = NodePath("")
|
||||
focus_neighbor_bottom = NodePath("")
|
||||
focus_next = NodePath("")
|
||||
focus_previous = NodePath("")
|
||||
focus_mode = 2
|
||||
mouse_filter = 0
|
||||
mouse_force_pass_scroll_events = true
|
||||
mouse_default_cursor_shape = 2
|
||||
theme = null
|
||||
theme_type_variation = &""
|
||||
disabled = false
|
||||
toggle_mode = false
|
||||
button_pressed = false
|
||||
action_mode = 1
|
||||
button_mask = 1
|
||||
keep_pressed_outside = false
|
||||
button_group = null
|
||||
shortcut = null
|
||||
shortcut_feedback = true
|
||||
shortcut_in_tooltip = true
|
||||
script = null
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Bookmark/Star"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("8_b00p6")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Unstar" type="BaseButton" parent="Bookmark"]
|
||||
_import_path = NodePath("")
|
||||
unique_name_in_owner = false
|
||||
process_mode = 0
|
||||
process_priority = 0
|
||||
process_physics_priority = 0
|
||||
process_thread_group = 0
|
||||
editor_description = ""
|
||||
visible = false
|
||||
modulate = Color(1, 1, 1, 1)
|
||||
self_modulate = Color(1, 1, 1, 1)
|
||||
show_behind_parent = false
|
||||
top_level = false
|
||||
clip_children = 0
|
||||
light_mask = 1
|
||||
visibility_layer = 1
|
||||
z_index = 0
|
||||
z_as_relative = true
|
||||
y_sort_enabled = false
|
||||
texture_filter = 0
|
||||
texture_repeat = 0
|
||||
material = null
|
||||
use_parent_material = false
|
||||
clip_contents = false
|
||||
custom_minimum_size = Vector2(0, 0)
|
||||
layout_direction = 0
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 0.0
|
||||
offset_top = 0.0
|
||||
offset_right = 0.0
|
||||
offset_bottom = 0.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
rotation = 0.0
|
||||
scale = Vector2(1, 1)
|
||||
pivot_offset = Vector2(0, 0)
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 1
|
||||
size_flags_stretch_ratio = 1.0
|
||||
auto_translate = true
|
||||
localize_numeral_system = true
|
||||
tooltip_text = ""
|
||||
focus_neighbor_left = NodePath("")
|
||||
focus_neighbor_top = NodePath("")
|
||||
focus_neighbor_right = NodePath("")
|
||||
focus_neighbor_bottom = NodePath("")
|
||||
focus_next = NodePath("")
|
||||
focus_previous = NodePath("")
|
||||
focus_mode = 2
|
||||
mouse_filter = 0
|
||||
mouse_force_pass_scroll_events = true
|
||||
mouse_default_cursor_shape = 2
|
||||
theme = null
|
||||
theme_type_variation = &""
|
||||
disabled = false
|
||||
toggle_mode = false
|
||||
button_pressed = false
|
||||
action_mode = 1
|
||||
button_mask = 1
|
||||
keep_pressed_outside = false
|
||||
button_group = null
|
||||
shortcut = null
|
||||
shortcut_feedback = true
|
||||
shortcut_in_tooltip = true
|
||||
script = null
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Bookmark/Unstar"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("9_2en0l")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Prompt" type="Control" parent="." node_paths=PackedStringArray("search", "prompt_results")]
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_vertical = 0
|
||||
script = ExtResource("14_h86vl")
|
||||
search = NodePath("..")
|
||||
prompt_results = NodePath("Panel/VBoxContainer")
|
||||
|
||||
[node name="Panel" type="Panel" parent="Prompt"]
|
||||
visible = false
|
||||
top_level = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -500.0
|
||||
offset_top = 560.0
|
||||
offset_right = 500.0
|
||||
offset_bottom = 860.0
|
||||
grow_horizontal = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_mh73y")
|
||||
script = ExtResource("15_35wcy")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Prompt/Panel" node_paths=PackedStringArray("panel")]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/separation = 0
|
||||
script = ExtResource("14_0lofv")
|
||||
gate_events = ExtResource("2_13io8")
|
||||
api = ExtResource("15_uafyh")
|
||||
result_scene = ExtResource("16_lbcsd")
|
||||
panel = NodePath("..")
|
||||
|
||||
[connection signal="text_changed" from="." to="Go" method="_on_search_text_changed"]
|
||||
[connection signal="text_changed" from="." to="Prompt/Panel/VBoxContainer" method="_on_search_text_changed"]
|
||||
[connection signal="text_submitted" from="." to="." method="_on_text_submitted"]
|
||||
[connection signal="pressed" from="Go" to="." method="_on_go_pressed"]
|
||||
[connection signal="pressed" from="Bookmark/Star" to="Bookmark" method="_on_star_pressed"]
|
||||
[connection signal="pressed" from="Bookmark/Unstar" to="Bookmark" method="_on_unstar_pressed"]
|
Loading…
Add table
Add a link
Reference in a new issue