aboutsummaryrefslogtreecommitdiff
path: root/src/MTools/Anim/MOpacity.pm
diff options
context:
space:
mode:
authormarion2009-02-17 13:05:26 +0000
committermarion2009-02-17 13:05:26 +0000
commit13cfe752aa4d255a17dcdcb036676c1fca449060 (patch)
treeb187285d6d8b1418d1f193f7a36fa1f2cd8618b5 /src/MTools/Anim/MOpacity.pm
parentd0abbef391942ce67ca6dfb430e8bdb0ebdda841 (diff)
downloadmtc-13cfe752aa4d255a17dcdcb036676c1fca449060.zip
mtc-13cfe752aa4d255a17dcdcb036676c1fca449060.tar.gz
mtc-13cfe752aa4d255a17dcdcb036676c1fca449060.tar.bz2
mtc-13cfe752aa4d255a17dcdcb036676c1fca449060.tar.xz
ajout de la methode complete pour MOpacity
Diffstat (limited to 'src/MTools/Anim/MOpacity.pm')
-rw-r--r--src/MTools/Anim/MOpacity.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/MTools/Anim/MOpacity.pm b/src/MTools/Anim/MOpacity.pm
index 64cf739..4525b2d 100644
--- a/src/MTools/Anim/MOpacity.pm
+++ b/src/MTools/Anim/MOpacity.pm
@@ -115,6 +115,13 @@ sub stop {
}
}
+sub complete {
+ my ($self) = @_;
+ return if !$self->isRunning();
+ $self->__event($self -> mget ('to_opacity') - $self -> {__opacitydep});
+ $self->stop();
+}
+
sub __event {
my ($self, $opacity) = @_;
$opacity += $self -> {__opacitydep};