- main_menu.tscn: Vollbild dunkler Hintergrund, Banner-Slot oben, Buttons zentriert, Einstellungen als styled Overlay-Panel - main_menu.gd: Banner automatisch geladen wenn Banner.png vorhanden, sonst Fallback-Titeltext; @onready-Pfade auf neue Struktur angepasst - class_selection_menu.gd: CLASS_DATA von const auf var geändert Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
205 lines
5.9 KiB
Text
205 lines
5.9 KiB
Text
[gd_scene format=3 uid="uid://main_menu"]
|
|
|
|
[ext_resource type="Script" path="res://main_menu.gd" id="1_menu"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_bg"]
|
|
bg_color = Color(0.04, 0.04, 0.07, 1.0)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_settings"]
|
|
bg_color = Color(0.07, 0.06, 0.11, 0.97)
|
|
border_width_left = 2
|
|
border_width_top = 2
|
|
border_width_right = 2
|
|
border_width_bottom = 2
|
|
border_color = Color(0.25, 0.20, 0.35, 1.0)
|
|
corner_radius_top_left = 10
|
|
corner_radius_top_right = 10
|
|
corner_radius_bottom_right = 10
|
|
corner_radius_bottom_left = 10
|
|
|
|
[node name="MainMenu" type="CanvasLayer"]
|
|
script = ExtResource("1_menu")
|
|
|
|
[node name="Background" type="Panel" parent="."]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_bg")
|
|
|
|
[node name="MainPanel" type="Control" parent="Background"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
|
|
[node name="BannerImage" type="TextureRect" parent="Background/MainPanel"]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 0.0
|
|
offset_top = 60.0
|
|
offset_bottom = 300.0
|
|
expand_mode = 1
|
|
stretch_mode = 6
|
|
|
|
[node name="FallbackTitle" type="Label" parent="Background/MainPanel"]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 0.0
|
|
offset_top = 80.0
|
|
offset_bottom = 200.0
|
|
theme_override_font_sizes/font_size = 72
|
|
text = "DungeonCrawler"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Background/MainPanel"]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.35
|
|
anchor_top = 0.45
|
|
anchor_right = 0.65
|
|
anchor_bottom = 0.88
|
|
theme_override_constants/separation = 18
|
|
|
|
[node name="PlayBtn" type="Button" parent="Background/MainPanel/VBoxContainer"]
|
|
custom_minimum_size = Vector2(0, 60)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 24
|
|
text = "Spielen"
|
|
|
|
[node name="SettingsBtn" type="Button" parent="Background/MainPanel/VBoxContainer"]
|
|
custom_minimum_size = Vector2(0, 60)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 24
|
|
text = "Einstellungen"
|
|
|
|
[node name="QuitBtn" type="Button" parent="Background/MainPanel/VBoxContainer"]
|
|
custom_minimum_size = Vector2(0, 60)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 24
|
|
text = "Beenden"
|
|
|
|
[node name="VersionLabel" type="Label" parent="Background/MainPanel"]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.0
|
|
anchor_top = 1.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 16.0
|
|
offset_top = -28.0
|
|
offset_right = 200.0
|
|
offset_bottom = -8.0
|
|
theme_override_font_sizes/font_size = 12
|
|
text = "v0.1 Alpha"
|
|
modulate = Color(0.5, 0.5, 0.5, 1.0)
|
|
|
|
[node name="SettingsPanel" type="Panel" parent="Background"]
|
|
visible = false
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -280.0
|
|
offset_top = -260.0
|
|
offset_right = 280.0
|
|
offset_bottom = 260.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_settings")
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Background/SettingsPanel"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 24.0
|
|
offset_top = 24.0
|
|
offset_right = -24.0
|
|
offset_bottom = -24.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_constants/separation = 18
|
|
|
|
[node name="Title" type="Label" parent="Background/SettingsPanel/VBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 26
|
|
text = "Einstellungen"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="HSeparator" type="HSeparator" parent="Background/SettingsPanel/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="ResolutionRow" type="HBoxContainer" parent="Background/SettingsPanel/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="Background/SettingsPanel/VBoxContainer/ResolutionRow"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_font_sizes/font_size = 16
|
|
text = "Auflösung"
|
|
|
|
[node name="ResolutionOption" type="OptionButton" parent="Background/SettingsPanel/VBoxContainer/ResolutionRow"]
|
|
custom_minimum_size = Vector2(200, 0)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 14
|
|
|
|
[node name="WindowModeRow" type="HBoxContainer" parent="Background/SettingsPanel/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="Background/SettingsPanel/VBoxContainer/WindowModeRow"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_font_sizes/font_size = 16
|
|
text = "Fenstermodus"
|
|
|
|
[node name="WindowModeOption" type="OptionButton" parent="Background/SettingsPanel/VBoxContainer/WindowModeRow"]
|
|
custom_minimum_size = Vector2(200, 0)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 14
|
|
|
|
[node name="VsyncRow" type="HBoxContainer" parent="Background/SettingsPanel/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="Background/SettingsPanel/VBoxContainer/VsyncRow"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_font_sizes/font_size = 16
|
|
text = "VSync"
|
|
|
|
[node name="VsyncCheck" type="CheckBox" parent="Background/SettingsPanel/VBoxContainer/VsyncRow"]
|
|
layout_mode = 2
|
|
text = "Aktiviert"
|
|
|
|
[node name="MSAARow" type="HBoxContainer" parent="Background/SettingsPanel/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="Background/SettingsPanel/VBoxContainer/MSAARow"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_font_sizes/font_size = 16
|
|
text = "Anti-Aliasing"
|
|
|
|
[node name="MSAAOption" type="OptionButton" parent="Background/SettingsPanel/VBoxContainer/MSAARow"]
|
|
custom_minimum_size = Vector2(200, 0)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 14
|
|
|
|
[node name="Spacer" type="Control" parent="Background/SettingsPanel/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="BackBtn" type="Button" parent="Background/SettingsPanel/VBoxContainer"]
|
|
custom_minimum_size = Vector2(0, 50)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 18
|
|
text = "Zurück"
|