This commit is contained in:
Auric Vente 2024-07-28 23:49:14 -06:00
parent 9ee9c119ed
commit 67c62f7b0b
2 changed files with 7 additions and 2 deletions

View File

@ -595,6 +595,11 @@ class Game:
animation.setStartValue(0)
animation.setEndValue(1)
animation.setEasingCurve(QEasingCurve.InOutQuad)
animation.finished.connect(lambda: Game.animations.remove(animation))
def on_animation_finished() -> None:
item.setGraphicsEffect(None)
Game.animations.remove(animation)
animation.finished.connect(on_animation_finished)
Game.animations.append(animation)
return animation

View File

@ -1,5 +1,5 @@
{
"version": "3.6.0",
"version": "4.0.0",
"title": "Cromulant",
"program": "cromulant",
"author": "madprops",