diff options
Diffstat (limited to 'client/menu/error.tscn')
-rw-r--r-- | client/menu/error.tscn | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/client/menu/error.tscn b/client/menu/error.tscn index e4e024de..f999429d 100644 --- a/client/menu/error.tscn +++ b/client/menu/error.tscn @@ -1,10 +1,11 @@ -[gd_scene load_steps=6 format=3 uid="uid://cimgn07lbcs4v"] +[gd_scene load_steps=7 format=3 uid="uid://cimgn07lbcs4v"] [ext_resource type="Theme" uid="uid://b0qmvo504e457" path="res://menu/theme/theme/theme.tres" id="1_cabdu"] [ext_resource type="PackedScene" uid="uid://l4vm07dtda4j" path="res://menu/menu_background.tscn" id="2_5fxol"] [ext_resource type="Script" uid="uid://bl0n4atrdcogm" path="res://menu/error.gd" id="2_dbe41"] [ext_resource type="PackedScene" uid="uid://bg2d78ycorcqk" path="res://menu/scene_transition.tscn" id="4_1nbt3"] [ext_resource type="Material" uid="uid://beea1pc5nt67r" path="res://menu/theme/materials/dark_blur_material.tres" id="4_hxkkd"] +[ext_resource type="Script" uid="uid://byshs20og68tn" path="res://menu/smart_margin_container.gd" id="5_rfcg2"] [node name="ErrorMenu" type="Control"] layout_mode = 3 @@ -27,37 +28,37 @@ anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 -[node name="contents" type="VBoxContainer" parent="Panel"] +[node name="SmartMarginContainer" type="MarginContainer" parent="Panel"] layout_mode = 1 -anchors_preset = 8 -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -offset_left = -176.5 -offset_top = -49.5 -offset_right = 176.5 -offset_bottom = 49.5 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 +script = ExtResource("5_rfcg2") +metadata/_custom_type_script = "uid://byshs20og68tn" + +[node name="contents" type="VBoxContainer" parent="Panel/SmartMarginContainer"] +layout_mode = 2 +alignment = 1 -[node name="title" type="Label" parent="Panel/contents"] +[node name="title" type="Label" parent="Panel/SmartMarginContainer/contents"] layout_mode = 2 theme_override_font_sizes/font_size = 61 text = "Error" horizontal_alignment = 1 -[node name="mesage" type="Label" parent="Panel/contents"] +[node name="mesage" type="Label" parent="Panel/SmartMarginContainer/contents"] layout_mode = 2 theme_override_font_sizes/font_size = 24 text = "This should be the error message." horizontal_alignment = 1 -[node name="Control" type="Control" parent="Panel/contents"] +[node name="Control" type="Control" parent="Panel/SmartMarginContainer/contents"] custom_minimum_size = Vector2(0, 15.805) layout_mode = 2 -[node name="return" type="Button" parent="Panel/contents"] +[node name="return" type="Button" parent="Panel/SmartMarginContainer/contents"] layout_mode = 2 size_flags_horizontal = 4 text = "Return to Main Menu" @@ -66,4 +67,4 @@ text = "Return to Main Menu" visible = false layout_mode = 1 -[connection signal="pressed" from="Panel/contents/return" to="." method="_on_return_pressed"] +[connection signal="pressed" from="Panel/SmartMarginContainer/contents/return" to="." method="_on_return_pressed"] |