|
|
|
@ -214,25 +214,24 @@ namespace TheGameExtreme.view
|
|
|
|
|
textPaint = new SKPaint();
|
|
|
|
|
float textWidth;
|
|
|
|
|
|
|
|
|
|
if (indexMode == 5)
|
|
|
|
|
if (indexMode == 2 || indexMode == 5)
|
|
|
|
|
{
|
|
|
|
|
textWidth = textPaint.MeasureText("00");
|
|
|
|
|
textPaint.TextSize = 0.04f * (float)DeviceDisplay.MainDisplayInfo.Width * textPaint.TextSize / textPaint.MeasureText("00");
|
|
|
|
|
}
|
|
|
|
|
else if (indexMode == 3)
|
|
|
|
|
{
|
|
|
|
|
textWidth = textPaint.MeasureText("000");
|
|
|
|
|
textPaint.TextSize = 0.04f * (float)DeviceDisplay.MainDisplayInfo.Width * textPaint.TextSize / textPaint.MeasureText("000");
|
|
|
|
|
}
|
|
|
|
|
else if (indexMode == 4)
|
|
|
|
|
{
|
|
|
|
|
textWidth = textPaint.MeasureText("0000");
|
|
|
|
|
textPaint.TextSize = 0.038f * (float)DeviceDisplay.MainDisplayInfo.Width * textPaint.TextSize / textPaint.MeasureText("0000");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (indexMode == 3)
|
|
|
|
|
{
|
|
|
|
|
textPaint.TextSize = 0.035f * (float)DeviceDisplay.MainDisplayInfo.Width * textPaint.TextSize / textPaint.MeasureText("00");
|
|
|
|
|
}
|
|
|
|
|
else if (indexMode == 4)
|
|
|
|
|
{
|
|
|
|
|
textPaint.TextSize = 0.025f * (float)DeviceDisplay.MainDisplayInfo.Width * textPaint.TextSize / textPaint.MeasureText("00");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
textPaint.TextSize = 0.04f * (float)DeviceDisplay.MainDisplayInfo.Width * textPaint.TextSize / textPaint.MeasureText("00");
|
|
|
|
|
}
|
|
|
|
|
textPaint.TextSize = 0.04f * (float)DeviceDisplay.MainDisplayInfo.Width * textPaint.TextSize / textPaint.MeasureText("00");
|
|
|
|
|
textWidth = textPaint.MeasureText(viewmodel.getListOrderedStacks()[i].Peek().Value.ToString());
|
|
|
|
|
}
|
|
|
|
|
position.X -= textWidth * 0.5f;
|
|
|
|
@ -272,25 +271,24 @@ namespace TheGameExtreme.view
|
|
|
|
|
textPaint = new SKPaint();
|
|
|
|
|
float textWidth;
|
|
|
|
|
|
|
|
|
|
if (indexMode == 5)
|
|
|
|
|
if (indexMode == 2 || indexMode == 5)
|
|
|
|
|
{
|
|
|
|
|
textWidth = textPaint.MeasureText("00");
|
|
|
|
|
textPaint.TextSize = 0.048f * (float)DeviceDisplay.MainDisplayInfo.Width * textPaint.TextSize / textPaint.MeasureText("00");
|
|
|
|
|
}
|
|
|
|
|
else if (indexMode == 3)
|
|
|
|
|
{
|
|
|
|
|
textWidth = textPaint.MeasureText("000");
|
|
|
|
|
textPaint.TextSize = 0.048f * (float)DeviceDisplay.MainDisplayInfo.Width * textPaint.TextSize / textPaint.MeasureText("000");
|
|
|
|
|
}
|
|
|
|
|
else if (indexMode == 4)
|
|
|
|
|
{
|
|
|
|
|
textWidth = textPaint.MeasureText("0000");
|
|
|
|
|
textPaint.TextSize = 0.038f * (float)DeviceDisplay.MainDisplayInfo.Width * textPaint.TextSize / textPaint.MeasureText("0000");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (indexMode == 3)
|
|
|
|
|
{
|
|
|
|
|
textPaint.TextSize = 0.038f * (float)DeviceDisplay.MainDisplayInfo.Width * textPaint.TextSize / textPaint.MeasureText("00");
|
|
|
|
|
}
|
|
|
|
|
else if (indexMode == 4)
|
|
|
|
|
{
|
|
|
|
|
textPaint.TextSize = 0.028f * (float)DeviceDisplay.MainDisplayInfo.Width * textPaint.TextSize / textPaint.MeasureText("00");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
textPaint.TextSize = 0.048f * (float)DeviceDisplay.MainDisplayInfo.Width * textPaint.TextSize / textPaint.MeasureText("00");
|
|
|
|
|
}
|
|
|
|
|
textPaint.TextSize = 0.048f * (float)DeviceDisplay.MainDisplayInfo.Width * textPaint.TextSize / textPaint.MeasureText("00");
|
|
|
|
|
textWidth = textPaint.MeasureText(viewmodel.CurrentHand[i].Value.ToString());
|
|
|
|
|
}
|
|
|
|
|
position.X -= textWidth * 0.5f;
|
|
|
|
|