|
|
|
@ -85,7 +85,7 @@ namespace TheGameExtreme.view
|
|
|
|
|
|
|
|
|
|
textPaint.Color = Color;
|
|
|
|
|
textPaint.StrokeWidth = 5;
|
|
|
|
|
textPaint.Style = SKPaintStyle.Stroke;
|
|
|
|
|
textPaint.Style = SKPaintStyle.StrokeAndFill;
|
|
|
|
|
|
|
|
|
|
SKRect card;
|
|
|
|
|
|
|
|
|
@ -94,10 +94,10 @@ namespace TheGameExtreme.view
|
|
|
|
|
card = new SKRect(-width, -height - textPaint.TextSize, width + textPaint.MeasureText(Math.Pow(10, ((FractionCard)(Value.View)).Fraction.SizeMax-1).ToString()), height);
|
|
|
|
|
textPaint1.Color = Color;
|
|
|
|
|
textPaint1.StrokeWidth = 5;
|
|
|
|
|
textPaint1.Style = SKPaintStyle.Stroke;
|
|
|
|
|
textPaint1.Style = SKPaintStyle.StrokeAndFill;
|
|
|
|
|
textPaint2.Color = Color;
|
|
|
|
|
textPaint2.StrokeWidth = 5;
|
|
|
|
|
textPaint2.Style = SKPaintStyle.Stroke;
|
|
|
|
|
textPaint2.Style = SKPaintStyle.StrokeAndFill;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
@ -144,14 +144,18 @@ namespace TheGameExtreme.view
|
|
|
|
|
xDen -= textPaint2.MeasureText("-");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
canvas.DrawRect(card, textPaint1);
|
|
|
|
|
SKPaint paint = textPaint1;
|
|
|
|
|
paint.Style = SKPaintStyle.Stroke;
|
|
|
|
|
canvas.DrawRect(card, paint);
|
|
|
|
|
canvas.DrawText(((FractionCard)Value.View).Fraction.Numerateur.ToString(), xNum, -height * 0.5f, textPaint);
|
|
|
|
|
canvas.DrawText(fractionBarre, -textPaint1.MeasureText("_") * 0.5f, -textPaint1.TextSize * 0.5f, textPaint1);
|
|
|
|
|
canvas.DrawText(((FractionCard)Value.View).Fraction.Denominateur.ToString(), xDen, height * 0.5f, textPaint2);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
canvas.DrawRect(card, textPaint);
|
|
|
|
|
SKPaint paint = textPaint;
|
|
|
|
|
paint.Style = SKPaintStyle.Stroke;
|
|
|
|
|
canvas.DrawRect(card, paint);
|
|
|
|
|
canvas.DrawText(display, 0, 0, textPaint);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|