Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
UnseenFaith committed Apr 21, 2024
2 parents 801dd40 + a88e024 commit 9bd28d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nodes/ui/settings.gd
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ func change_volume(value: float, emitter, idx: int):
func _back_event(viewport, event, shape_idx):
if InputUtil.is_click(event):
back.emit()

func _back_enter():
$SettingsItems/BackButton.modulate = Color(1, .9, .9)

func _back_exit():
$SettingsItems/BackButton.modulate = Color.WHITE
2 changes: 2 additions & 0 deletions nodes/ui/settings.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,5 @@ position = Vector2(2, 1)
shape = SubResource("RectangleShape2D_4g8nx")

[connection signal="input_event" from="SettingsItems/BackButton/Area2D" to="." method="_back_event"]
[connection signal="mouse_entered" from="SettingsItems/BackButton/Area2D" to="." method="_back_enter"]
[connection signal="mouse_exited" from="SettingsItems/BackButton/Area2D" to="." method="_back_exit"]

0 comments on commit 9bd28d3

Please sign in to comment.