added a main menu

This commit is contained in:
2024-07-23 16:49:30 +02:00
parent a17e93d9e2
commit 4bb78cee2e
9 changed files with 165 additions and 2 deletions
+51 -2
View File
@@ -1,3 +1,52 @@
[gd_scene format=3 uid="uid://cstgejgqggfdo"]
[gd_scene load_steps=6 format=3 uid="uid://cstgejgqggfdo"]
[node name="Mainmenu" type="Node2D"]
[ext_resource type="Script" path="res://scenes/mainmenu.gd" id="1_oicw3"]
[ext_resource type="Texture2D" uid="uid://btklbxi5j46q3" path="res://resources/backgrounds/skeletonbg.webp" id="1_xlhmj"]
[ext_resource type="FontFile" uid="uid://d2tkoshxpw347" path="res://fonts/play_regular.ttf" id="2_cci21"]
[ext_resource type="FontFile" uid="uid://dxgnofummhosw" path="res://fonts/play_bold.ttf" id="3_pmnei"]
[sub_resource type="Theme" id="Theme_8qj38"]
Label/fonts/font = ExtResource("2_cci21")
[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
script = ExtResource("1_oicw3")
[node name="Background" type="TextureRect" parent="."]
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
texture = ExtResource("1_xlhmj")
[node name="GameTitle" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 350.0
grow_horizontal = 2
size_flags_vertical = 1
theme = SubResource("Theme_8qj38")
theme_override_fonts/font = ExtResource("3_pmnei")
theme_override_font_sizes/font_size = 222
text = "IDLE BREAKOUT"
horizontal_alignment = 1
vertical_alignment = 2
[node name="ButtonContainer" type="VBoxContainer" parent="."]
layout_mode = 0
offset_left = 120.0
offset_top = 382.0
offset_right = 790.0
offset_bottom = 715.0
[node name="StartGame" type="Button" parent="ButtonContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 64
text = "Start Game"
[connection signal="pressed" from="ButtonContainer/StartGame" to="." method="_on_start_game_btn_pressed"]