gbrainy r283 - trunk/src
- From: jmas svn gnome org
- To: svn-commits-list gnome org
- Subject: gbrainy r283 - trunk/src
- Date: Wed, 2 Apr 2008 22:47:59 +0100 (BST)
Author: jmas
Date: Wed Apr 2 22:47:58 2008
New Revision: 283
URL: http://svn.gnome.org/viewvc/gbrainy?rev=283&view=rev
Log:
2008-04-05 Jordi Mas <jmas softcatala org>
* GameDrawingArea.cs: More feedback to the player about her game
Modified:
trunk/src/ChangeLog
trunk/src/GameDrawingArea.cs
Modified: trunk/src/GameDrawingArea.cs
==============================================================================
--- trunk/src/GameDrawingArea.cs (original)
+++ trunk/src/GameDrawingArea.cs Wed Apr 2 22:47:58 2008
@@ -163,7 +163,7 @@
countdown_time = 3;
timer = new System.Timers.Timer ();
timer.Elapsed += TimerUpdater;
- timer.Interval = (1 * 1000); // 1 seconds
+ timer.Interval = (1 * 1000); // 1 second
timer.Enabled = true;
finish = OnFinish;
}
@@ -198,7 +198,7 @@
{
double y = 0.08, x = 0.05;
double space_small = 0.06;
- string str;
+ string str, s;
gr.Scale (area_width, area_height);
gr.Color = new Cairo.Color (1, 1, 1);
@@ -213,8 +213,22 @@
gr.SetFontSize (0.03);
y += 0.08;
gr.MoveTo (x, y);
- gr.ShowText (String.Format (Catalog.GetString ("Your total score is {0}%"), session.TotalScore));
+ if (session.GamesPlayed >= 10) {
+ if (session.TotalScore >= 90)
+ s = String.Format (Catalog.GetString ("Outstanding results, your total score is {0}%"), session.TotalScore);
+ else if (session.TotalScore >= 80)
+ s = String.Format (Catalog.GetString ("Excellent results, your total score is {0}%"), session.TotalScore);
+ else if (session.TotalScore >= 50)
+ s = String.Format (Catalog.GetString ("Good results, your total score is {0}%"), session.TotalScore);
+ else if (session.TotalScore >= 30)
+ s = String.Format (Catalog.GetString ("Poor results, your total score is {0}%"), session.TotalScore);
+
+ else s = String.Format (Catalog.GetString ("Disappointing results, your total score is {0}%"), session.TotalScore);
+ } else
+ s = String.Format (Catalog.GetString ("Your total score is {0}%"), session.TotalScore);
+
+ gr.ShowText (s);
y += space_small;
gr.MoveTo (x, y);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]