From 6824649c8961b8aa695b6be805401fa357a61793 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 21 Nov 2025 21:38:49 +0200 Subject: Improve map --- touch_screen_button.tscn | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'touch_screen_button.tscn') diff --git a/touch_screen_button.tscn b/touch_screen_button.tscn index 355d491..e1d0898 100644 --- a/touch_screen_button.tscn +++ b/touch_screen_button.tscn @@ -10,6 +10,8 @@ shape = SubResource("RectangleShape2D_l8v81") passby_press = true visibility_mode = 1 script = ExtResource("1_8gxd0") +inactive_color = Color(0.54509807, 0.6666667, 1, 0.5019608) +active_color = Color(0, 0.77254903, 0.7764706, 0.5019608) [node name="TextureRect" type="TextureRect" parent="."] offset_left = -8.0 @@ -17,3 +19,8 @@ offset_top = -8.0 offset_right = 8.0 offset_bottom = 8.0 expand_mode = 1 + +[node name="CanvasModulate" type="CanvasModulate" parent="TextureRect"] + +[connection signal="pressed" from="." to="." method="_on_pressed"] +[connection signal="released" from="." to="." method="_on_released"] -- cgit v1.3