[gd_scene load_steps=5 format=3 uid="uid://cmyjaeahyipq4"] [ext_resource type="Script" path="res://components/Menu/menu_button.gd" id="1_kxfx8"] [ext_resource type="PackedScene" uid="uid://dykc1mgg5uopw" path="res://components/Cursor/MouseHandler.tscn" id="2_g6apf"] [ext_resource type="Script" path="res://components/Menu/background_highlight.gd" id="3_cxaw3"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_oahx4"] size = Vector2(147, 22) [node name="MenuButton" type="RichTextLabel"] clip_contents = false anchors_preset = 4 anchor_top = 0.5 anchor_bottom = 0.5 offset_left = 48.0 offset_top = -52.0 offset_right = 138.87 offset_bottom = -27.485 grow_vertical = 2 theme_override_font_sizes/normal_font_size = 16 bbcode_enabled = true text = "Play" script = ExtResource("1_kxfx8") [node name="MouseHandler" parent="." instance=ExtResource("2_g6apf")] [node name="CollisionShape2D" type="CollisionShape2D" parent="MouseHandler"] position = Vector2(36.5, 7) shape = SubResource("RectangleShape2D_oahx4") [node name="BackgroundHighlight" type="ColorRect" parent="."] show_behind_parent = true layout_mode = 0 offset_left = -420.0 offset_top = -8.0 offset_right = -142.0 offset_bottom = 22.0 color = Color(0, 0, 0, 1) script = ExtResource("3_cxaw3") [connection signal="clicked" from="MouseHandler" to="." method="_on_play_mouse_handler_clicked"] [connection signal="hovered" from="MouseHandler" to="." method="_on_mouse_handler_hovered"] [connection signal="hovered" from="MouseHandler" to="BackgroundHighlight" method="_on_mouse_handler_hovered"] [connection signal="unhovered" from="MouseHandler" to="." method="_on_mouse_handler_unhovered"] [connection signal="unhovered" from="MouseHandler" to="BackgroundHighlight" method="_on_mouse_handler_unhovered"]