|
|
|
@ -14,6 +14,8 @@ namespace TheGameExtreme.view
|
|
|
|
|
Dictionary<long, TouchManipulationInfo> touchDictionary = new Dictionary<long, TouchManipulationInfo>();
|
|
|
|
|
public CardVM Value;
|
|
|
|
|
public string display;
|
|
|
|
|
private float width = 0.01f * (float)DeviceDisplay.MainDisplayInfo.Width;
|
|
|
|
|
private float height = 0.01f * (float)DeviceDisplay.MainDisplayInfo.Width * 3f;
|
|
|
|
|
|
|
|
|
|
public TouchManipulationBitmap(SKPaint textPaint, CardVM value)
|
|
|
|
|
{
|
|
|
|
@ -59,7 +61,7 @@ namespace TheGameExtreme.view
|
|
|
|
|
textPaint.MeasureText(display, ref textBounds);
|
|
|
|
|
|
|
|
|
|
SKRoundRect card = new SKRoundRect(textBounds, 1f, 1f);
|
|
|
|
|
card.Inflate(0.01f * (float)DeviceDisplay.MainDisplayInfo.Width, 0.01f * (float)DeviceDisplay.MainDisplayInfo.Width * 5f);
|
|
|
|
|
card.Inflate(width, height);
|
|
|
|
|
|
|
|
|
|
canvas.DrawRoundRect(card, textPaint);
|
|
|
|
|
canvas.DrawText(display, 0, 0, textPaint);
|
|
|
|
|