online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/barbutton/BarTextureButton.tscn')
-rw-r--r--ui/barbutton/BarTextureButton.tscn24
1 files changed, 11 insertions, 13 deletions
diff --git a/ui/barbutton/BarTextureButton.tscn b/ui/barbutton/BarTextureButton.tscn
index b7091fc..2f22a36 100644
--- a/ui/barbutton/BarTextureButton.tscn
+++ b/ui/barbutton/BarTextureButton.tscn
@@ -2,23 +2,21 @@
[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
+[node name="BarTextureButton" type="TextureButton"]
+margin_right = 50.0
+margin_bottom = 50.0
rect_min_size = Vector2( 50, 50 )
+focus_mode = 1
+enabled_focus_mode = 1
+expand = true
script = ExtResource( 2 )
[node name="Background" type="ColorRect" parent="."]
+show_behind_parent = true
anchor_right = 1.0
anchor_bottom = 1.0
+mouse_filter = 2
+color = Color( 0, 0, 0, 1 )
-[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"]
+[connection signal="mouse_entered" from="." to="." method="_focused" binds= [ true ]]
+[connection signal="mouse_exited" from="." to="." method="_focused" binds= [ false ]]