trenches/godot/main_menu.tscn

113 lines
3.7 KiB
Plaintext

[gd_scene load_steps=8 format=3 uid="uid://pgi5rny8vjn4"]
[ext_resource type="Theme" uid="uid://posd5w7val31" path="res://ui_theme.tres" id="1_h4bo5"]
[ext_resource type="Texture2D" uid="uid://c0gsyl61wtg8s" path="res://ui/level_select.png" id="2_8es0c"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_t5qe0"]
bg_color = Color(0, 0, 0, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_isjvw"]
bg_color = Color(0.290196, 0.290196, 0.290196, 0.686275)
corner_radius_top_left = 4
corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
expand_margin_left = 30.0
expand_margin_top = 10.0
expand_margin_right = 30.0
expand_margin_bottom = 30.0
[sub_resource type="LabelSettings" id="LabelSettings_oxg04"]
font_size = 70
[sub_resource type="GDScript" id="GDScript_krtn0"]
script/source = "extends Button
@export var game_scene := \"res://boot.tscn\"
func _ready() -> void:
self.grab_focus()
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
func _on_pressed() -> void:
self.get_tree().call_deferred(\"change_scene_to_file\", game_scene)
"
[sub_resource type="GDScript" id="GDScript_iytxh"]
script/source = "extends Button
func _on_pressed() -> void:
self.get_tree().quit()
"
[node name="Control" type="AspectRatioContainer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_h4bo5")
ratio = 1.7778
[node name="Panel" type="Panel" parent="."]
layout_mode = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_t5qe0")
[node name="MarginContainer2" type="MarginContainer" parent="."]
layout_mode = 2
[node name="TextureRect" type="TextureRect" parent="MarginContainer2"]
texture_filter = 2
layout_mode = 2
texture = ExtResource("2_8es0c")
expand_mode = 2
stretch_mode = 5
[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 0
theme_override_constants/margin_left = 148
theme_override_constants/margin_top = 155
[node name="CenterContainer" type="CenterContainer" parent="MarginContainer"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
[node name="PanelContainer" type="PanelContainer" parent="MarginContainer/CenterContainer"]
layout_mode = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_isjvw")
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/CenterContainer/PanelContainer"]
layout_mode = 2
theme_override_constants/separation = 18
[node name="Label" type="Label" parent="MarginContainer/CenterContainer/PanelContainer/VBoxContainer"]
layout_mode = 2
text = "Agoraphobia"
label_settings = SubResource("LabelSettings_oxg04")
[node name="Button" type="Button" parent="MarginContainer/CenterContainer/PanelContainer/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 0
focus_neighbor_top = NodePath("../Button2")
focus_neighbor_bottom = NodePath("../Button2")
focus_next = NodePath("../Button2")
focus_previous = NodePath("../Button2")
text = "Start Game"
script = SubResource("GDScript_krtn0")
[node name="Button2" type="Button" parent="MarginContainer/CenterContainer/PanelContainer/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 0
focus_neighbor_top = NodePath("../Button")
focus_neighbor_bottom = NodePath("../Button")
focus_next = NodePath("../Button")
focus_previous = NodePath(".")
text = "Quit"
script = SubResource("GDScript_iytxh")
[connection signal="pressed" from="MarginContainer/CenterContainer/PanelContainer/VBoxContainer/Button" to="MarginContainer/CenterContainer/PanelContainer/VBoxContainer/Button" method="_on_pressed"]
[connection signal="pressed" from="MarginContainer/CenterContainer/PanelContainer/VBoxContainer/Button2" to="MarginContainer/CenterContainer/PanelContainer/VBoxContainer/Button2" method="_on_pressed"]