|
[gd_scene load_steps=11 format=3 uid="uid://dy3dbe2l3kqdn"]
|
|
|
|
[ext_resource type="Script" uid="uid://di8dm3fdxfwo1" path="res://scenes/ui/pause_menu/saves_menu.gd" id="1_x1uhs"]
|
|
[ext_resource type="PackedScene" uid="uid://cyxieflejsggu" path="res://scenes/ui/pause_menu/saves_manager/save_files_list.tscn" id="2_4p2cp"]
|
|
[ext_resource type="PackedScene" uid="uid://bb7poutsn4ex2" path="res://scenes/ui/pause_menu/saves_manager/save_file.tscn" id="3_r04ci"]
|
|
[ext_resource type="Texture2D" uid="uid://ja8bc1h5x85o" path="res://assets/ui/save-normal.png" id="4_xldu7"]
|
|
[ext_resource type="Texture2D" uid="uid://crqgyft4gfilt" path="res://assets/ui/save-pressed.png" id="5_k6iwt"]
|
|
[ext_resource type="Texture2D" uid="uid://o3l0j53mgkan" path="res://assets/ui/save-hover.png" id="6_43e35"]
|
|
|
|
[sub_resource type="Animation" id="Animation_h2y1u"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(-450, 0)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath(".:visible")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [false]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_ba5iv"]
|
|
resource_name = "hide"
|
|
length = 0.2
|
|
step = 0.05
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.2),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(0, 0), Vector2(-450, 0)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath(".:visible")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.2),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 1,
|
|
"values": [true, false]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_ugqbi"]
|
|
resource_name = "show"
|
|
length = 0.2
|
|
step = 0.05
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.2),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(-450, 0), Vector2(0, 0)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath(".:visible")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_h2y1u"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_h2y1u"),
|
|
&"hide": SubResource("Animation_ba5iv"),
|
|
&"show": SubResource("Animation_ugqbi")
|
|
}
|
|
|
|
[node name="SavesMenu" type="ColorRect" node_paths=PackedStringArray("show_save_ui_button", "new_save_ui", "save_name_input", "create_save_button", "create_save_cancel_button", "save_files_list_ui", "animation_player")]
|
|
visible = false
|
|
custom_minimum_size = Vector2(450, 0)
|
|
anchors_preset = 9
|
|
anchor_bottom = 1.0
|
|
offset_right = 450.0
|
|
grow_vertical = 2
|
|
color = Color(0.133333, 0.133333, 0.133333, 0.784314)
|
|
script = ExtResource("1_x1uhs")
|
|
show_save_ui_button = NodePath("MarginContainer/VBoxContainer/BottomRow/SaveButton")
|
|
new_save_ui = NodePath("NewSaveUI")
|
|
save_name_input = NodePath("NewSaveUI/MarginContainer/VBoxContainer/SaveNameInput")
|
|
create_save_button = NodePath("NewSaveUI/MarginContainer/VBoxContainer/SaveButton")
|
|
create_save_cancel_button = NodePath("NewSaveUI/MarginContainer/VBoxContainer/CancelButton")
|
|
save_files_list_ui = NodePath("MarginContainer/VBoxContainer/ScrollContainer/SaveFilesList")
|
|
animation_player = NodePath("AnimationPlayer")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_h2y1u")
|
|
}
|
|
autoplay = "RESET"
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_constants/margin_left = 20
|
|
theme_override_constants/margin_top = 20
|
|
theme_override_constants/margin_right = 20
|
|
theme_override_constants/margin_bottom = 20
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 40
|
|
text = "Save/Load Game"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="ScrollContainer" type="ScrollContainer" parent="MarginContainer/VBoxContainer"]
|
|
custom_minimum_size = Vector2(0, 500)
|
|
layout_mode = 2
|
|
horizontal_scroll_mode = 0
|
|
|
|
[node name="SaveFilesList" parent="MarginContainer/VBoxContainer/ScrollContainer" instance=ExtResource("2_4p2cp")]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 6
|
|
|
|
[node name="SaveFilePanel" parent="MarginContainer/VBoxContainer/ScrollContainer/SaveFilesList" instance=ExtResource("3_r04ci")]
|
|
layout_mode = 2
|
|
|
|
[node name="BottomRow" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
alignment = 1
|
|
|
|
[node name="SaveButton" type="TextureButton" parent="MarginContainer/VBoxContainer/BottomRow"]
|
|
clip_contents = true
|
|
custom_minimum_size = Vector2(32, 32)
|
|
layout_mode = 2
|
|
tooltip_text = "New Save"
|
|
texture_normal = ExtResource("4_xldu7")
|
|
texture_pressed = ExtResource("5_k6iwt")
|
|
texture_hover = ExtResource("6_43e35")
|
|
ignore_texture_size = true
|
|
stretch_mode = 5
|
|
|
|
[node name="NewSaveUI" type="Panel" parent="."]
|
|
visible = false
|
|
custom_minimum_size = Vector2(450, 100)
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="NewSaveUI"]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -205.0
|
|
offset_top = -29.5
|
|
offset_right = 205.0
|
|
offset_bottom = 29.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_constants/margin_left = 5
|
|
theme_override_constants/margin_top = 5
|
|
theme_override_constants/margin_right = 5
|
|
theme_override_constants/margin_bottom = 5
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="NewSaveUI/MarginContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 4
|
|
|
|
[node name="SaveNameLabel" type="Label" parent="NewSaveUI/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 20
|
|
text = "Create New Save"
|
|
|
|
[node name="SaveNameInput" type="LineEdit" parent="NewSaveUI/MarginContainer/VBoxContainer"]
|
|
custom_minimum_size = Vector2(400, 0)
|
|
layout_mode = 2
|
|
placeholder_text = "New Save File Name"
|
|
|
|
[node name="SaveButton" type="Button" parent="NewSaveUI/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Create Save"
|
|
|
|
[node name="CancelButton" type="Button" parent="NewSaveUI/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Cancel"
|