A Minecraft style clone in Godot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

127 lines
4.8 KiB

[gd_scene load_steps=11 format=3 uid="uid://bb7poutsn4ex2"]
[ext_resource type="StyleBox" uid="uid://biousyggn7iua" path="res://resources/save_file_panel_theme.tres" id="1_cqw77"]
[ext_resource type="Texture2D" uid="uid://cmq51cgasug81" path="res://assets/ui/folder-open-normal.png" id="1_k6haa"]
[ext_resource type="Script" uid="uid://dcfdyua5gwpw4" path="res://scenes/ui/menus/saves_manager/save_file.gd" id="2_5g2eu"]
[ext_resource type="Texture2D" uid="uid://blyryo60jydgi" path="res://assets/ui/folder-open-pressed.png" id="2_714lu"]
[ext_resource type="StyleBox" uid="uid://bwm315lqbbb87" path="res://resources/save_file_highlight_panel_theme.tres" id="3_om23c"]
[ext_resource type="Texture2D" uid="uid://by4w5ll3le7g6" path="res://assets/ui/folder-open-hover.png" id="3_ubfnn"]
[ext_resource type="Texture2D" uid="uid://dvp5yeoqw36yt" path="res://assets/ui/trash-normal.png" id="4_c2bnc"]
[ext_resource type="Texture2D" uid="uid://dknv7amroftm8" path="res://assets/icon.svg" id="4_vqdx8"]
[ext_resource type="Texture2D" uid="uid://brwa8yljyrlgy" path="res://assets/ui/trash-pressed.png" id="5_jgxci"]
[ext_resource type="Texture2D" uid="uid://cmrtuy0i5qc01" path="res://assets/ui/trash-hover.png" id="6_cqw77"]
[node name="SaveFilePanel" type="Panel" node_paths=PackedStringArray("save_name_label", "save_date_label", "save_icon", "load_button", "delete_confirm_ui", "delete_button", "delete_confirm_button", "delete_cancel_button")]
custom_minimum_size = Vector2(420, 60)
offset_right = 420.0
offset_bottom = 60.0
theme_override_styles/panel = ExtResource("1_cqw77")
script = ExtResource("2_5g2eu")
save_panel_highlight = ExtResource("3_om23c")
save_panel_normal = ExtResource("1_cqw77")
save_name_label = NodePath("HBoxContainer/NameDate/SaveName")
save_date_label = NodePath("HBoxContainer/NameDate/SaveDate")
save_icon = NodePath("HBoxContainer/SaveFileIcon")
load_button = NodePath("HBoxContainer/Actions/LoadButton")
delete_confirm_ui = NodePath("ConfirmDeletePanel")
delete_button = NodePath("HBoxContainer/Actions/DeleteButton")
delete_confirm_button = NodePath("ConfirmDeletePanel/VBoxContainer/HBoxContainer/ConfirmButton")
delete_cancel_button = NodePath("ConfirmDeletePanel/VBoxContainer/HBoxContainer/CancelButton")
[node name="HBoxContainer" type="HBoxContainer" parent="."]
custom_minimum_size = Vector2(400, 0)
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -200.0
offset_top = -20.5
offset_right = 200.0
offset_bottom = 20.5
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 0
[node name="SaveFileIcon" type="TextureRect" parent="HBoxContainer"]
layout_mode = 2
texture = ExtResource("4_vqdx8")
expand_mode = 3
[node name="NameDate" type="VBoxContainer" parent="HBoxContainer"]
layout_mode = 2
size_flags_vertical = 8
[node name="SaveName" type="Label" parent="HBoxContainer/NameDate"]
layout_mode = 2
text = "Save name #1"
[node name="SaveDate" type="Label" parent="HBoxContainer/NameDate"]
layout_mode = 2
theme_override_font_sizes/font_size = 10
text = "2025/03/20 13:43:12"
[node name="Actions" type="HBoxContainer" parent="HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 10
[node name="LoadButton" type="TextureButton" parent="HBoxContainer/Actions"]
clip_contents = true
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
tooltip_text = "Load Save"
texture_normal = ExtResource("1_k6haa")
texture_pressed = ExtResource("2_714lu")
texture_hover = ExtResource("3_ubfnn")
ignore_texture_size = true
stretch_mode = 5
[node name="DeleteButton" type="TextureButton" parent="HBoxContainer/Actions"]
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
tooltip_text = "Delete Save"
texture_normal = ExtResource("4_c2bnc")
texture_pressed = ExtResource("5_jgxci")
texture_hover = ExtResource("6_cqw77")
ignore_texture_size = true
stretch_mode = 5
[node name="ConfirmDeletePanel" type="Panel" parent="."]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="ConfirmDeletePanel"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -61.5
offset_top = -29.0
offset_right = 61.5
offset_bottom = 29.0
grow_horizontal = 2
grow_vertical = 2
[node name="Label" type="Label" parent="ConfirmDeletePanel/VBoxContainer"]
layout_mode = 2
text = "Delete Save?"
horizontal_alignment = 1
[node name="HBoxContainer" type="HBoxContainer" parent="ConfirmDeletePanel/VBoxContainer"]
layout_mode = 2
[node name="ConfirmButton" type="Button" parent="ConfirmDeletePanel/VBoxContainer/HBoxContainer"]
layout_mode = 2
text = "Confirm"
[node name="CancelButton" type="Button" parent="ConfirmDeletePanel/VBoxContainer/HBoxContainer"]
layout_mode = 2
text = "Cancel"