improve ui and bug fix
This commit was merged in pull request #30.
This commit is contained in:
@@ -13,17 +13,23 @@ func _ready():
|
||||
|
||||
|
||||
func _on_pressed() -> void:
|
||||
if TweenFX.is_playing(self, TweenFX.Animations.PUNCH_IN):
|
||||
return
|
||||
TweenFX.stop_all(self)
|
||||
scale = Vector2.ONE
|
||||
rotation = 0.0
|
||||
modulate.a = 1.0
|
||||
TweenFX.punch_in(self)
|
||||
|
||||
|
||||
func _on_mouse_entered() -> void:
|
||||
if TweenFX.is_playing(self, TweenFX.Animations.BREATHE):
|
||||
return
|
||||
TweenFX.stop_all(self)
|
||||
scale = Vector2.ONE
|
||||
rotation = 0.0
|
||||
modulate.a = 1.0
|
||||
TweenFX.breathe(self, 1)
|
||||
|
||||
|
||||
func _on_mouse_exited() -> void:
|
||||
TweenFX.stop(self, TweenFX.Animations.BREATHE)
|
||||
scale = Vector2(1, 1)
|
||||
TweenFX.stop_all(self)
|
||||
scale = Vector2.ONE
|
||||
rotation = 0.0
|
||||
modulate.a = 1.0
|
||||
|
||||
Reference in New Issue
Block a user