diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-11-21 21:38:49 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-11-21 21:39:07 +0200 |
| commit | 6824649c8961b8aa695b6be805401fa357a61793 (patch) | |
| tree | 0441c52355be55518cd74a08b363740d78a093df /touch_screen_button.tscn | |
| parent | 242dec6cb636be957fe1c13415762f1e204deef7 (diff) | |
Improve map
Diffstat (limited to 'touch_screen_button.tscn')
| -rw-r--r-- | touch_screen_button.tscn | 7 |
1 files changed, 7 insertions, 0 deletions
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"] |
