From f2b8a252a14b5dd4f15e4e5aa3a8274339ec8f7d Mon Sep 17 00:00:00 2001 From: blinry Date: Tue, 3 Nov 2020 14:39:54 +0100 Subject: [PATCH] Set drop areas to "not highlighted" by default --- scenes/drop_area.gd | 2 +- scenes/drop_area.tscn | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scenes/drop_area.gd b/scenes/drop_area.gd index c620dde..a2cbc84 100644 --- a/scenes/drop_area.gd +++ b/scenes/drop_area.gd @@ -4,7 +4,7 @@ var hovered = false var highlighted = false setget _set_highlighted func _ready(): - pass + _set_highlighted(false) func _mouse_entered(): hovered = true diff --git a/scenes/drop_area.tscn b/scenes/drop_area.tscn index b0eeb77..7d941fb 100644 --- a/scenes/drop_area.tscn +++ b/scenes/drop_area.tscn @@ -21,9 +21,9 @@ shape = SubResource( 1 ) [node name="Highlight" type="Node2D" parent="."] [node name="Sprite" type="Sprite" parent="Highlight"] -modulate = Color( 0.65098, 0.560784, 0.890196, 0.533333 ) -position = Vector2( -0.302734, -1.13884 ) -scale = Vector2( 0.921018, 0.921018 ) +modulate = Color( 0.847059, 0.788235, 0.996078, 0.533333 ) +position = Vector2( 0.177797, -0.65835 ) +scale = Vector2( 1.23678, 1.23678 ) texture = ExtResource( 2 ) [connection signal="mouse_entered" from="Area2D" to="." method="_mouse_entered"] [connection signal="mouse_exited" from="Area2D" to="." method="_mouse_exited"]