mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-23 17:17:31 -04:00
move files, onboarding (wip)
This commit is contained in:
parent
fcb2e5523e
commit
550f89bcf6
10 changed files with 235 additions and 67 deletions
115
app/scenes/components/onboarding/onboarding.tscn
Normal file
115
app/scenes/components/onboarding/onboarding.tscn
Normal file
|
@ -0,0 +1,115 @@
|
||||||
|
[gd_scene load_steps=8 format=3 uid="uid://b5tbn17l1pfs1"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" path="res://scripts/ui/onboarding/onboarding.gd" id="1_2xh2a"]
|
||||||
|
[ext_resource type="StyleBox" uid="uid://bllkg32sc4iam" path="res://assets/styles/panel.stylebox" id="2_mnljw"]
|
||||||
|
[ext_resource type="LabelSettings" uid="uid://crt4elt055uhg" path="res://assets/styles/text_big.tres" id="3_3pufm"]
|
||||||
|
[ext_resource type="FontFile" uid="uid://do40418waa8w3" path="res://assets/fonts/Inter-Regular.otf" id="4_bi8o3"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://xagbhqfidf2" path="res://scenes/components/round_button.tscn" id="5_tk3ti"]
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_htqsi"]
|
||||||
|
bg_color = Color(0, 0, 0, 0.5)
|
||||||
|
|
||||||
|
[sub_resource type="LabelSettings" id="LabelSettings_bkr01"]
|
||||||
|
font = ExtResource("4_bi8o3")
|
||||||
|
font_size = 20
|
||||||
|
font_color = Color(0.431373, 0.435294, 0.494118, 1)
|
||||||
|
|
||||||
|
[node name="Onboarding" type="Control" node_paths=PackedStringArray("root", "skip")]
|
||||||
|
top_level = true
|
||||||
|
z_index = 10
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 15
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
mouse_filter = 2
|
||||||
|
script = ExtResource("1_2xh2a")
|
||||||
|
root = NodePath("Root")
|
||||||
|
skip = NodePath("Root/Popup/MarginContainer/VBoxContainer/HBoxContainer/Hide")
|
||||||
|
|
||||||
|
[node name="Root" 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="Panel" type="Panel" parent="Root"]
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 15
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
mouse_filter = 2
|
||||||
|
theme_override_styles/panel = SubResource("StyleBoxFlat_htqsi")
|
||||||
|
|
||||||
|
[node name="Popup" type="AspectRatioContainer" parent="Root"]
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 8
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_top = 0.5
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 0.5
|
||||||
|
offset_left = -533.0
|
||||||
|
offset_top = -356.5
|
||||||
|
offset_right = 533.0
|
||||||
|
offset_bottom = 356.5
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
ratio = 1.35
|
||||||
|
|
||||||
|
[node name="Panel" type="Panel" parent="Root/Popup"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_styles/panel = ExtResource("2_mnljw")
|
||||||
|
|
||||||
|
[node name="MarginContainer" type="MarginContainer" parent="Root/Popup"]
|
||||||
|
layout_mode = 2
|
||||||
|
mouse_filter = 0
|
||||||
|
theme_override_constants/margin_top = 24
|
||||||
|
theme_override_constants/margin_bottom = 24
|
||||||
|
|
||||||
|
[node name="VBoxContainer" type="VBoxContainer" parent="Root/Popup/MarginContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_constants/separation = 20
|
||||||
|
|
||||||
|
[node name="Label" type="Label" parent="Root/Popup/MarginContainer/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
text = "Gate is not responding"
|
||||||
|
label_settings = ExtResource("3_3pufm")
|
||||||
|
horizontal_alignment = 1
|
||||||
|
vertical_alignment = 1
|
||||||
|
|
||||||
|
[node name="Label2" type="Label" parent="Root/Popup/MarginContainer/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
text = "Reload the page or try
|
||||||
|
to wait if it responses"
|
||||||
|
label_settings = SubResource("LabelSettings_bkr01")
|
||||||
|
horizontal_alignment = 1
|
||||||
|
|
||||||
|
[node name="HBoxContainer" type="HBoxContainer" parent="Root/Popup/MarginContainer/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
theme_override_constants/separation = 22
|
||||||
|
|
||||||
|
[node name="Reload" parent="Root/Popup/MarginContainer/VBoxContainer/HBoxContainer" instance=ExtResource("5_tk3ti")]
|
||||||
|
custom_minimum_size = Vector2(90, 26)
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_colors/font_disabled_color = Color(0.431373, 0.435294, 0.494118, 1)
|
||||||
|
theme_override_colors/font_color = Color(0.831373, 0.831373, 0.831373, 1)
|
||||||
|
theme_override_fonts/font = ExtResource("4_bi8o3")
|
||||||
|
theme_override_font_sizes/font_size = 20
|
||||||
|
text = "Reload"
|
||||||
|
icon = null
|
||||||
|
|
||||||
|
[node name="Hide" parent="Root/Popup/MarginContainer/VBoxContainer/HBoxContainer" instance=ExtResource("5_tk3ti")]
|
||||||
|
custom_minimum_size = Vector2(90, 26)
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_colors/font_disabled_color = Color(0.431373, 0.435294, 0.494118, 1)
|
||||||
|
theme_override_colors/font_color = Color(0.831373, 0.831373, 0.831373, 1)
|
||||||
|
theme_override_fonts/font = ExtResource("4_bi8o3")
|
||||||
|
theme_override_font_sizes/font_size = 20
|
||||||
|
text = "Wait"
|
||||||
|
icon = null
|
|
@ -1,22 +1,22 @@
|
||||||
[gd_scene load_steps=20 format=3 uid="uid://ctam0fxigbefk"]
|
[gd_scene load_steps=20 format=3 uid="uid://ctam0fxigbefk"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://scripts/ui/search.gd" id="1_7ivk2"]
|
[ext_resource type="FontFile" uid="uid://do40418waa8w3" path="res://assets/fonts/Inter-Regular.otf" id="1_ruyeb"]
|
||||||
[ext_resource type="FontFile" uid="uid://do40418waa8w3" path="res://assets/fonts/Inter-Regular.otf" id="1_cimak"]
|
[ext_resource type="Script" path="res://scripts/ui/search.gd" id="2_7qvyv"]
|
||||||
[ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://resources/gate_events.res" id="2_13io8"]
|
[ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://resources/gate_events.res" id="3_685a6"]
|
||||||
[ext_resource type="Script" path="res://scripts/ui/search/search_status.gd" id="3_3p1re"]
|
[ext_resource type="Script" path="res://scripts/ui/search/search_status.gd" id="4_cx4ue"]
|
||||||
[ext_resource type="Texture2D" uid="uid://byrcelmfy6r3l" path="res://assets/textures/search.svg" id="5_553np"]
|
[ext_resource type="Texture2D" uid="uid://byrcelmfy6r3l" path="res://assets/textures/search.svg" id="5_c6ql8"]
|
||||||
[ext_resource type="Script" path="res://scripts/ui/search/download_animation.gd" id="6_fn1n3"]
|
[ext_resource type="Texture2D" uid="uid://cx3xxaqo3s3eq" path="res://assets/textures/gate.svg" id="6_p0kxs"]
|
||||||
[ext_resource type="Script" path="res://scripts/ui/menu/star.gd" id="6_iyikx"]
|
[ext_resource type="Script" path="res://scripts/ui/search/download_animation.gd" id="7_x8glc"]
|
||||||
[ext_resource type="Texture2D" uid="uid://cx3xxaqo3s3eq" path="res://assets/textures/gate.svg" id="6_twd8p"]
|
[ext_resource type="Texture2D" uid="uid://cli88m5w3op6l" path="res://assets/textures/close_tab.svg" id="8_c6y7s"]
|
||||||
[ext_resource type="Resource" uid="uid://bewhdj6jugt6q" path="res://resources/bookmarks.tres" id="7_2mijb"]
|
[ext_resource type="Script" path="res://scripts/ui/menu/star.gd" id="9_ddnf2"]
|
||||||
[ext_resource type="Texture2D" uid="uid://cli88m5w3op6l" path="res://assets/textures/close_tab.svg" id="8_sk5cp"]
|
[ext_resource type="Resource" uid="uid://bewhdj6jugt6q" path="res://resources/bookmarks.tres" id="10_ih0xb"]
|
||||||
[ext_resource type="Texture2D" uid="uid://c7ljriip50hte" path="res://assets/textures/star.svg" id="13_ojxfq"]
|
[ext_resource type="Texture2D" uid="uid://c7ljriip50hte" path="res://assets/textures/star.svg" id="11_36jkj"]
|
||||||
[ext_resource type="Script" path="res://scripts/ui/search/prompt_results.gd" id="14_0lofv"]
|
[ext_resource type="Texture2D" uid="uid://itloduvrh00o" path="res://assets/textures/star_color.svg" id="12_fj18v"]
|
||||||
[ext_resource type="Texture2D" uid="uid://itloduvrh00o" path="res://assets/textures/star_color.svg" id="14_fpi5q"]
|
[ext_resource type="Script" path="res://scripts/ui/search/prompt_navigation.gd" id="13_2wt6m"]
|
||||||
[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="14_t74qb"]
|
||||||
[ext_resource type="Script" path="res://scripts/ui/search/fix_promt_position.gd" id="15_35wcy"]
|
[ext_resource type="Script" path="res://scripts/ui/search/prompt_results.gd" id="15_oxssj"]
|
||||||
[ext_resource type="Resource" uid="uid://cjcdum6fm4ta0" path="res://resources/api_settings.tres" id="15_uafyh"]
|
[ext_resource type="Resource" uid="uid://cjcdum6fm4ta0" path="res://resources/api_settings.tres" id="16_rk35h"]
|
||||||
[ext_resource type="PackedScene" uid="uid://b57n6cvtqn5b7" path="res://scenes/components/prompt.tscn" id="16_lbcsd"]
|
[ext_resource type="PackedScene" uid="uid://b57n6cvtqn5b7" path="res://scenes/components/search/prompt.tscn" id="17_xggpn"]
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_hyysn"]
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_hyysn"]
|
||||||
content_margin_left = 30.0
|
content_margin_left = 30.0
|
||||||
|
@ -66,14 +66,14 @@ focus_mode = 1
|
||||||
theme_override_colors/selection_color = Color(0.419608, 0.231373, 0.929412, 0.588235)
|
theme_override_colors/selection_color = Color(0.419608, 0.231373, 0.929412, 0.588235)
|
||||||
theme_override_colors/font_placeholder_color = Color(0.431373, 0.435294, 0.494118, 1)
|
theme_override_colors/font_placeholder_color = Color(0.431373, 0.435294, 0.494118, 1)
|
||||||
theme_override_colors/font_color = Color(0.831373, 0.831373, 0.831373, 1)
|
theme_override_colors/font_color = Color(0.831373, 0.831373, 0.831373, 1)
|
||||||
theme_override_fonts/font = ExtResource("1_cimak")
|
theme_override_fonts/font = ExtResource("1_ruyeb")
|
||||||
theme_override_font_sizes/font_size = 15
|
theme_override_font_sizes/font_size = 15
|
||||||
theme_override_styles/focus = SubResource("StyleBoxFlat_hyysn")
|
theme_override_styles/focus = SubResource("StyleBoxFlat_hyysn")
|
||||||
theme_override_styles/normal = SubResource("StyleBoxFlat_hyysn")
|
theme_override_styles/normal = SubResource("StyleBoxFlat_hyysn")
|
||||||
placeholder_text = "Search or type URL"
|
placeholder_text = "Search or type URL"
|
||||||
select_all_on_focus = true
|
select_all_on_focus = true
|
||||||
script = ExtResource("1_7ivk2")
|
script = ExtResource("2_7qvyv")
|
||||||
gate_events = ExtResource("2_13io8")
|
gate_events = ExtResource("3_685a6")
|
||||||
prompt_panel = NodePath("Prompt/Panel")
|
prompt_panel = NodePath("Prompt/Panel")
|
||||||
|
|
||||||
[node name="SearchStatus" type="Control" parent="." node_paths=PackedStringArray("search_line_edit", "search", "downloading", "success", "error")]
|
[node name="SearchStatus" type="Control" parent="." node_paths=PackedStringArray("search_line_edit", "search", "downloading", "success", "error")]
|
||||||
|
@ -88,8 +88,8 @@ offset_right = 24.0
|
||||||
offset_bottom = 7.0
|
offset_bottom = 7.0
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
mouse_filter = 1
|
mouse_filter = 1
|
||||||
script = ExtResource("3_3p1re")
|
script = ExtResource("4_cx4ue")
|
||||||
gate_events = ExtResource("2_13io8")
|
gate_events = ExtResource("3_685a6")
|
||||||
search_line_edit = NodePath("..")
|
search_line_edit = NodePath("..")
|
||||||
search = NodePath("Search")
|
search = NodePath("Search")
|
||||||
downloading = NodePath("Downloading")
|
downloading = NodePath("Downloading")
|
||||||
|
@ -105,7 +105,7 @@ anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
texture = ExtResource("5_553np")
|
texture = ExtResource("5_c6ql8")
|
||||||
expand_mode = 1
|
expand_mode = 1
|
||||||
|
|
||||||
[node name="Downloading" type="TextureRect" parent="SearchStatus"]
|
[node name="Downloading" type="TextureRect" parent="SearchStatus"]
|
||||||
|
@ -117,9 +117,9 @@ anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
pivot_offset = Vector2(8, 8)
|
pivot_offset = Vector2(8, 8)
|
||||||
texture = ExtResource("6_twd8p")
|
texture = ExtResource("6_p0kxs")
|
||||||
expand_mode = 1
|
expand_mode = 1
|
||||||
script = ExtResource("6_fn1n3")
|
script = ExtResource("7_x8glc")
|
||||||
start_scale = 1.0
|
start_scale = 1.0
|
||||||
end_scale = 0.5
|
end_scale = 0.5
|
||||||
duration = 0.5
|
duration = 0.5
|
||||||
|
@ -132,7 +132,7 @@ anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
texture = ExtResource("6_twd8p")
|
texture = ExtResource("6_p0kxs")
|
||||||
expand_mode = 1
|
expand_mode = 1
|
||||||
|
|
||||||
[node name="Error" type="TextureRect" parent="SearchStatus"]
|
[node name="Error" type="TextureRect" parent="SearchStatus"]
|
||||||
|
@ -143,7 +143,7 @@ anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
texture = ExtResource("8_sk5cp")
|
texture = ExtResource("8_c6y7s")
|
||||||
expand_mode = 1
|
expand_mode = 1
|
||||||
|
|
||||||
[node name="Bookmark" type="Control" parent="." node_paths=PackedStringArray("star", "unstar")]
|
[node name="Bookmark" type="Control" parent="." node_paths=PackedStringArray("star", "unstar")]
|
||||||
|
@ -159,9 +159,9 @@ offset_right = -8.0
|
||||||
offset_bottom = 10.0
|
offset_bottom = 10.0
|
||||||
grow_horizontal = 0
|
grow_horizontal = 0
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
script = ExtResource("6_iyikx")
|
script = ExtResource("9_ddnf2")
|
||||||
gate_events = ExtResource("2_13io8")
|
gate_events = ExtResource("3_685a6")
|
||||||
bookmarks = ExtResource("7_2mijb")
|
bookmarks = ExtResource("10_ih0xb")
|
||||||
star = NodePath("Star")
|
star = NodePath("Star")
|
||||||
unstar = NodePath("Unstar")
|
unstar = NodePath("Unstar")
|
||||||
|
|
||||||
|
@ -245,7 +245,7 @@ anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
texture = ExtResource("13_ojxfq")
|
texture = ExtResource("11_36jkj")
|
||||||
expand_mode = 1
|
expand_mode = 1
|
||||||
|
|
||||||
[node name="Unstar" type="BaseButton" parent="Bookmark"]
|
[node name="Unstar" type="BaseButton" parent="Bookmark"]
|
||||||
|
@ -327,7 +327,7 @@ anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
texture = ExtResource("14_fpi5q")
|
texture = ExtResource("12_fj18v")
|
||||||
expand_mode = 1
|
expand_mode = 1
|
||||||
|
|
||||||
[node name="Prompt" type="Control" parent="." node_paths=PackedStringArray("search", "prompt_results")]
|
[node name="Prompt" type="Control" parent="." node_paths=PackedStringArray("search", "prompt_results")]
|
||||||
|
@ -336,7 +336,7 @@ anchors_preset = 2
|
||||||
anchor_top = 1.0
|
anchor_top = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_vertical = 0
|
grow_vertical = 0
|
||||||
script = ExtResource("14_h86vl")
|
script = ExtResource("13_2wt6m")
|
||||||
search = NodePath("..")
|
search = NodePath("..")
|
||||||
prompt_results = NodePath("Panel/VBoxContainer")
|
prompt_results = NodePath("Panel/VBoxContainer")
|
||||||
|
|
||||||
|
@ -353,7 +353,7 @@ offset_right = 500.0
|
||||||
offset_bottom = 860.0
|
offset_bottom = 860.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
theme_override_styles/panel = SubResource("StyleBoxFlat_mh73y")
|
theme_override_styles/panel = SubResource("StyleBoxFlat_mh73y")
|
||||||
script = ExtResource("15_35wcy")
|
script = ExtResource("14_t74qb")
|
||||||
search = NodePath("../..")
|
search = NodePath("../..")
|
||||||
|
|
||||||
[node name="VBoxContainer" type="VBoxContainer" parent="Prompt/Panel" node_paths=PackedStringArray("panel")]
|
[node name="VBoxContainer" type="VBoxContainer" parent="Prompt/Panel" node_paths=PackedStringArray("panel")]
|
||||||
|
@ -364,10 +364,10 @@ anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
theme_override_constants/separation = 0
|
theme_override_constants/separation = 0
|
||||||
script = ExtResource("14_0lofv")
|
script = ExtResource("15_oxssj")
|
||||||
gate_events = ExtResource("2_13io8")
|
gate_events = ExtResource("3_685a6")
|
||||||
api = ExtResource("15_uafyh")
|
api = ExtResource("16_rk35h")
|
||||||
result_scene = ExtResource("16_lbcsd")
|
result_scene = ExtResource("17_xggpn")
|
||||||
panel = NodePath("..")
|
panel = NodePath("..")
|
||||||
|
|
||||||
[connection signal="text_changed" from="." to="Prompt/Panel/VBoxContainer" method="_on_search_text_changed"]
|
[connection signal="text_changed" from="." to="Prompt/Panel/VBoxContainer" method="_on_search_text_changed"]
|
|
@ -1,14 +1,14 @@
|
||||||
[gd_scene load_steps=16 format=3 uid="uid://bs2cwop0ei1r1"]
|
[gd_scene load_steps=16 format=3 uid="uid://bs2cwop0ei1r1"]
|
||||||
|
|
||||||
[ext_resource type="FontFile" uid="uid://do40418waa8w3" path="res://assets/fonts/Inter-Regular.otf" id="1_o2a5w"]
|
[ext_resource type="FontFile" uid="uid://do40418waa8w3" path="res://assets/fonts/Inter-Regular.otf" id="1_767gv"]
|
||||||
[ext_resource type="Script" path="res://scripts/ui/search.gd" id="2_g181m"]
|
[ext_resource type="Script" path="res://scripts/ui/search.gd" id="2_h4fn7"]
|
||||||
[ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://resources/gate_events.res" id="3_bulmv"]
|
[ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://resources/gate_events.res" id="3_xrtl6"]
|
||||||
[ext_resource type="Texture2D" uid="uid://ckkmluvnrorek" path="res://assets/textures/search_96.svg" id="4_ytxk3"]
|
[ext_resource type="Texture2D" uid="uid://ckkmluvnrorek" path="res://assets/textures/search_96.svg" id="4_m7aa2"]
|
||||||
[ext_resource type="Script" path="res://scripts/ui/search/prompt_navigation.gd" id="12_53j30"]
|
[ext_resource type="Script" path="res://scripts/ui/search/prompt_navigation.gd" id="5_iptg2"]
|
||||||
[ext_resource type="Script" path="res://scripts/ui/search/fix_promt_position.gd" id="13_6kqm6"]
|
[ext_resource type="Script" path="res://scripts/ui/search/fix_promt_position.gd" id="6_c6kyf"]
|
||||||
[ext_resource type="Script" path="res://scripts/ui/search/prompt_results.gd" id="14_mfwuo"]
|
[ext_resource type="Script" path="res://scripts/ui/search/prompt_results.gd" id="7_ijfkq"]
|
||||||
[ext_resource type="Resource" uid="uid://cjcdum6fm4ta0" path="res://resources/api_settings.tres" id="15_xod5p"]
|
[ext_resource type="Resource" uid="uid://cjcdum6fm4ta0" path="res://resources/api_settings.tres" id="8_8atq2"]
|
||||||
[ext_resource type="PackedScene" uid="uid://b57n6cvtqn5b7" path="res://scenes/components/prompt.tscn" id="16_jji5b"]
|
[ext_resource type="PackedScene" uid="uid://b57n6cvtqn5b7" path="res://scenes/components/search/prompt.tscn" id="9_aknf3"]
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_w0n18"]
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_w0n18"]
|
||||||
content_margin_left = 45.0
|
content_margin_left = 45.0
|
||||||
|
@ -86,14 +86,14 @@ focus_mode = 1
|
||||||
theme_override_colors/selection_color = Color(0.4185, 0.2325, 0.93, 0.588235)
|
theme_override_colors/selection_color = Color(0.4185, 0.2325, 0.93, 0.588235)
|
||||||
theme_override_colors/font_placeholder_color = Color(0.431373, 0.435294, 0.494118, 1)
|
theme_override_colors/font_placeholder_color = Color(0.431373, 0.435294, 0.494118, 1)
|
||||||
theme_override_colors/font_color = Color(0.831373, 0.831373, 0.831373, 1)
|
theme_override_colors/font_color = Color(0.831373, 0.831373, 0.831373, 1)
|
||||||
theme_override_fonts/font = ExtResource("1_o2a5w")
|
theme_override_fonts/font = ExtResource("1_767gv")
|
||||||
theme_override_font_sizes/font_size = 20
|
theme_override_font_sizes/font_size = 20
|
||||||
theme_override_styles/focus = SubResource("StyleBoxFlat_w0n18")
|
theme_override_styles/focus = SubResource("StyleBoxFlat_w0n18")
|
||||||
theme_override_styles/normal = SubResource("StyleBoxFlat_w0n18")
|
theme_override_styles/normal = SubResource("StyleBoxFlat_w0n18")
|
||||||
placeholder_text = "What are you looking for today?"
|
placeholder_text = "What are you looking for today?"
|
||||||
select_all_on_focus = true
|
select_all_on_focus = true
|
||||||
script = ExtResource("2_g181m")
|
script = ExtResource("2_h4fn7")
|
||||||
gate_events = ExtResource("3_bulmv")
|
gate_events = ExtResource("3_xrtl6")
|
||||||
prompt_panel = NodePath("Prompt/Panel")
|
prompt_panel = NodePath("Prompt/Panel")
|
||||||
focus_on_ready = true
|
focus_on_ready = true
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
texture = ExtResource("4_ytxk3")
|
texture = ExtResource("4_m7aa2")
|
||||||
expand_mode = 1
|
expand_mode = 1
|
||||||
|
|
||||||
[node name="Prompt" type="Control" parent="." node_paths=PackedStringArray("search", "prompt_results")]
|
[node name="Prompt" type="Control" parent="." node_paths=PackedStringArray("search", "prompt_results")]
|
||||||
|
@ -126,7 +126,7 @@ anchors_preset = 2
|
||||||
anchor_top = 1.0
|
anchor_top = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_vertical = 0
|
grow_vertical = 0
|
||||||
script = ExtResource("12_53j30")
|
script = ExtResource("5_iptg2")
|
||||||
search = NodePath("..")
|
search = NodePath("..")
|
||||||
prompt_results = NodePath("Panel/VBoxContainer")
|
prompt_results = NodePath("Panel/VBoxContainer")
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ offset_right = 500.0
|
||||||
offset_bottom = 860.0
|
offset_bottom = 860.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
theme_override_styles/panel = SubResource("StyleBoxFlat_mh73y")
|
theme_override_styles/panel = SubResource("StyleBoxFlat_mh73y")
|
||||||
script = ExtResource("13_6kqm6")
|
script = ExtResource("6_c6kyf")
|
||||||
search = NodePath("../..")
|
search = NodePath("../..")
|
||||||
|
|
||||||
[node name="VBoxContainer" type="VBoxContainer" parent="Prompt/Panel" node_paths=PackedStringArray("panel")]
|
[node name="VBoxContainer" type="VBoxContainer" parent="Prompt/Panel" node_paths=PackedStringArray("panel")]
|
||||||
|
@ -154,10 +154,10 @@ anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
theme_override_constants/separation = 0
|
theme_override_constants/separation = 0
|
||||||
script = ExtResource("14_mfwuo")
|
script = ExtResource("7_ijfkq")
|
||||||
gate_events = ExtResource("3_bulmv")
|
gate_events = ExtResource("3_xrtl6")
|
||||||
api = ExtResource("15_xod5p")
|
api = ExtResource("8_8atq2")
|
||||||
result_scene = ExtResource("16_jji5b")
|
result_scene = ExtResource("9_aknf3")
|
||||||
panel = NodePath("..")
|
panel = NodePath("..")
|
||||||
|
|
||||||
[node name="Button" type="Button" parent="."]
|
[node name="Button" type="Button" parent="."]
|
||||||
|
@ -179,7 +179,7 @@ theme_override_colors/font_hover_color = Color(0.831373, 0.831373, 0.831373, 1)
|
||||||
theme_override_colors/font_pressed_color = Color(0.831373, 0.831373, 0.831373, 1)
|
theme_override_colors/font_pressed_color = Color(0.831373, 0.831373, 0.831373, 1)
|
||||||
theme_override_colors/font_focus_color = Color(0.831373, 0.831373, 0.831373, 1)
|
theme_override_colors/font_focus_color = Color(0.831373, 0.831373, 0.831373, 1)
|
||||||
theme_override_colors/font_color = Color(0.831373, 0.831373, 0.831373, 1)
|
theme_override_colors/font_color = Color(0.831373, 0.831373, 0.831373, 1)
|
||||||
theme_override_fonts/font = ExtResource("1_o2a5w")
|
theme_override_fonts/font = ExtResource("1_767gv")
|
||||||
theme_override_font_sizes/font_size = 20
|
theme_override_font_sizes/font_size = 20
|
||||||
theme_override_styles/focus = SubResource("StyleBoxFlat_ym5t0")
|
theme_override_styles/focus = SubResource("StyleBoxFlat_ym5t0")
|
||||||
theme_override_styles/hover = SubResource("StyleBoxFlat_yso1e")
|
theme_override_styles/hover = SubResource("StyleBoxFlat_yso1e")
|
|
@ -6,7 +6,7 @@
|
||||||
[ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://resources/gate_events.res" id="3_m632k"]
|
[ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://resources/gate_events.res" id="3_m632k"]
|
||||||
[ext_resource type="Resource" uid="uid://bqgikyax6jfqa" path="res://resources/history.tres" id="3_wi554"]
|
[ext_resource type="Resource" uid="uid://bqgikyax6jfqa" path="res://resources/history.tres" id="3_wi554"]
|
||||||
[ext_resource type="Texture2D" uid="uid://c80732g67qmvx" path="res://assets/textures/plus.svg" id="4_rdyyc"]
|
[ext_resource type="Texture2D" uid="uid://c80732g67qmvx" path="res://assets/textures/plus.svg" id="4_rdyyc"]
|
||||||
[ext_resource type="PackedScene" uid="uid://ctam0fxigbefk" path="res://scenes/components/search.tscn" id="5_li2do"]
|
[ext_resource type="PackedScene" uid="uid://ctam0fxigbefk" path="res://scenes/components/search/search.tscn" id="5_li2do"]
|
||||||
[ext_resource type="PackedScene" uid="uid://xagbhqfidf2" path="res://scenes/components/round_button.tscn" id="6_gxcmo"]
|
[ext_resource type="PackedScene" uid="uid://xagbhqfidf2" path="res://scenes/components/round_button.tscn" id="6_gxcmo"]
|
||||||
[ext_resource type="Texture2D" uid="uid://d1ehc1xs5hwyn" path="res://assets/textures/minimize.svg" id="7_ab04l"]
|
[ext_resource type="Texture2D" uid="uid://d1ehc1xs5hwyn" path="res://assets/textures/minimize.svg" id="7_ab04l"]
|
||||||
[ext_resource type="Resource" uid="uid://crjhix0osmtnf" path="res://resources/ui_events.res" id="8_8dnbq"]
|
[ext_resource type="Resource" uid="uid://crjhix0osmtnf" path="res://resources/ui_events.res" id="8_8dnbq"]
|
||||||
|
|
|
@ -1,15 +1,16 @@
|
||||||
[gd_scene load_steps=21 format=3 uid="uid://ca647gp63bshc"]
|
[gd_scene load_steps=22 format=3 uid="uid://ca647gp63bshc"]
|
||||||
|
|
||||||
[ext_resource type="Texture2D" uid="uid://bw1cffhlt112i" path="res://assets/textures/icon_round.svg" id="1_dh3vr"]
|
[ext_resource type="Texture2D" uid="uid://bw1cffhlt112i" path="res://assets/textures/icon_round.svg" id="1_dh3vr"]
|
||||||
[ext_resource type="Script" path="res://scripts/ui/menu/bookmark_container.gd" id="1_g38mt"]
|
[ext_resource type="Script" path="res://scripts/ui/menu/bookmark_container.gd" id="1_g38mt"]
|
||||||
[ext_resource type="Script" path="res://scripts/ui/menu/scroll_container.gd" id="1_nto68"]
|
[ext_resource type="Script" path="res://scripts/ui/menu/scroll_container.gd" id="1_nto68"]
|
||||||
[ext_resource type="Resource" uid="uid://bewhdj6jugt6q" path="res://resources/bookmarks.tres" id="2_2igc6"]
|
[ext_resource type="Resource" uid="uid://bewhdj6jugt6q" path="res://resources/bookmarks.tres" id="2_2igc6"]
|
||||||
[ext_resource type="Script" path="res://addons/max_size_container/max_size_container.gd" id="2_ceb6w"]
|
[ext_resource type="Script" path="res://addons/max_size_container/max_size_container.gd" id="2_ceb6w"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bs2cwop0ei1r1" path="res://scenes/components/search_home.tscn" id="3_guc56"]
|
[ext_resource type="PackedScene" uid="uid://bs2cwop0ei1r1" path="res://scenes/components/search/search_home.tscn" id="3_guc56"]
|
||||||
[ext_resource type="PackedScene" uid="uid://82ca8so31njy" path="res://scenes/components/bookmark.tscn" id="3_isdis"]
|
[ext_resource type="PackedScene" uid="uid://82ca8so31njy" path="res://scenes/components/bookmark.tscn" id="3_isdis"]
|
||||||
[ext_resource type="PackedScene" uid="uid://xagbhqfidf2" path="res://scenes/components/round_button.tscn" id="7_bbq84"]
|
[ext_resource type="PackedScene" uid="uid://xagbhqfidf2" path="res://scenes/components/round_button.tscn" id="7_bbq84"]
|
||||||
[ext_resource type="Texture2D" uid="uid://dy5lmm2egk4w1" path="res://assets/textures/help.svg" id="8_3cxe2"]
|
[ext_resource type="Texture2D" uid="uid://dy5lmm2egk4w1" path="res://assets/textures/help.svg" id="8_3cxe2"]
|
||||||
[ext_resource type="Script" path="res://scripts/ui/menu/help_button.gd" id="10_ant0e"]
|
[ext_resource type="Script" path="res://scripts/ui/menu/help_button.gd" id="10_ant0e"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://b5tbn17l1pfs1" path="res://scenes/components/onboarding/onboarding.tscn" id="11_kyh0m"]
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_kmpb2"]
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_kmpb2"]
|
||||||
bg_color = Color(0.113725, 0.117647, 0.14902, 1)
|
bg_color = Color(0.113725, 0.117647, 0.14902, 1)
|
||||||
|
@ -179,9 +180,9 @@ size_flags_horizontal = 3
|
||||||
[node name="MaxSizeContainer2" type="MarginContainer" parent="MarginContainer/ScrollContainer/VBoxContainer/HBoxContainer/VBoxContainer"]
|
[node name="MaxSizeContainer2" type="MarginContainer" parent="MarginContainer/ScrollContainer/VBoxContainer/HBoxContainer/VBoxContainer"]
|
||||||
custom_minimum_size = Vector2(300, 44)
|
custom_minimum_size = Vector2(300, 44)
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
theme_override_constants/margin_left = 0
|
theme_override_constants/margin_left = 393
|
||||||
theme_override_constants/margin_top = 0
|
theme_override_constants/margin_top = 0
|
||||||
theme_override_constants/margin_right = 0
|
theme_override_constants/margin_right = 393
|
||||||
theme_override_constants/margin_bottom = 0
|
theme_override_constants/margin_bottom = 0
|
||||||
script = ExtResource("2_ceb6w")
|
script = ExtResource("2_ceb6w")
|
||||||
limit = Vector2(720, -1)
|
limit = Vector2(720, -1)
|
||||||
|
@ -198,9 +199,9 @@ custom_minimum_size = Vector2(180, 400)
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
size_flags_stretch_ratio = 2.0
|
size_flags_stretch_ratio = 2.0
|
||||||
theme_override_constants/margin_left = 0
|
theme_override_constants/margin_left = 278
|
||||||
theme_override_constants/margin_top = 0
|
theme_override_constants/margin_top = 0
|
||||||
theme_override_constants/margin_right = 0
|
theme_override_constants/margin_right = 278
|
||||||
theme_override_constants/margin_bottom = 0
|
theme_override_constants/margin_bottom = 0
|
||||||
script = ExtResource("2_ceb6w")
|
script = ExtResource("2_ceb6w")
|
||||||
limit = Vector2(950, -1)
|
limit = Vector2(950, -1)
|
||||||
|
@ -249,3 +250,6 @@ theme_override_styles/normal = SubResource("StyleBoxFlat_37fyt")
|
||||||
icon = ExtResource("8_3cxe2")
|
icon = ExtResource("8_3cxe2")
|
||||||
script = ExtResource("10_ant0e")
|
script = ExtResource("10_ant0e")
|
||||||
url = "https://forms.gle/1NmJeCQnQh7Yc1KP8"
|
url = "https://forms.gle/1NmJeCQnQh7Yc1KP8"
|
||||||
|
|
||||||
|
[node name="Onboarding" parent="." instance=ExtResource("11_kyh0m")]
|
||||||
|
layout_mode = 1
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
[ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://resources/gate_events.res" id="2_2plpa"]
|
[ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://resources/gate_events.res" id="2_2plpa"]
|
||||||
[ext_resource type="Resource" uid="uid://cjcdum6fm4ta0" path="res://resources/api_settings.tres" id="3_263ma"]
|
[ext_resource type="Resource" uid="uid://cjcdum6fm4ta0" path="res://resources/api_settings.tres" id="3_263ma"]
|
||||||
[ext_resource type="Script" path="res://scripts/ui/search/search_results_header.gd" id="3_cuw8t"]
|
[ext_resource type="Script" path="res://scripts/ui/search/search_results_header.gd" id="3_cuw8t"]
|
||||||
[ext_resource type="PackedScene" uid="uid://i3lgu2dyypcq" path="res://scenes/components/result.tscn" id="4_yxn4t"]
|
[ext_resource type="PackedScene" uid="uid://i3lgu2dyypcq" path="res://scenes/components/search/result.tscn" id="4_yxn4t"]
|
||||||
[ext_resource type="PackedScene" uid="uid://dntnp0igpccdt" path="res://scenes/components/suggestion.tscn" id="8_1alsm"]
|
[ext_resource type="PackedScene" uid="uid://dntnp0igpccdt" path="res://scenes/components/search/suggestion.tscn" id="8_1alsm"]
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_u8k0c"]
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_u8k0c"]
|
||||||
bg_color = Color(0.113725, 0.117647, 0.14902, 1)
|
bg_color = Color(0.113725, 0.117647, 0.14902, 1)
|
||||||
|
|
49
app/scripts/ui/onboarding/onboarding.gd
Normal file
49
app/scripts/ui/onboarding/onboarding.gd
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
extends Control
|
||||||
|
|
||||||
|
@export var root: Control
|
||||||
|
@export var skip: Button
|
||||||
|
@export var fade_in: float = 1.0
|
||||||
|
@export var fade_out: float = 0.2
|
||||||
|
|
||||||
|
const SHOWN = Color(1, 1, 1, 1)
|
||||||
|
const HIDDEN = Color(1, 1, 1, 0)
|
||||||
|
|
||||||
|
var tween: Tween
|
||||||
|
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
skip.pressed.connect(hide_onboarding)
|
||||||
|
|
||||||
|
visible = true
|
||||||
|
root.hide()
|
||||||
|
root.modulate = HIDDEN
|
||||||
|
root.mouse_filter = Control.MOUSE_FILTER_PASS
|
||||||
|
|
||||||
|
await get_tree().create_timer(1.0).timeout
|
||||||
|
show_onboarding()
|
||||||
|
|
||||||
|
|
||||||
|
func show_onboarding() -> void:
|
||||||
|
if root.visible: return
|
||||||
|
|
||||||
|
root.show()
|
||||||
|
|
||||||
|
if is_instance_valid(tween): tween.stop()
|
||||||
|
tween = get_tree().create_tween()
|
||||||
|
tween.tween_property(root, "modulate", SHOWN, fade_in)
|
||||||
|
await tween.finished
|
||||||
|
|
||||||
|
root.mouse_filter = Control.MOUSE_FILTER_STOP
|
||||||
|
|
||||||
|
|
||||||
|
func hide_onboarding() -> void:
|
||||||
|
if not root.visible: return
|
||||||
|
|
||||||
|
root.mouse_filter = Control.MOUSE_FILTER_PASS
|
||||||
|
|
||||||
|
if is_instance_valid(tween): tween.stop()
|
||||||
|
tween = get_tree().create_tween()
|
||||||
|
tween.tween_property(root, "modulate", HIDDEN, fade_out)
|
||||||
|
await tween.finished
|
||||||
|
|
||||||
|
root.hide()
|
Loading…
Add table
Add a link
Reference in a new issue