[gbrainy] Move operator closer to the numbers



commit 5723055b54793e6bc8ab3ccecdb6af2f88ddc2b0
Author: Jordi Mas <jmas softcatala org>
Date:   Wed Jan 23 21:44:17 2019 +0100

    Move operator closer to the numbers

 src/Games/Calculation/CalculationArithmetical.cs | 8 ++++----
 src/Games/Calculation/CalculationOperator.cs     | 6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/Games/Calculation/CalculationArithmetical.cs 
b/src/Games/Calculation/CalculationArithmetical.cs
index 2f75be4d..6ce40514 100644
--- a/src/Games/Calculation/CalculationArithmetical.cs
+++ b/src/Games/Calculation/CalculationArithmetical.cs
@@ -62,7 +62,7 @@ namespace gbrainy.Games.Calculation
                                max_operand = 100;
                                break;
                        case GameDifficulty.Master:
-                               max_operations = 5;
+                               max_operations = 4;
                                max_operand = 500;
                                break;
                        }
@@ -110,7 +110,7 @@ namespace gbrainy.Games.Calculation
                        for (int i = 0; i < operands.Length - 1; i++)
                        {
                                gr.DrawTextAlignedRight (aligned_pos, operand_y, operands[i].ToString ());
-                               gr.MoveTo (DrawAreaX + 0.2, operand_y + 0.03);  
+                               gr.MoveTo (DrawAreaX + 0.3, operand_y + 0.03);
 
                                switch (operation) {
                                case Operation.Addition:
@@ -129,8 +129,8 @@ namespace gbrainy.Games.Calculation
 
                        gr.DrawTextAlignedRight (aligned_pos, operand_y, operands[operands.Length - 
1].ToString ());
 
-                       operand_y += 0.08;
-                       gr.MoveTo (DrawAreaX + 0.2, operand_y);
+                       operand_y += 0.13;
+                       gr.MoveTo (DrawAreaX + 0.3, operand_y);
                        gr.LineTo (DrawAreaX + 0.5, operand_y);
                        gr.Stroke ();
 
diff --git a/src/Games/Calculation/CalculationOperator.cs b/src/Games/Calculation/CalculationOperator.cs
index 29da1f87..4243f56e 100644
--- a/src/Games/Calculation/CalculationOperator.cs
+++ b/src/Games/Calculation/CalculationOperator.cs
@@ -118,16 +118,16 @@ namespace gbrainy.Games.Calculation
                        gr.DrawTextAlignedRight (aligned_pos, DrawAreaY + 0.3, number_b.ToString ());
                        gr.DrawTextAlignedRight (aligned_pos, DrawAreaY + 0.4, number_c.ToString ());
 
-                       gr.MoveTo (DrawAreaX + 0.2, DrawAreaY + 0.5);
+                       gr.MoveTo (DrawAreaX + 0.3, DrawAreaY + 0.5);
                        gr.LineTo (DrawAreaX + 0.5, DrawAreaY + 0.5);
                        gr.Stroke ();
 
                        gr.DrawTextAlignedRight (aligned_pos, DrawAreaY + 0.55, total.ToString ());
 
-                       gr.MoveTo (DrawAreaX + 0.2, DrawAreaY + 0.25);
+                       gr.MoveTo (DrawAreaX + 0.3, DrawAreaY + 0.25);
                        gr.ShowPangoText ((Answer.Draw == true) ? oper1.ToString () : "?");
 
-                       gr.MoveTo (DrawAreaX + 0.2, DrawAreaY + 0.35);
+                       gr.MoveTo (DrawAreaX + 0.3, DrawAreaY + 0.35);
                        gr.ShowPangoText ((Answer.Draw == true) ?  oper2.ToString () : "?");
 
                }


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