Menu.tscn (1811B)
1 [gd_scene load_steps=6 format=2] 2 3 [ext_resource path="res://assets/fonts/JetBrainsMono-Regular.ttf" type="DynamicFontData" id=1] 4 [ext_resource path="res://assets/fonts/SF-Pro-Rounded-Black.otf" type="DynamicFontData" id=2] 5 [ext_resource path="res://scripts/PlayButton.gd" type="Script" id=3] 6 7 8 [sub_resource type="DynamicFont" id=1] 9 size = 128 10 use_filter = true 11 font_data = ExtResource( 1 ) 12 13 [sub_resource type="DynamicFont" id=2] 14 size = 64 15 use_filter = true 16 font_data = ExtResource( 2 ) 17 18 [node name="Control" type="Control"] 19 anchor_right = 1.0 20 anchor_bottom = 1.0 21 __meta__ = { 22 "_edit_use_anchors_": false 23 } 24 25 [node name="ColorRect" type="ColorRect" parent="."] 26 margin_right = 1280.0 27 margin_bottom = 720.0 28 color = Color( 0.713726, 0.678431, 0.623529, 1 ) 29 __meta__ = { 30 "_edit_use_anchors_": false 31 } 32 33 [node name="Label" type="Label" parent="."] 34 margin_top = 64.0 35 margin_right = 1280.0 36 margin_bottom = 259.0 37 custom_fonts/font = SubResource( 1 ) 38 custom_colors/font_color = Color( 0.0392157, 0.933333, 0.682353, 1 ) 39 custom_colors/font_color_shadow = Color( 0, 0, 0, 1 ) 40 custom_constants/shadow_offset_x = 6 41 text = "Simple 3D Game" 42 align = 1 43 valign = 1 44 __meta__ = { 45 "_edit_use_anchors_": false 46 } 47 48 [node name="TitlePlayButton" type="Button" parent="."] 49 margin_left = 440.0 50 margin_top = 420.0 51 margin_right = 840.0 52 margin_bottom = 545.0 53 custom_fonts/font = SubResource( 2 ) 54 custom_colors/font_color = Color( 0.682353, 0.933333, 0.0392157, 1 ) 55 custom_colors/font_color_hover = Color( 1, 0.556863, 0.0392157, 1 ) 56 custom_colors/font_color_pressed = Color( 0.917647, 0.129412, 0.796078, 1 ) 57 text = "PLAY" 58 flat = true 59 script = ExtResource( 3 ) 60 __meta__ = { 61 "_edit_use_anchors_": false, 62 "_editor_description_": "" 63 } 64 [connection signal="pressed" from="TitlePlayButton" to="TitlePlayButton" method="_on_TitlePlayButton_pressed"]