godot-psd-training/trainings/confirmDialog/confirmDialog.tscn
2024-05-21 10:20:43 +08:00

61 lines
2.4 KiB
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://b3whbe3mau53w"]
[ext_resource type="Theme" uid="uid://bycedcl2nwwlu" path="res://ui_theme.tres" id="1_mrdsr"]
[ext_resource type="Script" path="res://trainings/confirmDialog/confirmDialog.gd" id="1_pkle5"]
[ext_resource type="FontFile" uid="uid://bkbpyidjguavf" path="res://Assets/FeiHuaSongTi-2.ttf" id="2_vyq5a"]
[node name="ConfirmDialog" type="Window"]
title = "提示"
initial_position = 1
size = Vector2i(232, 160)
theme = ExtResource("1_mrdsr")
theme_override_fonts/title_font = ExtResource("2_vyq5a")
script = ExtResource("1_pkle5")
[node name="PanelContainer" type="PanelContainer" parent="."]
process_mode = 3
offset_right = 40.0
offset_bottom = 40.0
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"]
custom_minimum_size = Vector2(232, 160)
layout_mode = 2
[node name="Label" type="Label" parent="PanelContainer/VBoxContainer"]
custom_minimum_size = Vector2(232, 100)
layout_mode = 2
text = "这里使二次提示对话框是否确认操作"
autowrap_mode = 1
[node name="MarginContainer" type="MarginContainer" parent="PanelContainer/VBoxContainer"]
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer/VBoxContainer/MarginContainer"]
layout_mode = 2
[node name="Space1" type="Control" parent="PanelContainer/VBoxContainer/MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Confirm" type="Button" parent="PanelContainer/VBoxContainer/MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
text = "确认"
[node name="Space2" type="Control" parent="PanelContainer/VBoxContainer/MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Cancel" type="Button" parent="PanelContainer/VBoxContainer/MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
text = "取消"
[node name="Space3" type="Control" parent="PanelContainer/VBoxContainer/MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[connection signal="close_requested" from="." to="." method="_on_close_requested"]
[connection signal="button_down" from="PanelContainer/VBoxContainer/MarginContainer/HBoxContainer/Confirm" to="." method="_on_confirm_button_down"]
[connection signal="button_down" from="PanelContainer/VBoxContainer/MarginContainer/HBoxContainer/Cancel" to="." method="_on_cancel_button_down"]