mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-24 20:17:31 -04:00
gate not responding popup
This commit is contained in:
parent
4fc2d7aeb9
commit
08708f2b59
14 changed files with 205 additions and 13 deletions
117
app/scenes/components/not_responding.tscn
Normal file
117
app/scenes/components/not_responding.tscn
Normal file
|
@ -0,0 +1,117 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://c7571vjq7l0jp"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui/world/not_responding.gd" id="1_feqd7"]
|
||||
[ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://resources/gate_events.res" id="2_8u6e2"]
|
||||
[ext_resource type="FontFile" uid="uid://do40418waa8w3" path="res://assets/fonts/Inter-Regular.otf" id="2_ugt55"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_htqsi"]
|
||||
bg_color = Color(0, 0, 0, 0.5)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_s6kym"]
|
||||
bg_color = Color(0.156863, 0.156863, 0.156863, 1)
|
||||
corner_radius_top_left = 16
|
||||
corner_radius_top_right = 16
|
||||
corner_radius_bottom_right = 16
|
||||
corner_radius_bottom_left = 16
|
||||
shadow_color = Color(0, 0, 0, 0.25)
|
||||
shadow_size = 16
|
||||
|
||||
[node name="NotResponding" type="Control" node_paths=PackedStringArray("root")]
|
||||
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_feqd7")
|
||||
gate_events = ExtResource("2_8u6e2")
|
||||
root = NodePath("TextureButton")
|
||||
|
||||
[node name="TextureButton" type="TextureButton" 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="TextureButton"]
|
||||
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="Control" parent="TextureButton"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -229.0
|
||||
offset_top = -116.0
|
||||
offset_right = 229.0
|
||||
offset_bottom = 116.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Panel" type="Panel" parent="TextureButton/Popup"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_s6kym")
|
||||
|
||||
[node name="Label" type="Label" parent="TextureButton/Popup"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
offset_top = 29.0
|
||||
offset_bottom = 68.0
|
||||
grow_horizontal = 2
|
||||
theme_override_fonts/font = ExtResource("2_ugt55")
|
||||
theme_override_font_sizes/font_size = 32
|
||||
text = "Gate is not responding"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Label2" type="Label" parent="TextureButton/Popup"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
offset_left = 59.0
|
||||
offset_top = 96.0
|
||||
offset_right = -53.0
|
||||
offset_bottom = 166.0
|
||||
grow_horizontal = 2
|
||||
theme_override_colors/font_color = Color(0.621524, 0.621524, 0.621524, 1)
|
||||
theme_override_constants/line_spacing = -2
|
||||
theme_override_fonts/font = ExtResource("2_ugt55")
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "Restart the page or try to wait if it responses"
|
||||
autowrap_mode = 3
|
||||
|
||||
[node name="LinkButton" type="LinkButton" parent="TextureButton/Popup"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -34.0
|
||||
offset_top = -50.0
|
||||
offset_right = 34.0
|
||||
offset_bottom = -25.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
theme_override_fonts/font = ExtResource("2_ugt55")
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "Get help!"
|
||||
uri = "https://forms.gle/A44qmWkcE9f6cD81A"
|
|
@ -1,6 +1,7 @@
|
|||
[gd_scene load_steps=21 format=3 uid="uid://ctam0fxigbefk"]
|
||||
[gd_scene load_steps=22 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_cimak"]
|
||||
[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://assets/textures/search.svg" id="3_1rllf"]
|
||||
[ext_resource type="Script" path="res://scripts/ui/search/search_status.gd" id="3_3p1re"]
|
||||
|
@ -48,6 +49,7 @@ corner_radius_bottom_left = 6
|
|||
corner_detail = 10
|
||||
|
||||
[node name="Search" type="LineEdit" node_paths=PackedStringArray("prompt_panel")]
|
||||
auto_translate_mode = 2
|
||||
custom_minimum_size = Vector2(1000, 40)
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
|
@ -60,15 +62,15 @@ 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_colors/font_color = Color(1, 1, 1, 0.8)
|
||||
theme_override_fonts/font = ExtResource("1_cimak")
|
||||
theme_override_font_sizes/font_size = 20
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_hyysn")
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_hyysn")
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_hyysn")
|
||||
placeholder_text = "Search or enter address"
|
||||
script = ExtResource("1_7ivk2")
|
||||
gate_events = ExtResource("2_13io8")
|
||||
|
@ -153,6 +155,8 @@ process_mode = 0
|
|||
process_priority = 0
|
||||
process_physics_priority = 0
|
||||
process_thread_group = 0
|
||||
physics_interpolation_mode = 2
|
||||
auto_translate_mode = 1
|
||||
editor_description = ""
|
||||
visible = false
|
||||
modulate = Color(1, 1, 1, 1)
|
||||
|
@ -190,7 +194,6 @@ 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("")
|
||||
|
@ -254,6 +257,8 @@ process_mode = 0
|
|||
process_priority = 0
|
||||
process_physics_priority = 0
|
||||
process_thread_group = 0
|
||||
physics_interpolation_mode = 2
|
||||
auto_translate_mode = 1
|
||||
editor_description = ""
|
||||
visible = true
|
||||
modulate = Color(1, 1, 1, 1)
|
||||
|
@ -291,7 +296,6 @@ 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("")
|
||||
|
@ -335,6 +339,8 @@ process_mode = 0
|
|||
process_priority = 0
|
||||
process_physics_priority = 0
|
||||
process_thread_group = 0
|
||||
physics_interpolation_mode = 2
|
||||
auto_translate_mode = 1
|
||||
editor_description = ""
|
||||
visible = false
|
||||
modulate = Color(1, 1, 1, 1)
|
||||
|
@ -372,7 +378,6 @@ 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("")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue