diff --git a/src/2DPlatformer/scripts/mainMenu.gd b/src/2DPlatformer/scripts/mainMenu.gd index c983ee6..bfbbaec 100644 --- a/src/2DPlatformer/scripts/mainMenu.gd +++ b/src/2DPlatformer/scripts/mainMenu.gd @@ -1,11 +1,9 @@ extends Node2D +@export_file("*.tscn") var game_path : String + func _on_quit_pressed(): get_tree().quit() -func _on_ambitie_pressed(): - get_tree().change_scene_to_file("res://2DPlatformer/Scenes/level_selection.tscn") - -func _on_glow_pressed(): - get_tree().change_scene_to_file("res://Scenes/glowLevel.tscn") - +func _on_play_pressed(): + get_tree().change_scene_to_file(game_path) diff --git a/src/addons/maaacks_game_template/base/translations/menus_translations.en.translation b/src/addons/maaacks_game_template/base/translations/menus_translations.en.translation index 0532101..b46c9a9 100644 Binary files a/src/addons/maaacks_game_template/base/translations/menus_translations.en.translation and b/src/addons/maaacks_game_template/base/translations/menus_translations.en.translation differ diff --git a/src/addons/maaacks_game_template/base/translations/menus_translations.fr.translation b/src/addons/maaacks_game_template/base/translations/menus_translations.fr.translation index 4addb47..855e2e0 100644 Binary files a/src/addons/maaacks_game_template/base/translations/menus_translations.fr.translation and b/src/addons/maaacks_game_template/base/translations/menus_translations.fr.translation differ diff --git a/src/scenes/menus/main_menu/Platformer_Menu.tscn b/src/scenes/menus/main_menu/Platformer_Menu.tscn index 0335dfc..c3b0775 100644 --- a/src/scenes/menus/main_menu/Platformer_Menu.tscn +++ b/src/scenes/menus/main_menu/Platformer_Menu.tscn @@ -7,6 +7,7 @@ [node name="Main" type="Node2D"] script = ExtResource("1_nojfs") +game_path = "uid://buqchtcwe5gk2" [node name="TextureRect" type="TextureRect" parent="."] texture_filter = 1 @@ -70,7 +71,7 @@ layout_mode = 3 anchors_preset = 0 theme = ExtResource("3_ggqgi") -[node name="Ambitie" type="Button" parent="Control"] +[node name="Play" type="Button" parent="Control"] layout_mode = 0 offset_left = 500.0 offset_top = 151.0 @@ -104,5 +105,5 @@ scroll_active = false stream = ExtResource("4_6dvh8") autoplay = true -[connection signal="pressed" from="Control/Ambitie" to="." method="_on_ambitie_pressed"] +[connection signal="pressed" from="Control/Play" to="." method="_on_play_pressed"] [connection signal="pressed" from="Control/Quit" to="." method="_on_quit_pressed"] diff --git a/src/scenes/menus/main_menu/main_menu_with_animations.tscn b/src/scenes/menus/main_menu/main_menu_with_animations.tscn index c3d3a55..60ba803 100644 --- a/src/scenes/menus/main_menu/main_menu_with_animations.tscn +++ b/src/scenes/menus/main_menu/main_menu_with_animations.tscn @@ -1,9 +1,9 @@ [gd_scene load_steps=18 format=3 uid="uid://d3ab284l3yd4r"] -[ext_resource type="PackedScene" path="res://addons/maaacks_game_template/base/scenes/menus/main_menu/main_menu.tscn" id="1_6btwc"] -[ext_resource type="Script" path="res://scenes/menus/main_menu/main_menu_with_animations.gd" id="2_rr1rn"] -[ext_resource type="PackedScene" path="res://scenes/menus/options_menu/master_options_menu_with_tabs.tscn" id="3_sr523"] -[ext_resource type="PackedScene" path="res://scenes/credits/credits.tscn" id="4_ixa71"] +[ext_resource type="PackedScene" uid="uid://c6k5nnpbypshi" path="res://addons/maaacks_game_template/base/scenes/menus/main_menu/main_menu.tscn" id="1_6btwc"] +[ext_resource type="Script" uid="uid://bryarst7qsas4" path="res://scenes/menus/main_menu/main_menu_with_animations.gd" id="2_rr1rn"] +[ext_resource type="PackedScene" uid="uid://bb3dnen65tocv" path="res://scenes/menus/options_menu/master_options_menu_with_tabs.tscn" id="3_sr523"] +[ext_resource type="PackedScene" uid="uid://da7uj8u87g24i" path="res://scenes/credits/credits.tscn" id="4_ixa71"] [sub_resource type="Animation" id="1"] resource_name = "Intro" @@ -352,7 +352,7 @@ graph_offset = Vector2(-180.277, 49) [node name="MainMenu" instance=ExtResource("1_6btwc")] script = ExtResource("2_rr1rn") level_select_packed_scene = null -game_scene_path = "res://scenes/game_scene/game_ui.tscn" +game_scene_path = "uid://cff88ui6woo0" options_packed_scene = ExtResource("3_sr523") credits_packed_scene = ExtResource("4_ixa71") @@ -372,9 +372,15 @@ modulate = Color(1, 1, 1, 0) [node name="TitleContainer" parent="MenuContainer/TitleMargin" index="0"] modulate = Color(1, 1, 1, 0) +[node name="TitleLabel" parent="MenuContainer/TitleMargin/TitleContainer" index="0"] +text = "project showcase" + [node name="SubTitleContainer" parent="MenuContainer/SubTitleMargin" index="0"] modulate = Color(1, 1, 1, 0) +[node name="SubTitleLabel" parent="MenuContainer/SubTitleMargin/SubTitleContainer" index="0"] +text = "Dean Lemans" + [node name="MenuButtonsContainer" parent="MenuContainer/MenuButtonsMargin" index="0"] modulate = Color(1, 1, 1, 0) diff --git a/src/scenes/menus/options_menu/video/video_options_menu_with_extras.tscn b/src/scenes/menus/options_menu/video/video_options_menu_with_extras.tscn index 97d486d..cd3befc 100644 --- a/src/scenes/menus/options_menu/video/video_options_menu_with_extras.tscn +++ b/src/scenes/menus/options_menu/video/video_options_menu_with_extras.tscn @@ -1,12 +1,15 @@ [gd_scene load_steps=4 format=3 uid="uid://rotxpw1imw0"] -[ext_resource type="PackedScene" path="res://addons/maaacks_game_template/base/scenes/menus/options_menu/video/video_options_menu.tscn" id="1_68kug"] -[ext_resource type="Script" path="res://scenes/menus/options_menu/video/video_options_menu.gd" id="2_r8snp"] -[ext_resource type="PackedScene" path="res://addons/maaacks_game_template/base/scenes/menus/options_menu/option_control/list_option_control.tscn" id="3_h7trr"] +[ext_resource type="PackedScene" uid="uid://b2numvphf2kau" path="res://addons/maaacks_game_template/base/scenes/menus/options_menu/video/video_options_menu.tscn" id="1_68kug"] +[ext_resource type="Script" uid="uid://qnjb2n2x4obp" path="res://scenes/menus/options_menu/video/video_options_menu.gd" id="2_r8snp"] +[ext_resource type="PackedScene" uid="uid://b6bl3n5mp3m1e" path="res://addons/maaacks_game_template/base/scenes/menus/options_menu/option_control/list_option_control.tscn" id="3_h7trr"] [node name="Video" instance=ExtResource("1_68kug")] script = ExtResource("2_r8snp") +[node name="ResolutionControl" parent="VBoxContainer" index="1"] +option_titles = Array[String](["640 x 360", "960 x 540", "1024 x 576", "1223 x 553", "1280 x 720", "1600 x 900", "1920 x 1080", "2048 x 1152", "2560 x 1440", "3200 x 1800", "3840 x 2160"]) + [node name="AntiAliasingControl" parent="VBoxContainer" index="2" instance=ExtResource("3_h7trr")] layout_mode = 2 lock_titles = true