模板场景文件
This commit is contained in:
@@ -0,0 +1,127 @@
|
||||
[gd_scene load_steps=6 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui/pause_menu_ui.gd" id="2_script"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_panel"]
|
||||
bg_color = Color(0.055, 0.06, 0.07, 0.82)
|
||||
corner_radius_top_left = 6
|
||||
corner_radius_top_right = 6
|
||||
corner_radius_bottom_right = 6
|
||||
corner_radius_bottom_left = 6
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_button_hover"]
|
||||
content_margin_left = 10.0
|
||||
content_margin_top = 4.0
|
||||
content_margin_right = 10.0
|
||||
content_margin_bottom = 4.0
|
||||
bg_color = Color(0.22, 0.25, 0.29, 0.92)
|
||||
corner_radius_top_left = 5
|
||||
corner_radius_top_right = 5
|
||||
corner_radius_bottom_right = 5
|
||||
corner_radius_bottom_left = 5
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_button_pressed"]
|
||||
content_margin_left = 10.0
|
||||
content_margin_top = 4.0
|
||||
content_margin_right = 10.0
|
||||
content_margin_bottom = 4.0
|
||||
bg_color = Color(0.14, 0.16, 0.19, 0.96)
|
||||
corner_radius_top_left = 5
|
||||
corner_radius_top_right = 5
|
||||
corner_radius_bottom_right = 5
|
||||
corner_radius_bottom_left = 5
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_button_focus"]
|
||||
|
||||
[node name="PauseMenuUI" type="Control"]
|
||||
process_mode = 3
|
||||
z_index = 100
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 0
|
||||
script = ExtResource("2_script")
|
||||
|
||||
[node name="Overlay" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0, 0, 0, 0.58)
|
||||
|
||||
[node name="Panel" type="PanelContainer" parent="Overlay"]
|
||||
custom_minimum_size = Vector2(360, 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 = -180.0
|
||||
offset_top = -178.0
|
||||
offset_right = 180.0
|
||||
offset_bottom = 178.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_panel")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="Overlay/Panel"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 40
|
||||
theme_override_constants/margin_top = 32
|
||||
theme_override_constants/margin_right = 40
|
||||
theme_override_constants/margin_bottom = 32
|
||||
|
||||
[node name="Buttons" type="VBoxContainer" parent="Overlay/Panel/MarginContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 24
|
||||
alignment = 1
|
||||
|
||||
[node name="Title" type="Label" parent="Overlay/Panel/MarginContainer/Buttons"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 52
|
||||
text = "PAUSED"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Resume" type="Button" parent="Overlay/Panel/MarginContainer/Buttons"]
|
||||
layout_mode = 2
|
||||
mouse_default_cursor_shape = 2
|
||||
theme_override_colors/font_hover_color = Color(0.55, 0.75, 0.95, 1)
|
||||
theme_override_colors/font_pressed_color = Color(0.42, 0.62, 0.82, 1)
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_button_hover")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxFlat_button_pressed")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_button_focus")
|
||||
text = "RESUME"
|
||||
flat = true
|
||||
|
||||
[node name="MainMenu" type="Button" parent="Overlay/Panel/MarginContainer/Buttons"]
|
||||
layout_mode = 2
|
||||
mouse_default_cursor_shape = 2
|
||||
theme_override_colors/font_hover_color = Color(0.55, 0.75, 0.95, 1)
|
||||
theme_override_colors/font_pressed_color = Color(0.42, 0.62, 0.82, 1)
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_button_hover")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxFlat_button_pressed")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_button_focus")
|
||||
text = "MAIN MENU"
|
||||
flat = true
|
||||
|
||||
[node name="Quit" type="Button" parent="Overlay/Panel/MarginContainer/Buttons"]
|
||||
layout_mode = 2
|
||||
mouse_default_cursor_shape = 2
|
||||
theme_override_colors/font_hover_color = Color(0.86, 0.1, 0.1, 1)
|
||||
theme_override_colors/font_pressed_color = Color(0.86, 0.1, 0.1, 1)
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_button_focus")
|
||||
text = "QUIT"
|
||||
flat = true
|
||||
|
||||
[connection signal="pressed" from="Overlay/Panel/MarginContainer/Buttons/Resume" to="." method="_on_resume_pressed"]
|
||||
[connection signal="pressed" from="Overlay/Panel/MarginContainer/Buttons/MainMenu" to="." method="_on_main_menu_pressed"]
|
||||
[connection signal="pressed" from="Overlay/Panel/MarginContainer/Buttons/Quit" to="." method="_on_quit_pressed"]
|
||||
Reference in New Issue
Block a user