[gnome-games] [same-gnome-clutter] Clear final score display on new game
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games] [same-gnome-clutter] Clear final score display on new game
- Date: Mon, 20 Jul 2009 05:54:25 +0000 (UTC)
commit 78fe0ba8d5a68034b89d904add0123e3ce7033f3
Author: Tim Horton <hortont424 gmail com>
Date: Mon Jul 20 01:54:06 2009 -0400
[same-gnome-clutter] Clear final score display on new game
same-gnome-clutter/src/Board.js | 5 ++---
same-gnome-clutter/src/Score.js | 1 +
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/same-gnome-clutter/src/Board.js b/same-gnome-clutter/src/Board.js
index 500a66e..90be664 100644
--- a/same-gnome-clutter/src/Board.js
+++ b/same-gnome-clutter/src/Board.js
@@ -18,7 +18,6 @@ Board = new GType({
var last_light;
var animating = false;
var anim_timeline;
- var final_score;
// TODO: when a click is rejected, queue it up, like in the C version
@@ -265,8 +264,8 @@ Board = new GType({
for(var i in children)
self.remove_actor(children[i]);
- if(final_score)
- final_score.hide_score();
+ if(Score.final_score)
+ Score.final_score.hide_score();
Score.set_score(0);
diff --git a/same-gnome-clutter/src/Score.js b/same-gnome-clutter/src/Score.js
index e354d38..22c3147 100644
--- a/same-gnome-clutter/src/Score.js
+++ b/same-gnome-clutter/src/Score.js
@@ -5,6 +5,7 @@ Settings = imports.Settings;
_ = imports.gettext.gettext;
var current_score = 0;
+var final_score;
function set_score(score)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]