1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
[gd_scene load_steps=2 format=2] [ext_resource path="res://ui/barbutton/BarTextureButton.gd" type="Script" id=2] [node name="BarTextureButton" type="Control"] margin_right = 64.0 margin_bottom = 64.0 rect_min_size = Vector2( 50, 50 ) script = ExtResource( 2 ) [node name="Background" type="ColorRect" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 [node name="Texture" type="TextureButton" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 focus_mode = 0 enabled_focus_mode = 0 expand = true [connection signal="mouse_entered" from="Texture" to="." method="_on_Texture_mouse_entered"] [connection signal="mouse_exited" from="Texture" to="." method="_on_Texture_mouse_exited"] [connection signal="pressed" from="Texture" to="." method="_on_Texture_pressed"]