[gjs] add Tweener.setTimeScale and Tweener.getTimeScale
- From: James Willcox <jwillcox src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] add Tweener.setTimeScale and Tweener.getTimeScale
- Date: Thu, 20 May 2010 15:36:18 +0000 (UTC)
commit 214c84edeeae06257c5e57dd85ac55181c5ece29
Author: James Willcox <jwillcox litl com>
Date: Fri May 14 17:12:34 2010 -0400
add Tweener.setTimeScale and Tweener.getTimeScale
This lets you effectively slow down (or speed up) all tweens. Pretty
useful for debugging.
https://bugzilla.gnome.org/show_bug.cgi?id=618676
modules/tweener/tweener.js | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/modules/tweener/tweener.js b/modules/tweener/tweener.js
index 959fa4d..d18408a 100644
--- a/modules/tweener/tweener.js
+++ b/modules/tweener/tweener.js
@@ -850,3 +850,11 @@ function registerSpecialPropertySplitter(name, splitFunction, parameters) {
parameters: parameters
};
}
+
+function setTimeScale(scale) {
+ _timeScale = scale;
+}
+
+function getTimeScale() {
+ return _timeScale;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]