seed r843 - trunk/examples/same-seed
- From: hortont svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r843 - trunk/examples/same-seed
- Date: Tue, 3 Feb 2009 16:40:32 +0000 (UTC)
Author: hortont
Date: Tue Feb 3 16:40:32 2009
New Revision: 843
URL: http://svn.gnome.org/viewvc/seed?rev=843&view=rev
Log:
Picking directly after animation works now.
Modified:
trunk/examples/same-seed/board.js
Modified: trunk/examples/same-seed/board.js
==============================================================================
--- trunk/examples/same-seed/board.js (original)
+++ trunk/examples/same-seed/board.js Tue Feb 3 16:40:32 2009
@@ -12,7 +12,7 @@
{
animating = false;
- /*var x = new Object(), y = new Object();
+ var x = new Object(), y = new Object();
window.window.get_pointer(x, y, null);
var picked = stage.get_actor_at_pos(x.value, y.value);
@@ -21,7 +21,14 @@
picked = picked.get_parent();
if(picked && picked.get_light_x)
- light_lights_from(picked);*/
+ {
+ if(picked == oldpicked)
+ return false;
+
+ oldpicked = picked;
+
+ light_lights_from(picked);
+ }
return false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]