From: Eduardo Date: Fri, 26 Jan 2024 18:37:02 +0000 (+0100) Subject: created a main menu and asigned as main scene X-Git-Url: http://git.edufdez.es/?a=commitdiff_plain;h=04a9b576fa52f1922af6387dfc200f3e14f917ba;p=ScaryGame.git created a main menu and asigned as main scene others proyect options has been edited too but its all provisional --- diff --git a/menus/main_menu/MainMenu.tscn b/menus/main_menu/MainMenu.tscn new file mode 100644 index 0000000..600c074 --- /dev/null +++ b/menus/main_menu/MainMenu.tscn @@ -0,0 +1,100 @@ +[gd_scene load_steps=2 format=3 uid="uid://c7omkuc5nfdwt"] + +[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_qywf7"] + +[node name="MainMenu" type="Control"] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="BackgroundColorRect" 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.129412, 0.239216, 0.321569, 1) + +[node name="CenterContainer" type="CenterContainer" parent="."] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="MarginContainer" type="MarginContainer" parent="CenterContainer"] +layout_mode = 2 +theme_override_constants/margin_left = 32 +theme_override_constants/margin_top = 32 +theme_override_constants/margin_right = 32 +theme_override_constants/margin_bottom = 64 + +[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer/MarginContainer"] +layout_mode = 2 + +[node name="MarginContainer" type="MarginContainer" parent="CenterContainer/MarginContainer/VBoxContainer"] +layout_mode = 2 +theme_override_constants/margin_left = 16 +theme_override_constants/margin_top = 16 +theme_override_constants/margin_right = 16 +theme_override_constants/margin_bottom = 16 + +[node name="TextureRect" type="TextureRect" parent="CenterContainer/MarginContainer/VBoxContainer/MarginContainer"] +custom_minimum_size = Vector2(700, 100) +layout_mode = 2 +texture = SubResource("PlaceholderTexture2D_qywf7") + +[node name="Label" type="Label" parent="CenterContainer/MarginContainer/VBoxContainer/MarginContainer"] +layout_mode = 2 +text = "game logo" +horizontal_alignment = 1 +vertical_alignment = 1 + +[node name="MarginContainer2" type="MarginContainer" parent="CenterContainer/MarginContainer/VBoxContainer"] +layout_mode = 2 +theme_override_constants/margin_left = 16 +theme_override_constants/margin_top = 16 +theme_override_constants/margin_right = 16 +theme_override_constants/margin_bottom = 16 + +[node name="Button" type="Button" parent="CenterContainer/MarginContainer/VBoxContainer/MarginContainer2"] +layout_mode = 2 +text = "Play" + +[node name="MarginContainer3" type="MarginContainer" parent="CenterContainer/MarginContainer/VBoxContainer"] +layout_mode = 2 +theme_override_constants/margin_left = 16 +theme_override_constants/margin_top = 16 +theme_override_constants/margin_right = 16 +theme_override_constants/margin_bottom = 16 + +[node name="Button" type="Button" parent="CenterContainer/MarginContainer/VBoxContainer/MarginContainer3"] +layout_mode = 2 +text = "Settings" + +[node name="MarginContainer4" type="MarginContainer" parent="CenterContainer/MarginContainer/VBoxContainer"] +layout_mode = 2 +theme_override_constants/margin_left = 16 +theme_override_constants/margin_top = 16 +theme_override_constants/margin_right = 16 +theme_override_constants/margin_bottom = 16 + +[node name="Button" type="Button" parent="CenterContainer/MarginContainer/VBoxContainer/MarginContainer4"] +layout_mode = 2 +text = "Credits" + +[node name="MarginContainer5" type="MarginContainer" parent="CenterContainer/MarginContainer/VBoxContainer"] +layout_mode = 2 +theme_override_constants/margin_left = 16 +theme_override_constants/margin_top = 16 +theme_override_constants/margin_right = 16 +theme_override_constants/margin_bottom = 16 + +[node name="Button" type="Button" parent="CenterContainer/MarginContainer/VBoxContainer/MarginContainer5"] +layout_mode = 2 +text = "Exit" diff --git a/project.godot b/project.godot index a9a4285..7f65a13 100644 --- a/project.godot +++ b/project.godot @@ -10,7 +10,8 @@ config_version=5 [application] -config/name="our RPG" +config/name="jueguito de mieo" +run/main_scene="res://menus/main_menu/MainMenu.tscn" config/features=PackedStringArray("4.3", "Forward Plus") config/icon="res://icon.svg" @@ -21,6 +22,8 @@ PromptManager="*res://addons/input_prompts/input_prompt_manager.gd" Tracer="*res://addons/tracer/./tracer.gd" GGS="*res://addons/ggs/classes/global/ggs.tscn" DebugMenu="*res://addons/debug_menu/debug_menu.tscn" +SceneManager="*res://addons/scene_manager/scene_manager.tscn" +Scenes="*res://addons/scene_manager/scenes.gd" [display] @@ -33,7 +36,20 @@ version_control/autoload_on_startup=true [editor_plugins] -enabled=PackedStringArray("res://addons/ColorPreview/plugin.cfg", "res://addons/anthonyec.camera_preview/plugin.cfg", "res://addons/debug_menu/plugin.cfg", "res://addons/ez_transitions/plugin.cfg", "res://addons/ggs/plugin.cfg", "res://addons/input_prompts/plugin.cfg", "res://addons/script-ide/plugin.cfg", "res://addons/tracer/plugin.cfg") +enabled=PackedStringArray("res://addons/ColorPreview/plugin.cfg", "res://addons/anthonyec.camera_preview/plugin.cfg", "res://addons/debug_menu/plugin.cfg", "res://addons/ez_transitions/plugin.cfg", "res://addons/ggs/plugin.cfg", "res://addons/input_prompts/plugin.cfg", "res://addons/scene_manager/plugin.cfg", "res://addons/script-ide/plugin.cfg", "res://addons/tracer/plugin.cfg") + +[file_customization] + +folder_colors={ +"res://addons/": "gray", +"res://assets/": "pink", +"res://examples/": "gray", +"res://game_settings/": "orange", +"res://levels/": "purple", +"res://menus/": "blue", +"res://player/": "red", +"res://shaders/": "teal" +} [input]