YouWin.tscn (1834B)
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 [sub_resource type="DynamicFont" id=1] 8 size = 128 9 use_filter = true 10 font_data = ExtResource( 1 ) 11 12 [sub_resource type="DynamicFont" id=2] 13 size = 64 14 use_filter = true 15 font_data = ExtResource( 2 ) 16 17 [node name="Control" type="Control"] 18 anchor_right = 1.0 19 anchor_bottom = 1.0 20 __meta__ = { 21 "_edit_use_anchors_": false 22 } 23 24 [node name="ColorRect" type="ColorRect" parent="."] 25 margin_right = 1280.0 26 margin_bottom = 720.0 27 color = Color( 0.211765, 0.0470588, 0.0784314, 1 ) 28 __meta__ = { 29 "_edit_use_anchors_": false 30 } 31 32 [node name="Label" type="Label" parent="."] 33 margin_top = 64.0 34 margin_right = 1280.0 35 margin_bottom = 259.0 36 custom_fonts/font = SubResource( 1 ) 37 custom_colors/font_color = Color( 0.933333, 0.501961, 0.0392157, 1 ) 38 custom_colors/font_color_shadow = Color( 0.52549, 0.0784314, 0.0784314, 1 ) 39 custom_constants/shadow_offset_x = 6 40 text = "You Win!" 41 align = 1 42 valign = 1 43 __meta__ = { 44 "_edit_use_anchors_": false 45 } 46 47 [node name="TitlePlayButton" type="Button" parent="."] 48 margin_left = 440.0 49 margin_top = 420.0 50 margin_right = 840.0 51 margin_bottom = 545.0 52 custom_fonts/font = SubResource( 2 ) 53 custom_colors/font_color = Color( 0.682353, 0.933333, 0.0392157, 1 ) 54 custom_colors/font_color_hover = Color( 1, 0.556863, 0.0392157, 1 ) 55 custom_colors/font_color_pressed = Color( 0.917647, 0.129412, 0.796078, 1 ) 56 text = "PLAY AGAIN" 57 flat = true 58 script = ExtResource( 3 ) 59 __meta__ = { 60 "_edit_use_anchors_": false, 61 "_editor_description_": "" 62 } 63 [connection signal="pressed" from="TitlePlayButton" to="TitlePlayButton" method="_on_TitlePlayButton_pressed"]