This repository has been archived by the owner on Nov 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tried to make the mute and back buttons less intrusive
- Loading branch information
Showing
4 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
extends Button | ||
|
||
onready var original_modulate = modulate | ||
|
||
export (float) var transparency := 0.75 | ||
|
||
func _ready() -> void: | ||
self.connect("mouse_entered", self, "_on_mouse_entered") | ||
self.connect("mouse_exited", self, "_on_mouse_exited") | ||
_on_mouse_exited() | ||
|
||
func _on_mouse_entered() -> void: | ||
modulate = original_modulate | ||
|
||
func _on_mouse_exited() -> void: | ||
modulate.a = transparency |