[gbrainy] Add 'Possible answers are' to multioption puzzles missing the text



commit 576e485f458e33ab538ff95eb4488aa857dbd96f
Author: Jordi Mas <jmas softcatala org>
Date:   Tue May 24 22:37:13 2011 +0200

    Add 'Possible answers are' to multioption puzzles missing the text

 src/Games/Calculation/CalculationAverage.cs        |   10 ++++++++++
 src/Games/Calculation/CalculationCloserFraction.cs |   10 ++++++++++
 src/Games/Calculation/CalculationPrimes.cs         |    4 ++--
 src/Games/Calculation/CalculationProportions.cs    |   10 ++++++++++
 src/Games/Logic/PuzzleOstracism.cs                 |   10 ++++++++++
 5 files changed, 42 insertions(+), 2 deletions(-)
---
diff --git a/src/Games/Calculation/CalculationAverage.cs b/src/Games/Calculation/CalculationAverage.cs
index fec7405..19a9f21 100644
--- a/src/Games/Calculation/CalculationAverage.cs
+++ b/src/Games/Calculation/CalculationAverage.cs
@@ -174,5 +174,15 @@ namespace gbrainy.Games.Calculation
 				};
 			}
 		}
+
+		public override void Draw (CairoContextEx gr, int area_width, int area_height, bool rtl)
+		{
+			base.Draw (gr, area_width, area_height, rtl);
+
+			gr.SetPangoLargeFontSize ();
+
+			gr.MoveTo (0.1, 0.15);
+			gr.ShowPangoText (ServiceLocator.Instance.GetService <ITranslations> ().GetString ("Possible answers are:"));
+		}
 	}
 }
diff --git a/src/Games/Calculation/CalculationCloserFraction.cs b/src/Games/Calculation/CalculationCloserFraction.cs
index bd103c8..1b7e9ad 100644
--- a/src/Games/Calculation/CalculationCloserFraction.cs
+++ b/src/Games/Calculation/CalculationCloserFraction.cs
@@ -166,5 +166,15 @@ namespace gbrainy.Games.Calculation
 				};
 			}
 		}
+
+		public override void Draw (CairoContextEx gr, int area_width, int area_height, bool rtl)
+		{
+			base.Draw (gr, area_width, area_height, rtl);
+
+			gr.SetPangoLargeFontSize ();
+
+			gr.MoveTo (0.1, 0.15);
+			gr.ShowPangoText (ServiceLocator.Instance.GetService <ITranslations> ().GetString ("Possible answers are:"));
+		}
 	}
 }
diff --git a/src/Games/Calculation/CalculationPrimes.cs b/src/Games/Calculation/CalculationPrimes.cs
index 2a54f78..f35ea9f 100644
--- a/src/Games/Calculation/CalculationPrimes.cs
+++ b/src/Games/Calculation/CalculationPrimes.cs
@@ -148,8 +148,8 @@ namespace gbrainy.Games.Calculation
 
 			gr.SetPangoLargeFontSize ();
 
-			gr.MoveTo (0.05, DrawAreaY + 0.1);
-			gr.ShowPangoText (ServiceLocator.Instance.GetService <ITranslations> ().GetString ("Numbers"));
+			gr.MoveTo (0.1, 0.15);
+			gr.ShowPangoText (ServiceLocator.Instance.GetService <ITranslations> ().GetString ("Possible answers are:"));
 		}
 
 		short GenerateNonPrime ()
diff --git a/src/Games/Calculation/CalculationProportions.cs b/src/Games/Calculation/CalculationProportions.cs
index d057b31..38f574f 100644
--- a/src/Games/Calculation/CalculationProportions.cs
+++ b/src/Games/Calculation/CalculationProportions.cs
@@ -120,5 +120,15 @@ namespace gbrainy.Games.Calculation
 				};
 			}
 		}
+
+		public override void Draw (CairoContextEx gr, int area_width, int area_height, bool rtl)
+		{
+			base.Draw (gr, area_width, area_height, rtl);
+
+			gr.SetPangoLargeFontSize ();
+
+			gr.MoveTo (0.1, 0.15);
+			gr.ShowPangoText (ServiceLocator.Instance.GetService <ITranslations> ().GetString ("Possible answers are:"));
+		}
 	}
 }
diff --git a/src/Games/Logic/PuzzleOstracism.cs b/src/Games/Logic/PuzzleOstracism.cs
index 31d5dab..e017018 100644
--- a/src/Games/Logic/PuzzleOstracism.cs
+++ b/src/Games/Logic/PuzzleOstracism.cs
@@ -165,5 +165,15 @@ namespace gbrainy.Games.Logic
 				};
 			}
 		}
+
+		public override void Draw (CairoContextEx gr, int area_width, int area_height, bool rtl)
+		{
+			base.Draw (gr, area_width, area_height, rtl);
+
+			gr.SetPangoLargeFontSize ();
+
+			gr.MoveTo (0.1, 0.15);
+			gr.ShowPangoText (ServiceLocator.Instance.GetService <ITranslations> ().GetString ("Possible answers are:"));
+		}
 	}
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]