mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-24 02:17:27 -04:00
world scene in menu
This commit is contained in:
parent
e29f185a40
commit
5414c80485
15 changed files with 225 additions and 356 deletions
|
@ -1,9 +1,10 @@
|
||||||
[gd_scene load_steps=13 format=3 uid="uid://ct8gsph3wnepl"]
|
[gd_scene load_steps=14 format=3 uid="uid://ct8gsph3wnepl"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://scripts/app.gd" id="1_skc7d"]
|
[ext_resource type="Script" path="res://scripts/app.gd" id="1_skc7d"]
|
||||||
[ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://resources/gate_events.res" id="2_cdryv"]
|
[ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://resources/gate_events.res" id="2_cdryv"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://pgl3w7q5w84m" path="res://scenes/menu_body/bookmarks.tscn" id="3_l8glb"]
|
||||||
[ext_resource type="PackedScene" uid="uid://5btb7nvgmfhl" path="res://scenes/menu.tscn" id="3_o1f7b"]
|
[ext_resource type="PackedScene" uid="uid://5btb7nvgmfhl" path="res://scenes/menu.tscn" id="3_o1f7b"]
|
||||||
[ext_resource type="PackedScene" uid="uid://kywrsqro3d5i" path="res://scenes/world.tscn" id="4_cmlvo"]
|
[ext_resource type="PackedScene" uid="uid://kywrsqro3d5i" path="res://scenes/menu_body/world.tscn" id="4_p75rl"]
|
||||||
[ext_resource type="Script" path="res://scripts/bookmark_saver.gd" id="5_ev0ch"]
|
[ext_resource type="Script" path="res://scripts/bookmark_saver.gd" id="5_ev0ch"]
|
||||||
[ext_resource type="Script" path="res://scripts/analytics/analytics.gd" id="6_25d48"]
|
[ext_resource type="Script" path="res://scripts/analytics/analytics.gd" id="6_25d48"]
|
||||||
[ext_resource type="Resource" uid="uid://bewhdj6jugt6q" path="res://resources/bookmarks.tres" id="6_rupvx"]
|
[ext_resource type="Resource" uid="uid://bewhdj6jugt6q" path="res://resources/bookmarks.tres" id="6_rupvx"]
|
||||||
|
@ -13,14 +14,18 @@
|
||||||
[ext_resource type="Script" path="res://scripts/analytics/analytics_sender_error.gd" id="8_ah58q"]
|
[ext_resource type="Script" path="res://scripts/analytics/analytics_sender_error.gd" id="8_ah58q"]
|
||||||
[ext_resource type="Script" path="res://scripts/analytics/analytics_sender_gate.gd" id="9_egxpy"]
|
[ext_resource type="Script" path="res://scripts/analytics/analytics_sender_gate.gd" id="9_egxpy"]
|
||||||
|
|
||||||
[node name="App" type="Node"]
|
[node name="App" type="Node" node_paths=PackedStringArray("scenes_root")]
|
||||||
script = ExtResource("1_skc7d")
|
script = ExtResource("1_skc7d")
|
||||||
gate_events = ExtResource("2_cdryv")
|
gate_events = ExtResource("2_cdryv")
|
||||||
menu_scene = ExtResource("3_o1f7b")
|
bookmarks = ExtResource("3_l8glb")
|
||||||
world_scene = ExtResource("4_cmlvo")
|
world_scene = ExtResource("4_p75rl")
|
||||||
|
scenes_root = NodePath("Menu/VBoxContainer/Body")
|
||||||
|
|
||||||
[node name="Debug" parent="." instance=ExtResource("7_3xeb8")]
|
[node name="Debug" parent="." instance=ExtResource("7_3xeb8")]
|
||||||
|
|
||||||
|
[node name="Window" parent="Debug" index="0"]
|
||||||
|
visible = false
|
||||||
|
|
||||||
[node name="BookmarkSaver" type="Node" parent="."]
|
[node name="BookmarkSaver" type="Node" parent="."]
|
||||||
script = ExtResource("5_ev0ch")
|
script = ExtResource("5_ev0ch")
|
||||||
save_dir = "user://resources"
|
save_dir = "user://resources"
|
||||||
|
@ -41,4 +46,7 @@ script = ExtResource("8_ah58q")
|
||||||
script = ExtResource("9_egxpy")
|
script = ExtResource("9_egxpy")
|
||||||
gate_events = ExtResource("2_cdryv")
|
gate_events = ExtResource("2_cdryv")
|
||||||
|
|
||||||
[node name="Scenes" type="Node" parent="."]
|
[node name="Menu" parent="." instance=ExtResource("3_o1f7b")]
|
||||||
|
|
||||||
|
[editable path="Debug"]
|
||||||
|
[editable path="Menu"]
|
||||||
|
|
|
@ -57,6 +57,7 @@ offset_right = 30.0
|
||||||
offset_bottom = 10.0
|
offset_bottom = 10.0
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
texture = ExtResource("3_1rllf")
|
texture = ExtResource("3_1rllf")
|
||||||
|
expand_mode = 1
|
||||||
|
|
||||||
[node name="Go" type="BaseButton" parent="."]
|
[node name="Go" type="BaseButton" parent="."]
|
||||||
_import_path = NodePath("")
|
_import_path = NodePath("")
|
||||||
|
|
|
@ -37,14 +37,6 @@ threaded = true
|
||||||
selection_enabled = true
|
selection_enabled = true
|
||||||
script = ExtResource("2_lgt6s")
|
script = ExtResource("2_lgt6s")
|
||||||
|
|
||||||
[node name="WindowCopy" type="Control" parent="."]
|
|
||||||
layout_mode = 3
|
|
||||||
anchors_preset = 0
|
|
||||||
offset_left = 52.0
|
|
||||||
offset_top = 75.0
|
|
||||||
offset_right = 852.0
|
|
||||||
offset_bottom = 675.0
|
|
||||||
|
|
||||||
[connection signal="close_requested" from="Window" to="." method="_on_window_close_requested"]
|
[connection signal="close_requested" from="Window" to="." method="_on_window_close_requested"]
|
||||||
[connection signal="focus_exited" from="Window" to="." method="_on_window_focus_exited"]
|
[connection signal="focus_exited" from="Window" to="." method="_on_window_focus_exited"]
|
||||||
[connection signal="window_input" from="Window" to="." method="_on_window_window_input"]
|
[connection signal="window_input" from="Window" to="." method="_on_window_window_input"]
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
[gd_scene load_steps=9 format=3 uid="uid://5btb7nvgmfhl"]
|
[gd_scene load_steps=9 format=3 uid="uid://5btb7nvgmfhl"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" path="res://scripts/ui/world/home.gd" id="2_l5iu6"]
|
||||||
[ext_resource type="Texture2D" uid="uid://dystd8vvbqwo2" path="res://textures/exit.svg" id="3_1a6fk"]
|
[ext_resource type="Texture2D" uid="uid://dystd8vvbqwo2" path="res://textures/exit.svg" id="3_1a6fk"]
|
||||||
|
[ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://resources/gate_events.res" id="3_m632k"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bmju020v33vrv" path="res://textures/home.svg" id="4_5npup"]
|
||||||
[ext_resource type="Script" path="res://scripts/ui/menu/exit_app.gd" id="4_2065t"]
|
[ext_resource type="Script" path="res://scripts/ui/menu/exit_app.gd" id="4_2065t"]
|
||||||
[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.tscn" id="5_li2do"]
|
||||||
[ext_resource type="Resource" uid="uid://bewhdj6jugt6q" path="res://resources/bookmarks.tres" id="7_ern1s"]
|
|
||||||
[ext_resource type="Script" path="res://scripts/ui/menu/bookmark_container.gd" id="7_wj13t"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://82ca8so31njy" path="res://scenes/components/bookmark.tscn" id="8_h7tks"]
|
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_pveoh"]
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_pveoh"]
|
||||||
bg_color = Color(0.156863, 0.156863, 0.156863, 1)
|
bg_color = Color(0.156863, 0.156863, 0.156863, 1)
|
||||||
|
@ -51,10 +51,91 @@ grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
theme_override_styles/panel = SubResource("StyleBoxFlat_re7ca")
|
theme_override_styles/panel = SubResource("StyleBoxFlat_re7ca")
|
||||||
|
|
||||||
[node name="Search" parent="VBoxContainer/Top" instance=ExtResource("5_li2do")]
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/Top"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
offset_top = -20.0
|
anchors_preset = 13
|
||||||
offset_bottom = 20.0
|
anchor_left = 0.5
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
offset_left = -502.0
|
||||||
|
offset_right = 502.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
theme_override_constants/separation = 20
|
||||||
|
alignment = 1
|
||||||
|
|
||||||
|
[node name="Search" parent="VBoxContainer/Top/HBoxContainer" instance=ExtResource("5_li2do")]
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
size_flags_vertical = 4
|
||||||
|
|
||||||
|
[node name="Home" type="BaseButton" parent="VBoxContainer/Top/HBoxContainer"]
|
||||||
|
_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(25, 25)
|
||||||
|
layout_direction = 0
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
size_flags_vertical = 4
|
||||||
|
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("2_l5iu6")
|
||||||
|
gate_events = ExtResource("3_m632k")
|
||||||
|
|
||||||
|
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/Top/HBoxContainer/Home"]
|
||||||
|
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("4_5npup")
|
||||||
|
expand_mode = 1
|
||||||
|
|
||||||
[node name="Exit" type="BaseButton" parent="VBoxContainer/Top"]
|
[node name="Exit" type="BaseButton" parent="VBoxContainer/Top"]
|
||||||
_import_path = NodePath("")
|
_import_path = NodePath("")
|
||||||
|
@ -141,30 +222,5 @@ expand_mode = 1
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
|
|
||||||
[node name="Bookmarks" type="ScrollContainer" parent="VBoxContainer/Body"]
|
[connection signal="pressed" from="VBoxContainer/Top/HBoxContainer/Home" to="VBoxContainer/Top/HBoxContainer/Home" method="_on_pressed"]
|
||||||
custom_minimum_size = Vector2(1200, 400)
|
|
||||||
layout_mode = 1
|
|
||||||
anchors_preset = 8
|
|
||||||
anchor_left = 0.5
|
|
||||||
anchor_top = 0.5
|
|
||||||
anchor_right = 0.5
|
|
||||||
anchor_bottom = 0.5
|
|
||||||
offset_top = -100.0
|
|
||||||
offset_bottom = 100.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 2
|
|
||||||
follow_focus = true
|
|
||||||
horizontal_scroll_mode = 0
|
|
||||||
|
|
||||||
[node name="GridContainer" type="GridContainer" parent="VBoxContainer/Body/Bookmarks"]
|
|
||||||
layout_mode = 2
|
|
||||||
size_flags_horizontal = 3
|
|
||||||
size_flags_vertical = 3
|
|
||||||
theme_override_constants/h_separation = 70
|
|
||||||
theme_override_constants/v_separation = 40
|
|
||||||
columns = 6
|
|
||||||
script = ExtResource("7_wj13t")
|
|
||||||
bookmarks = ExtResource("7_ern1s")
|
|
||||||
bookmark_scene = ExtResource("8_h7tks")
|
|
||||||
|
|
||||||
[connection signal="pressed" from="VBoxContainer/Top/Exit" to="VBoxContainer/Top/Exit" method="_on_pressed"]
|
[connection signal="pressed" from="VBoxContainer/Top/Exit" to="VBoxContainer/Top/Exit" method="_on_pressed"]
|
||||||
|
|
30
project/scenes/menu_body/bookmarks.tscn
Normal file
30
project/scenes/menu_body/bookmarks.tscn
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
[gd_scene load_steps=4 format=3 uid="uid://pgl3w7q5w84m"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" path="res://scripts/ui/menu/bookmark_container.gd" id="1_vspm3"]
|
||||||
|
[ext_resource type="Resource" uid="uid://bewhdj6jugt6q" path="res://resources/bookmarks.tres" id="2_g2k3b"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://82ca8so31njy" path="res://scenes/components/bookmark.tscn" id="3_dyxu5"]
|
||||||
|
|
||||||
|
[node name="Bookmarks" type="ScrollContainer"]
|
||||||
|
custom_minimum_size = Vector2(1200, 400)
|
||||||
|
anchors_preset = 8
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_top = 0.5
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 0.5
|
||||||
|
offset_top = -100.0
|
||||||
|
offset_bottom = 100.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
follow_focus = true
|
||||||
|
horizontal_scroll_mode = 0
|
||||||
|
|
||||||
|
[node name="GridContainer" type="GridContainer" parent="."]
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
size_flags_vertical = 3
|
||||||
|
theme_override_constants/h_separation = 70
|
||||||
|
theme_override_constants/v_separation = 40
|
||||||
|
columns = 6
|
||||||
|
script = ExtResource("1_vspm3")
|
||||||
|
bookmarks = ExtResource("2_g2k3b")
|
||||||
|
bookmark_scene = ExtResource("3_dyxu5")
|
|
@ -1,4 +1,4 @@
|
||||||
[gd_scene load_steps=37 format=3 uid="uid://kywrsqro3d5i"]
|
[gd_scene load_steps=31 format=3 uid="uid://kywrsqro3d5i"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://scripts/loading/gate_loader.gd" id="1_uxhy6"]
|
[ext_resource type="Script" path="res://scripts/loading/gate_loader.gd" id="1_uxhy6"]
|
||||||
[ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://resources/gate_events.res" id="2_q7cvi"]
|
[ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://resources/gate_events.res" id="2_q7cvi"]
|
||||||
|
@ -19,10 +19,6 @@
|
||||||
[ext_resource type="PackedScene" path="res://scenes/components/hint.tscn" id="17_rve7m"]
|
[ext_resource type="PackedScene" path="res://scenes/components/hint.tscn" id="17_rve7m"]
|
||||||
[ext_resource type="Texture2D" uid="uid://bvvgx8ij2mdna" path="res://textures/star.png" id="18_o2mtq"]
|
[ext_resource type="Texture2D" uid="uid://bvvgx8ij2mdna" path="res://textures/star.png" id="18_o2mtq"]
|
||||||
[ext_resource type="Texture2D" uid="uid://c5hu6cmvuipg7" path="res://textures/star_filled.png" id="19_y2rfc"]
|
[ext_resource type="Texture2D" uid="uid://c5hu6cmvuipg7" path="res://textures/star_filled.png" id="19_y2rfc"]
|
||||||
[ext_resource type="Script" path="res://scripts/ui/world/home.gd" id="20_utvcl"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://c26q840lwxw8j" path="res://textures/exit.png" id="21_ocb0r"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://ctam0fxigbefk" path="res://scenes/components/search.tscn" id="22_pwygi"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://bpj05amcrq1cq" path="res://textures/slide-up.png" id="23_d4xvm"]
|
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_shmbc"]
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_shmbc"]
|
||||||
bg_color = Color(0.3384, 0.188, 0.47, 1)
|
bg_color = Color(0.3384, 0.188, 0.47, 1)
|
||||||
|
@ -65,15 +61,15 @@ draw_center = false
|
||||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_a03l7"]
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_a03l7"]
|
||||||
draw_center = false
|
draw_center = false
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_sqkiq"]
|
[node name="World" type="Control"]
|
||||||
bg_color = Color(0.160784, 0.160784, 0.160784, 0.670588)
|
layout_mode = 3
|
||||||
border_width_top = 3
|
anchors_preset = 15
|
||||||
border_color = Color(0.231373, 0.184314, 0.541176, 1)
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
[sub_resource type="LabelSettings" id="LabelSettings_5jdc5"]
|
grow_horizontal = 2
|
||||||
font_size = 27
|
grow_vertical = 2
|
||||||
|
size_flags_horizontal = 3
|
||||||
[node name="World" type="Node"]
|
size_flags_vertical = 3
|
||||||
|
|
||||||
[node name="GateLoader" type="Node" parent="."]
|
[node name="GateLoader" type="Node" parent="."]
|
||||||
script = ExtResource("1_uxhy6")
|
script = ExtResource("1_uxhy6")
|
||||||
|
@ -86,13 +82,12 @@ render_result = NodePath("../WorldCanvas/RenderResult")
|
||||||
snbx_executable = ExtResource("4_shus3")
|
snbx_executable = ExtResource("4_shus3")
|
||||||
|
|
||||||
[node name="WorldCanvas" type="Control" parent="."]
|
[node name="WorldCanvas" type="Control" parent="."]
|
||||||
layout_mode = 3
|
layout_mode = 1
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
metadata/_edit_lock_ = true
|
|
||||||
|
|
||||||
[node name="RenderResult" type="TextureRect" parent="WorldCanvas"]
|
[node name="RenderResult" type="TextureRect" parent="WorldCanvas"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
|
@ -101,6 +96,8 @@ anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
|
expand_mode = 5
|
||||||
|
stretch_mode = 5
|
||||||
script = ExtResource("5_nlg2s")
|
script = ExtResource("5_nlg2s")
|
||||||
gate_events = ExtResource("2_q7cvi")
|
gate_events = ExtResource("2_q7cvi")
|
||||||
command_events = ExtResource("6_18mgg")
|
command_events = ExtResource("6_18mgg")
|
||||||
|
@ -116,12 +113,9 @@ script = ExtResource("10_cqo55")
|
||||||
gate_events = ExtResource("2_q7cvi")
|
gate_events = ExtResource("2_q7cvi")
|
||||||
command_events = ExtResource("6_18mgg")
|
command_events = ExtResource("6_18mgg")
|
||||||
|
|
||||||
[node name="UICanvas" type="CanvasLayer" parent="."]
|
[node name="LoadingBackground" type="Control" parent="."]
|
||||||
follow_viewport_enabled = true
|
|
||||||
|
|
||||||
[node name="LoadingBackground" type="Control" parent="UICanvas"]
|
|
||||||
visible = false
|
visible = false
|
||||||
layout_mode = 3
|
layout_mode = 1
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
|
@ -130,7 +124,7 @@ grow_vertical = 2
|
||||||
script = ExtResource("11_7xeus")
|
script = ExtResource("11_7xeus")
|
||||||
gate_events = ExtResource("2_q7cvi")
|
gate_events = ExtResource("2_q7cvi")
|
||||||
|
|
||||||
[node name="Panel" type="Panel" parent="UICanvas/LoadingBackground"]
|
[node name="Panel" type="Panel" parent="LoadingBackground"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
|
@ -139,7 +133,7 @@ grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
theme_override_styles/panel = SubResource("StyleBoxFlat_shmbc")
|
theme_override_styles/panel = SubResource("StyleBoxFlat_shmbc")
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="UICanvas/LoadingBackground"]
|
[node name="Label" type="Label" parent="LoadingBackground"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 8
|
anchors_preset = 8
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
|
@ -157,7 +151,7 @@ label_settings = SubResource("LabelSettings_eyt6j")
|
||||||
horizontal_alignment = 1
|
horizontal_alignment = 1
|
||||||
vertical_alignment = 1
|
vertical_alignment = 1
|
||||||
|
|
||||||
[node name="Label2" type="Label" parent="UICanvas/LoadingBackground"]
|
[node name="Label2" type="Label" parent="LoadingBackground"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 8
|
anchors_preset = 8
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
|
@ -175,7 +169,7 @@ label_settings = SubResource("LabelSettings_2k6gm")
|
||||||
horizontal_alignment = 1
|
horizontal_alignment = 1
|
||||||
vertical_alignment = 1
|
vertical_alignment = 1
|
||||||
|
|
||||||
[node name="Label3" type="Label" parent="UICanvas/LoadingBackground"]
|
[node name="Label3" type="Label" parent="LoadingBackground"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 8
|
anchors_preset = 8
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
|
@ -193,8 +187,8 @@ label_settings = SubResource("LabelSettings_fcbo7")
|
||||||
horizontal_alignment = 1
|
horizontal_alignment = 1
|
||||||
vertical_alignment = 1
|
vertical_alignment = 1
|
||||||
|
|
||||||
[node name="UI" type="Control" parent="UICanvas"]
|
[node name="UI" type="Control" parent="."]
|
||||||
layout_mode = 3
|
layout_mode = 1
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
|
@ -204,7 +198,7 @@ script = ExtResource("12_jdwjt")
|
||||||
ui_events = ExtResource("9_ir58h")
|
ui_events = ExtResource("9_ir58h")
|
||||||
command_events = ExtResource("6_18mgg")
|
command_events = ExtResource("6_18mgg")
|
||||||
|
|
||||||
[node name="Blur" type="Panel" parent="UICanvas/UI"]
|
[node name="Blur" type="Panel" parent="UI"]
|
||||||
material = SubResource("ShaderMaterial_kc7rv")
|
material = SubResource("ShaderMaterial_kc7rv")
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
|
@ -213,7 +207,7 @@ anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
|
|
||||||
[node name="HideOnPress" type="TextureButton" parent="UICanvas/UI/Blur"]
|
[node name="HideOnPress" type="TextureButton" parent="UI/Blur"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
|
@ -221,7 +215,7 @@ anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
|
|
||||||
[node name="GateInfo" type="Control" parent="UICanvas/UI" node_paths=PackedStringArray("image", "title", "description", "url", "star", "unstar")]
|
[node name="GateInfo" type="Control" parent="UI" node_paths=PackedStringArray("image", "title", "description", "url", "star", "unstar")]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 3
|
anchors_preset = 3
|
||||||
anchor_left = 1.0
|
anchor_left = 1.0
|
||||||
|
@ -244,7 +238,7 @@ star = NodePath("Bookmark/Star")
|
||||||
unstar = NodePath("Bookmark/Unstar")
|
unstar = NodePath("Bookmark/Unstar")
|
||||||
metadata/_edit_lock_ = true
|
metadata/_edit_lock_ = true
|
||||||
|
|
||||||
[node name="Panel" type="Panel" parent="UICanvas/UI/GateInfo"]
|
[node name="Panel" type="Panel" parent="UI/GateInfo"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
|
@ -253,7 +247,7 @@ grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
theme_override_styles/panel = SubResource("StyleBoxFlat_4bcpj")
|
theme_override_styles/panel = SubResource("StyleBoxFlat_4bcpj")
|
||||||
|
|
||||||
[node name="ImageMask" type="Panel" parent="UICanvas/UI/GateInfo"]
|
[node name="ImageMask" type="Panel" parent="UI/GateInfo"]
|
||||||
clip_children = 1
|
clip_children = 1
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 8
|
anchors_preset = 8
|
||||||
|
@ -270,7 +264,7 @@ grow_vertical = 2
|
||||||
mouse_filter = 1
|
mouse_filter = 1
|
||||||
theme_override_styles/panel = SubResource("StyleBoxFlat_bm5nj")
|
theme_override_styles/panel = SubResource("StyleBoxFlat_bm5nj")
|
||||||
|
|
||||||
[node name="TextureRect" type="TextureRect" parent="UICanvas/UI/GateInfo/ImageMask"]
|
[node name="TextureRect" type="TextureRect" parent="UI/GateInfo/ImageMask"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
|
@ -281,7 +275,7 @@ texture = ExtResource("7_52jgh")
|
||||||
expand_mode = 1
|
expand_mode = 1
|
||||||
stretch_mode = 6
|
stretch_mode = 6
|
||||||
|
|
||||||
[node name="Title" type="Label" parent="UICanvas/UI/GateInfo"]
|
[node name="Title" type="Label" parent="UI/GateInfo"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 8
|
anchors_preset = 8
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
|
@ -299,7 +293,7 @@ label_settings = SubResource("LabelSettings_i1x1e")
|
||||||
horizontal_alignment = 1
|
horizontal_alignment = 1
|
||||||
text_overrun_behavior = 3
|
text_overrun_behavior = 3
|
||||||
|
|
||||||
[node name="Description" type="Label" parent="UICanvas/UI/GateInfo"]
|
[node name="Description" type="Label" parent="UI/GateInfo"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 8
|
anchors_preset = 8
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
|
@ -319,7 +313,7 @@ autowrap_mode = 3
|
||||||
clip_text = true
|
clip_text = true
|
||||||
text_overrun_behavior = 3
|
text_overrun_behavior = 3
|
||||||
|
|
||||||
[node name="Url" type="LineEdit" parent="UICanvas/UI/GateInfo"]
|
[node name="Url" type="LineEdit" parent="UI/GateInfo"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 8
|
anchors_preset = 8
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
|
@ -339,9 +333,11 @@ theme_override_styles/read_only = SubResource("StyleBoxFlat_a03l7")
|
||||||
text = "url"
|
text = "url"
|
||||||
alignment = 1
|
alignment = 1
|
||||||
editable = false
|
editable = false
|
||||||
|
caret_blink = true
|
||||||
|
caret_blink_interval = 0.5
|
||||||
script = ExtResource("16_8emm0")
|
script = ExtResource("16_8emm0")
|
||||||
|
|
||||||
[node name="Bookmark" type="Control" parent="UICanvas/UI/GateInfo"]
|
[node name="Bookmark" type="Control" parent="UI/GateInfo"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 1
|
anchors_preset = 1
|
||||||
anchor_left = 1.0
|
anchor_left = 1.0
|
||||||
|
@ -352,7 +348,7 @@ offset_right = -60.0
|
||||||
offset_bottom = 78.13
|
offset_bottom = 78.13
|
||||||
grow_horizontal = 0
|
grow_horizontal = 0
|
||||||
|
|
||||||
[node name="Star" type="BaseButton" parent="UICanvas/UI/GateInfo/Bookmark"]
|
[node name="Star" type="BaseButton" parent="UI/GateInfo/Bookmark"]
|
||||||
_import_path = NodePath("")
|
_import_path = NodePath("")
|
||||||
unique_name_in_owner = false
|
unique_name_in_owner = false
|
||||||
process_mode = 0
|
process_mode = 0
|
||||||
|
@ -421,26 +417,26 @@ shortcut_feedback = true
|
||||||
shortcut_in_tooltip = true
|
shortcut_in_tooltip = true
|
||||||
script = null
|
script = null
|
||||||
|
|
||||||
[node name="Hint" parent="UICanvas/UI/GateInfo/Bookmark/Star" node_paths=PackedStringArray("button") instance=ExtResource("17_rve7m")]
|
[node name="Hint" parent="UI/GateInfo/Bookmark/Star" node_paths=PackedStringArray("button") instance=ExtResource("17_rve7m")]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
key = "hint_star"
|
key = "hint_star"
|
||||||
button = NodePath("..")
|
button = NodePath("..")
|
||||||
|
|
||||||
[node name="AnimRoot" parent="UICanvas/UI/GateInfo/Bookmark/Star/Hint" index="0"]
|
[node name="AnimRoot" parent="UI/GateInfo/Bookmark/Star/Hint" index="0"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
|
|
||||||
[node name="Background" parent="UICanvas/UI/GateInfo/Bookmark/Star/Hint/AnimRoot" index="0"]
|
[node name="Background" parent="UI/GateInfo/Bookmark/Star/Hint/AnimRoot" index="0"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
|
|
||||||
[node name="Label" parent="UICanvas/UI/GateInfo/Bookmark/Star/Hint/AnimRoot" index="1"]
|
[node name="Label" parent="UI/GateInfo/Bookmark/Star/Hint/AnimRoot" index="1"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
text = "Bookmark gate!"
|
text = "Bookmark gate!"
|
||||||
|
|
||||||
[node name="TextureRect" parent="UICanvas/UI/GateInfo/Bookmark/Star/Hint/AnimRoot" index="2"]
|
[node name="TextureRect" parent="UI/GateInfo/Bookmark/Star/Hint/AnimRoot" index="2"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
expand_mode = 1
|
expand_mode = 1
|
||||||
|
|
||||||
[node name="TextureRect" type="TextureRect" parent="UICanvas/UI/GateInfo/Bookmark/Star"]
|
[node name="TextureRect" type="TextureRect" parent="UI/GateInfo/Bookmark/Star"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
|
@ -450,7 +446,7 @@ grow_vertical = 2
|
||||||
texture = ExtResource("18_o2mtq")
|
texture = ExtResource("18_o2mtq")
|
||||||
expand_mode = 1
|
expand_mode = 1
|
||||||
|
|
||||||
[node name="Unstar" type="BaseButton" parent="UICanvas/UI/GateInfo/Bookmark"]
|
[node name="Unstar" type="BaseButton" parent="UI/GateInfo/Bookmark"]
|
||||||
_import_path = NodePath("")
|
_import_path = NodePath("")
|
||||||
unique_name_in_owner = false
|
unique_name_in_owner = false
|
||||||
process_mode = 0
|
process_mode = 0
|
||||||
|
@ -519,7 +515,7 @@ shortcut_feedback = true
|
||||||
shortcut_in_tooltip = true
|
shortcut_in_tooltip = true
|
||||||
script = null
|
script = null
|
||||||
|
|
||||||
[node name="TextureRect" type="TextureRect" parent="UICanvas/UI/GateInfo/Bookmark/Unstar"]
|
[node name="TextureRect" type="TextureRect" parent="UI/GateInfo/Bookmark/Unstar"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
|
@ -529,218 +525,8 @@ grow_vertical = 2
|
||||||
texture = ExtResource("19_y2rfc")
|
texture = ExtResource("19_y2rfc")
|
||||||
expand_mode = 1
|
expand_mode = 1
|
||||||
|
|
||||||
[node name="Bottom" type="Control" parent="UICanvas/UI"]
|
[connection signal="pressed" from="UI/Blur/HideOnPress" to="UI" method="hide_ui"]
|
||||||
layout_mode = 1
|
[connection signal="pressed" from="UI/GateInfo/Bookmark/Star" to="UI/GateInfo" method="_on_star_pressed"]
|
||||||
anchors_preset = 12
|
[connection signal="pressed" from="UI/GateInfo/Bookmark/Unstar" to="UI/GateInfo" method="_on_unstar_pressed"]
|
||||||
anchor_top = 1.0
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
offset_top = -130.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 0
|
|
||||||
pivot_offset = Vector2(960, 250)
|
|
||||||
metadata/_edit_lock_ = true
|
|
||||||
|
|
||||||
[node name="Panel" type="Panel" parent="UICanvas/UI/Bottom"]
|
[editable path="UI/GateInfo/Bookmark/Star/Hint"]
|
||||||
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_sqkiq")
|
|
||||||
|
|
||||||
[node name="Home" type="BaseButton" parent="UICanvas/UI/Bottom"]
|
|
||||||
_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 = 4
|
|
||||||
anchor_left = 0.0
|
|
||||||
anchor_top = 0.5
|
|
||||||
anchor_right = 0.0
|
|
||||||
anchor_bottom = 0.5
|
|
||||||
offset_left = 40.0
|
|
||||||
offset_top = -20.0
|
|
||||||
offset_right = 170.0
|
|
||||||
offset_bottom = 20.0
|
|
||||||
grow_horizontal = 1
|
|
||||||
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 = ExtResource("20_utvcl")
|
|
||||||
gate_events = ExtResource("2_q7cvi")
|
|
||||||
|
|
||||||
[node name="HBoxContainer" type="HBoxContainer" parent="UICanvas/UI/Bottom/Home"]
|
|
||||||
layout_mode = 1
|
|
||||||
anchors_preset = 15
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 2
|
|
||||||
theme_override_constants/separation = 10
|
|
||||||
|
|
||||||
[node name="TextureRect" type="TextureRect" parent="UICanvas/UI/Bottom/Home/HBoxContainer"]
|
|
||||||
custom_minimum_size = Vector2(40, 40)
|
|
||||||
layout_mode = 2
|
|
||||||
size_flags_horizontal = 4
|
|
||||||
size_flags_vertical = 4
|
|
||||||
texture = ExtResource("21_ocb0r")
|
|
||||||
expand_mode = 1
|
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="UICanvas/UI/Bottom/Home/HBoxContainer"]
|
|
||||||
layout_mode = 2
|
|
||||||
size_flags_horizontal = 0
|
|
||||||
text = "Home"
|
|
||||||
label_settings = SubResource("LabelSettings_5jdc5")
|
|
||||||
|
|
||||||
[node name="Search" parent="UICanvas/UI/Bottom" instance=ExtResource("22_pwygi")]
|
|
||||||
layout_mode = 1
|
|
||||||
|
|
||||||
[node name="Continue" type="BaseButton" parent="UICanvas/UI/Bottom"]
|
|
||||||
_import_path = NodePath("")
|
|
||||||
unique_name_in_owner = false
|
|
||||||
process_mode = 0
|
|
||||||
process_priority = 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 = -235.0
|
|
||||||
offset_top = -30.0
|
|
||||||
offset_right = -40.0
|
|
||||||
offset_bottom = 30.0
|
|
||||||
grow_horizontal = 0
|
|
||||||
grow_vertical = 2
|
|
||||||
rotation = 0.0
|
|
||||||
scale = Vector2(1, 1)
|
|
||||||
pivot_offset = Vector2(30, 30)
|
|
||||||
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="HBoxContainer" type="HBoxContainer" parent="UICanvas/UI/Bottom/Continue"]
|
|
||||||
layout_mode = 1
|
|
||||||
anchors_preset = 15
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 2
|
|
||||||
theme_override_constants/separation = 10
|
|
||||||
alignment = 2
|
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="UICanvas/UI/Bottom/Continue/HBoxContainer"]
|
|
||||||
layout_mode = 2
|
|
||||||
size_flags_horizontal = 0
|
|
||||||
text = "Continue"
|
|
||||||
label_settings = SubResource("LabelSettings_5jdc5")
|
|
||||||
|
|
||||||
[node name="TextureRect" type="TextureRect" parent="UICanvas/UI/Bottom/Continue/HBoxContainer"]
|
|
||||||
custom_minimum_size = Vector2(60, 60)
|
|
||||||
layout_mode = 2
|
|
||||||
texture = ExtResource("23_d4xvm")
|
|
||||||
expand_mode = 1
|
|
||||||
|
|
||||||
[connection signal="pressed" from="UICanvas/UI/Blur/HideOnPress" to="UICanvas/UI" method="hide_ui"]
|
|
||||||
[connection signal="pressed" from="UICanvas/UI/GateInfo/Bookmark/Star" to="UICanvas/UI/GateInfo" method="_on_star_pressed"]
|
|
||||||
[connection signal="pressed" from="UICanvas/UI/GateInfo/Bookmark/Unstar" to="UICanvas/UI/GateInfo" method="_on_unstar_pressed"]
|
|
||||||
[connection signal="pressed" from="UICanvas/UI/Bottom/Home" to="UICanvas/UI/Bottom/Home" method="_on_pressed"]
|
|
||||||
[connection signal="pressed" from="UICanvas/UI/Bottom/Continue" to="UICanvas/UI" method="hide_ui"]
|
|
||||||
|
|
||||||
[editable path="UICanvas/UI/GateInfo/Bookmark/Star/Hint"]
|
|
|
@ -1,19 +1,20 @@
|
||||||
extends Node
|
extends Node
|
||||||
|
|
||||||
@export var gate_events: GateEvents
|
@export var gate_events: GateEvents
|
||||||
@export var menu_scene: PackedScene
|
@export var bookmarks: PackedScene
|
||||||
@export var world_scene: PackedScene
|
@export var world_scene: PackedScene
|
||||||
|
@export var scenes_root: Node
|
||||||
|
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
gate_events.open_gate.connect(func(_url): switch_scene(world_scene))
|
gate_events.open_gate.connect(func(_url): switch_scene(world_scene))
|
||||||
gate_events.exit_gate.connect(func(): switch_scene(menu_scene))
|
gate_events.exit_gate.connect(func(): switch_scene(bookmarks))
|
||||||
|
|
||||||
$Scenes.add_child(menu_scene.instantiate())
|
scenes_root.add_child(bookmarks.instantiate())
|
||||||
|
|
||||||
|
|
||||||
func switch_scene(scene: PackedScene) -> void:
|
func switch_scene(scene: PackedScene) -> void:
|
||||||
for child in $Scenes.get_children(): child.queue_free()
|
for child in scenes_root.get_children(): child.queue_free()
|
||||||
await get_tree().process_frame
|
await get_tree().process_frame
|
||||||
|
|
||||||
$Scenes.add_child(scene.instantiate())
|
scenes_root.add_child(scene.instantiate())
|
||||||
|
|
|
@ -5,13 +5,13 @@ class_name RenderResult
|
||||||
@export var command_events: CommandEvents
|
@export var command_events: CommandEvents
|
||||||
@export var splash_screen: Texture2D
|
@export var splash_screen: Texture2D
|
||||||
|
|
||||||
@onready var width = get_viewport().size.x
|
|
||||||
@onready var height = get_viewport().size.y
|
|
||||||
|
|
||||||
var rd: RenderingDevice
|
var rd: RenderingDevice
|
||||||
var ext_texure: ExternalTexture
|
var ext_texure: ExternalTexture
|
||||||
var texture_rid: RID
|
var texture_rid: RID
|
||||||
|
|
||||||
|
var width
|
||||||
|
var height
|
||||||
|
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
gate_events.gate_entered.connect(create_external_texture)
|
gate_events.gate_entered.connect(create_external_texture)
|
||||||
|
@ -21,6 +21,8 @@ func _ready() -> void:
|
||||||
|
|
||||||
func initialize() -> void:
|
func initialize() -> void:
|
||||||
rd = RenderingServer.get_rendering_device()
|
rd = RenderingServer.get_rendering_device()
|
||||||
|
width = size.x
|
||||||
|
height = size.y
|
||||||
|
|
||||||
var image = Image.create(width, height, false, Image.FORMAT_RGB8)
|
var image = Image.create(width, height, false, Image.FORMAT_RGB8)
|
||||||
self.texture = ImageTexture.create_from_image(image)
|
self.texture = ImageTexture.create_from_image(image)
|
||||||
|
@ -39,6 +41,7 @@ func create_external_texture() -> void:
|
||||||
var t_view: RDTextureView = RDTextureView.new()
|
var t_view: RDTextureView = RDTextureView.new()
|
||||||
|
|
||||||
var image = splash_screen.get_image()
|
var image = splash_screen.get_image()
|
||||||
|
image.resize(width, height)
|
||||||
image.convert(Image.FORMAT_RGBA8)
|
image.convert(Image.FORMAT_RGBA8)
|
||||||
image.clear_mipmaps()
|
image.clear_mipmaps()
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 718 B |
|
@ -1,34 +0,0 @@
|
||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="CompressedTexture2D"
|
|
||||||
uid="uid://c26q840lwxw8j"
|
|
||||||
path="res://.godot/imported/exit.png-6f1947ca824cd9d956820b9fde796391.ctex"
|
|
||||||
metadata={
|
|
||||||
"vram_texture": false
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://textures/exit.png"
|
|
||||||
dest_files=["res://.godot/imported/exit.png-6f1947ca824cd9d956820b9fde796391.ctex"]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
compress/mode=0
|
|
||||||
compress/high_quality=false
|
|
||||||
compress/lossy_quality=0.7
|
|
||||||
compress/hdr_compression=1
|
|
||||||
compress/normal_map=0
|
|
||||||
compress/channel_pack=0
|
|
||||||
mipmaps/generate=true
|
|
||||||
mipmaps/limit=-1
|
|
||||||
roughness/mode=0
|
|
||||||
roughness/src_normal=""
|
|
||||||
process/fix_alpha_border=true
|
|
||||||
process/premult_alpha=false
|
|
||||||
process/normal_map_invert_y=false
|
|
||||||
process/hdr_as_srgb=false
|
|
||||||
process/hdr_clamp_exposure=false
|
|
||||||
process/size_limit=0
|
|
||||||
detect_3d/compress_to=1
|
|
|
@ -21,7 +21,7 @@ compress/lossy_quality=0.7
|
||||||
compress/hdr_compression=1
|
compress/hdr_compression=1
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
compress/channel_pack=0
|
compress/channel_pack=0
|
||||||
mipmaps/generate=false
|
mipmaps/generate=true
|
||||||
mipmaps/limit=-1
|
mipmaps/limit=-1
|
||||||
roughness/mode=0
|
roughness/mode=0
|
||||||
roughness/src_normal=""
|
roughness/src_normal=""
|
||||||
|
@ -32,6 +32,6 @@ process/hdr_as_srgb=false
|
||||||
process/hdr_clamp_exposure=false
|
process/hdr_clamp_exposure=false
|
||||||
process/size_limit=0
|
process/size_limit=0
|
||||||
detect_3d/compress_to=1
|
detect_3d/compress_to=1
|
||||||
svg/scale=0.9
|
svg/scale=9.0
|
||||||
editor/scale_with_editor_scale=false
|
editor/scale_with_editor_scale=false
|
||||||
editor/convert_colors_with_editor_theme=false
|
editor/convert_colors_with_editor_theme=false
|
||||||
|
|
23
project/textures/home.svg
Normal file
23
project/textures/home.svg
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="100"
|
||||||
|
height="100"
|
||||||
|
viewBox="0 0 26.458333 26.458334"
|
||||||
|
version="1.1"
|
||||||
|
id="svg5"
|
||||||
|
xml:space="preserve"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||||
|
id="defs2" /><g
|
||||||
|
id="layer1"><path
|
||||||
|
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:1.10317;stroke-linecap:round;stroke-linejoin:miter;stroke-dasharray:none;stroke-dashoffset:10.6414;stroke-opacity:1"
|
||||||
|
d="M 0.55158962,13.518858 13.189146,1.4310712 25.860335,13.536531"
|
||||||
|
id="path2030" /><path
|
||||||
|
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:1.10317;stroke-linecap:round;stroke-linejoin:miter;stroke-dasharray:none;stroke-dashoffset:40.2195;stroke-opacity:1"
|
||||||
|
d="m 3.8350242,14.080994 0.020759,11.000626 6.6081068,0.0085 -0.01225,-7.135713 5.485688,0.0096 0.0033,7.125397 6.607899,0.0026 -0.0079,-10.442076"
|
||||||
|
id="path2081" /><path
|
||||||
|
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:1.10317;stroke-linecap:round;stroke-linejoin:miter;stroke-dasharray:none;stroke-dashoffset:40.2195;stroke-opacity:1"
|
||||||
|
d="m 17.577695,3.0792686 3.879969,0.00827 1.33e-4,3.8516468"
|
||||||
|
id="path2137" /></g></svg>
|
After Width: | Height: | Size: 1.3 KiB |
|
@ -2,16 +2,16 @@
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="CompressedTexture2D"
|
type="CompressedTexture2D"
|
||||||
uid="uid://bpj05amcrq1cq"
|
uid="uid://bmju020v33vrv"
|
||||||
path="res://.godot/imported/slide-up.png-9a3ab0f76d82921eb16db9bb2f9d123d.ctex"
|
path="res://.godot/imported/home.svg-d1fd9306efea074bae01c29b4de40bf8.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://textures/slide-up.png"
|
source_file="res://textures/home.svg"
|
||||||
dest_files=["res://.godot/imported/slide-up.png-9a3ab0f76d82921eb16db9bb2f9d123d.ctex"]
|
dest_files=["res://.godot/imported/home.svg-d1fd9306efea074bae01c29b4de40bf8.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
|
@ -32,3 +32,6 @@ process/hdr_as_srgb=false
|
||||||
process/hdr_clamp_exposure=false
|
process/hdr_clamp_exposure=false
|
||||||
process/size_limit=0
|
process/size_limit=0
|
||||||
detect_3d/compress_to=1
|
detect_3d/compress_to=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=false
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
|
@ -21,7 +21,7 @@ compress/lossy_quality=0.7
|
||||||
compress/hdr_compression=1
|
compress/hdr_compression=1
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
compress/channel_pack=0
|
compress/channel_pack=0
|
||||||
mipmaps/generate=false
|
mipmaps/generate=true
|
||||||
mipmaps/limit=-1
|
mipmaps/limit=-1
|
||||||
roughness/mode=0
|
roughness/mode=0
|
||||||
roughness/src_normal=""
|
roughness/src_normal=""
|
||||||
|
@ -32,6 +32,6 @@ process/hdr_as_srgb=false
|
||||||
process/hdr_clamp_exposure=false
|
process/hdr_clamp_exposure=false
|
||||||
process/size_limit=0
|
process/size_limit=0
|
||||||
detect_3d/compress_to=1
|
detect_3d/compress_to=1
|
||||||
svg/scale=0.2
|
svg/scale=1.0
|
||||||
editor/scale_with_editor_scale=false
|
editor/scale_with_editor_scale=false
|
||||||
editor/convert_colors_with_editor_theme=false
|
editor/convert_colors_with_editor_theme=false
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.5 KiB |
Loading…
Add table
Add a link
Reference in a new issue