Implemented spawn points correctly. Added saving & loading (currently only implemented with the spawn_index). You can now set spawn indicies in the DynamicAreaLoader to automatically load when the game is set to that value (on ready). Added configuration warnings to DynamicAreaLoader & PlayerSpawnPoint Added some generic translation (pot) files. Added AudioManager autoload to play, stop, fade audio streams (and set the bus directly). Added SceneFader autoload. Added SaveManager autoload. Added OptionsMenu with currently only volume sliders and a fullscreen toggle button. Added PauseMenu
100 lines
3.2 KiB
Plaintext
100 lines
3.2 KiB
Plaintext
[gd_scene load_steps=4 format=3 uid="uid://dwd8wf02j2epn"]
|
|
|
|
[ext_resource type="Script" uid="uid://bmsx3h2kunhb0" path="res://components/ui/menus/main_menu/main_menu.gd" id="1_6xfbl"]
|
|
[ext_resource type="PackedScene" uid="uid://4s2nskkco0a2" path="res://components/ui/menus/options_menu/options_menu.tscn" id="2_i2wwg"]
|
|
|
|
[sub_resource type="Environment" id="Environment_6xfbl"]
|
|
ambient_light_source = 2
|
|
ambient_light_color = Color(0.177136, 0.177136, 0.177136, 1)
|
|
|
|
[node name="MainMenu" type="Node"]
|
|
script = ExtResource("1_6xfbl")
|
|
|
|
[node name="MainMenuUI" type="Control" parent="."]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="TitleLabel" type="Label" parent="MainMenuUI"]
|
|
layout_mode = 1
|
|
anchors_preset = 10
|
|
anchor_right = 1.0
|
|
offset_bottom = 88.0
|
|
grow_horizontal = 2
|
|
theme_override_font_sizes/font_size = 64
|
|
text = "Magic N' Stuff"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="ButtonContainer" type="VBoxContainer" parent="MainMenuUI"]
|
|
custom_minimum_size = Vector2(128, 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 = -64.0
|
|
offset_top = -68.0
|
|
offset_right = 64.0
|
|
offset_bottom = 68.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
alignment = 1
|
|
|
|
[node name="ContinueButton" type="Button" parent="MainMenuUI/ButtonContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "CONTINUE"
|
|
|
|
[node name="NewGameButton" type="Button" parent="MainMenuUI/ButtonContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "NEW_GAME"
|
|
|
|
[node name="SettingsButton" type="Button" parent="MainMenuUI/ButtonContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "SETTINGS"
|
|
|
|
[node name="QuitButton" type="Button" parent="MainMenuUI/ButtonContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "QUIT"
|
|
|
|
[node name="OptionsMenu" parent="." instance=ExtResource("2_i2wwg")]
|
|
visible = false
|
|
|
|
[node name="Background" type="Node3D" parent="."]
|
|
|
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="Background"]
|
|
environment = SubResource("Environment_6xfbl")
|
|
|
|
[node name="TVLight" type="OmniLight3D" parent="Background"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, -1)
|
|
light_energy = 0.135
|
|
omni_range = 3.0
|
|
omni_attenuation = 2.15
|
|
|
|
[node name="CSGGeometry" type="CSGCombiner3D" parent="Background"]
|
|
|
|
[node name="CSGBox3D" type="CSGBox3D" parent="Background/CSGGeometry"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0)
|
|
size = Vector3(10, 4, 7)
|
|
|
|
[node name="CSGBox3D2" type="CSGBox3D" parent="Background/CSGGeometry/CSGBox3D"]
|
|
operation = 2
|
|
size = Vector3(9, 3, 6)
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="Background"]
|
|
transform = Transform3D(1, 0, 0, 0, 0.996195, -0.0871557, 0, 0.0871557, 0.996195, 0, 0.4, 1)
|
|
current = true
|
|
fov = 55.0
|
|
|
|
[connection signal="pressed" from="MainMenuUI/ButtonContainer/ContinueButton" to="." method="_on_continue_button_pressed"]
|
|
[connection signal="pressed" from="MainMenuUI/ButtonContainer/NewGameButton" to="." method="_on_new_game_button_pressed"]
|
|
[connection signal="pressed" from="MainMenuUI/ButtonContainer/SettingsButton" to="." method="_on_settings_button_pressed"]
|
|
[connection signal="pressed" from="MainMenuUI/ButtonContainer/QuitButton" to="." method="_on_quit_button_pressed"]
|