2023-11-08 14:28:55 +11:00
|
|
|
[gd_scene load_steps=2 format=3 uid="uid://f46qh73hrk4y"]
|
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://Scripts/confirmation_popup.gd" id="1_x7akt"]
|
|
|
|
|
|
|
|
[node name="ConfirmationPopup" type="PanelContainer"]
|
|
|
|
anchors_preset = 8
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
offset_left = -67.5
|
|
|
|
offset_top = -30.5
|
|
|
|
offset_right = 67.5
|
|
|
|
offset_bottom = 30.5
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
script = ExtResource("1_x7akt")
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Some Text?"
|
|
|
|
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
2023-11-19 18:47:52 +11:00
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/HBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/margin_left = 30
|
|
|
|
theme_override_constants/margin_right = 30
|
|
|
|
|
|
|
|
[node name="Confirm" type="Button" parent="VBoxContainer/HBoxContainer/MarginContainer"]
|
2023-11-08 14:28:55 +11:00
|
|
|
layout_mode = 2
|
|
|
|
text = "Confirm"
|
|
|
|
|
2023-11-19 18:47:52 +11:00
|
|
|
[node name="MarginContainer2" type="MarginContainer" parent="VBoxContainer/HBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/margin_left = 30
|
|
|
|
theme_override_constants/margin_right = 30
|
|
|
|
|
|
|
|
[node name="Cancel" type="Button" parent="VBoxContainer/HBoxContainer/MarginContainer2"]
|
2023-11-08 14:28:55 +11:00
|
|
|
layout_mode = 2
|
|
|
|
text = "Cancel"
|
|
|
|
|
2023-11-19 18:47:52 +11:00
|
|
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer/MarginContainer/Confirm" to="." method="_on_confirm_pressed"]
|
|
|
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer/MarginContainer2/Cancel" to="." method="_on_cancel_pressed"]
|