diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-11-15 02:22:02 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-11-15 02:22:02 +0100 |
| commit | b81e08abe033cdbd9f1e2560a95bd130902a104e (patch) | |
| tree | 45103c9ddb1edd3084ac4241dfe761a0563557c1 /mainmenu.tscn | |
| parent | a0b19d6ff35bc98eb2bb39cd289eaa28c5f76bf9 (diff) | |
| download | nj26-b81e08abe033cdbd9f1e2560a95bd130902a104e.tar.gz | |
Add credits menu
Diffstat (limited to 'mainmenu.tscn')
| -rw-r--r-- | mainmenu.tscn | 39 |
1 files changed, 30 insertions, 9 deletions
diff --git a/mainmenu.tscn b/mainmenu.tscn index 7edd3c1..d38afe2 100644 --- a/mainmenu.tscn +++ b/mainmenu.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=8 format=2] +[gd_scene load_steps=9 format=2] [ext_resource path="res://bg.png" type="Texture" id=1] [ext_resource path="res://vera/VeraBI.ttf" type="DynamicFontData" id=2] @@ -15,17 +15,21 @@ size = 120 use_filter = true font_data = ExtResource( 3 ) +[sub_resource type="DynamicFont" id=3] +size = 64 +font_data = ExtResource( 3 ) + [node name="Node2D" type="Node2D"] script = ExtResource( 4 ) -[node name="CanvasLayer" type="CanvasLayer" parent="."] +[node name="cl" type="CanvasLayer" parent="."] -[node name="TextureRect" type="TextureRect" parent="CanvasLayer"] +[node name="TextureRect" type="TextureRect" parent="cl"] margin_right = 1920.0 margin_bottom = 1080.0 texture = ExtResource( 1 ) -[node name="CenterContainer3" type="CenterContainer" parent="CanvasLayer"] +[node name="CenterContainer3" type="CenterContainer" parent="cl"] anchor_left = 0.221 anchor_top = 0.664 anchor_right = 0.5 @@ -34,14 +38,14 @@ margin_right = 40.0 margin_bottom = 40.0 use_top_left = true -[node name="TextureRect" type="TextureRect" parent="CanvasLayer/CenterContainer3"] +[node name="TextureRect" type="TextureRect" parent="cl/CenterContainer3"] margin_left = -320.0 margin_top = -320.0 margin_right = 320.0 margin_bottom = 320.0 texture = ExtResource( 5 ) -[node name="CenterContainer" type="CenterContainer" parent="CanvasLayer"] +[node name="cc" type="CenterContainer" parent="cl"] anchor_left = 0.5 anchor_top = 0.3 anchor_right = 0.5 @@ -50,7 +54,7 @@ margin_right = 40.0 margin_bottom = 40.0 use_top_left = true -[node name="Label" type="Label" parent="CanvasLayer/CenterContainer"] +[node name="Label" type="Label" parent="cl/cc"] margin_left = -607.0 margin_top = -106.0 margin_right = 606.0 @@ -58,7 +62,7 @@ margin_bottom = 105.0 custom_fonts/font = SubResource( 1 ) text = "Eat the Cat!" -[node name="CenterContainer2" type="CenterContainer" parent="CanvasLayer"] +[node name="c2" type="CenterContainer" parent="cl"] anchor_left = 0.5 anchor_top = 0.7 anchor_right = 0.5 @@ -67,10 +71,27 @@ margin_right = 40.0 margin_bottom = 40.0 use_top_left = true -[node name="Button" type="Button" parent="CanvasLayer/CenterContainer2"] +[node name="play" type="Button" parent="cl/c2"] margin_left = -148.0 margin_top = -74.0 margin_right = 148.0 margin_bottom = 73.0 custom_fonts/font = SubResource( 2 ) text = "Play" + +[node name="c3" type="CenterContainer" parent="cl"] +anchor_left = 0.5 +anchor_top = 0.87 +anchor_right = 0.5 +anchor_bottom = 0.87 +margin_right = 40.0 +margin_bottom = 40.0 +use_top_left = true + +[node name="credits" type="Button" parent="cl/c3"] +margin_left = -136.0 +margin_top = -41.0 +margin_right = 135.0 +margin_bottom = 41.0 +custom_fonts/font = SubResource( 3 ) +text = "Credits" |
