@ -198,15 +198,7 @@ namespace TheGameExtreme.view
SKPaint textPaint = new SKPaint ( ) ;
SKPoint position = new SKPoint ( ( float ) ( ( DeviceDisplay . MainDisplayInfo . Width - 20 ) / ( viewmodel . getListOrderedStacks ( ) . Count * 2 ) ) + 10f , ( float ) ( ( DeviceDisplay . MainDisplayInfo . Height * 0.1 ) + ( DeviceDisplay . MainDisplayInfo . Height * 0.9 ) * 0.01 + 2 * ( 0.05f * ( float ) DeviceDisplay . MainDisplayInfo . Width * textPaint . TextSize / textPaint . MeasureText ( "001" ) ) ) ) ;
float inflateWidth ;
if ( indexMode = = 4 | | indexMode = = 3 )
{
inflateWidth = 0.03f * ( float ) ( DeviceDisplay . MainDisplayInfo . Width - 20 ) ;
}
else
{
inflateWidth = 0.02f * ( float ) ( DeviceDisplay . MainDisplayInfo . Width - 20 ) ;
}
float inflateWidth = 0.024f * ( float ) ( DeviceDisplay . MainDisplayInfo . Width - 20 ) ;
position . X - = inflateWidth ;
@ -219,13 +211,12 @@ namespace TheGameExtreme.view
{
string displayMax = Math . Pow ( 10 , ( ( FractionCard ) ( viewmodel . getListOrderedStacks ( ) [ i ] . Peek ( ) . View ) ) . Fraction . SizeMax - 1 ) . ToString ( ) ;
textWidth = textPaint . MeasureText ( displayMax ) ;
textPaint . TextSize = 0.048f * ( float ) ( DeviceDisplay . MainDisplayInfo . Width - 20 ) * textPaint . TextSize / textPaint . MeasureText ( displayMax ) ;
}
else
{
textWidth = textPaint . MeasureText ( "00" ) ;
textPaint . TextSize = 0.04f * ( float ) ( DeviceDisplay . MainDisplayInfo . Width - 20 ) * textPaint . TextSize / textPaint . MeasureText ( "00" ) ;
}
textPaint . TextSize = 0.03f * ( float ) ( DeviceDisplay . MainDisplayInfo . Width - 20 ) * textPaint . TextSize / textPaint . MeasureText ( "00" ) ;
position . X - = textWidth * 0.5f ;
stackCollection . Add ( new TouchManipulationCard ( textPaint , viewmodel . getListOrderedStacks ( ) [ i ] . Peek ( ) , inflateWidth )
@ -248,15 +239,7 @@ namespace TheGameExtreme.view
SKPaint textPaint = new SKPaint ( ) ;
SKPoint position = new SKPoint ( ( float ) ( ( DeviceDisplay . MainDisplayInfo . Width - 20 ) / ( viewmodel . CurrentHand . Count * 2 ) ) + 10f , ( float ) ( ( DeviceDisplay . MainDisplayInfo . Height * 0.9 ) - ( DeviceDisplay . MainDisplayInfo . Height * 0.9 ) * 0.1 - 2 * ( 0.05f * ( float ) ( DeviceDisplay . MainDisplayInfo . Width - 20 ) * textPaint . TextSize / textPaint . MeasureText ( "001" ) ) ) ) ;
float inflateWidth ;
if ( indexMode = = 4 | | indexMode = = 3 )
{
inflateWidth = 0.03f * ( float ) ( DeviceDisplay . MainDisplayInfo . Width - 20 ) ;
}
else
{
inflateWidth = 0.015f * ( float ) ( DeviceDisplay . MainDisplayInfo . Width - 20 ) ;
}
float inflateWidth = 0.024f * ( float ) ( DeviceDisplay . MainDisplayInfo . Width - 20 ) ;
position . X - = inflateWidth ;
@ -269,15 +252,14 @@ namespace TheGameExtreme.view
{
string displayMax = Math . Pow ( 10 , ( ( FractionCard ) ( viewmodel . CurrentHand [ i ] . View ) ) . Fraction . SizeMax - 1 ) . ToString ( ) ;
textWidth = textPaint . MeasureText ( displayMax ) ;
textPaint . TextSize = 0.048f * ( float ) ( DeviceDisplay . MainDisplayInfo . Width - 20 ) * textPaint . TextSize / textPaint . MeasureText ( displayMax ) ;
}
else
{
textWidth = textPaint . MeasureText ( "00" ) ;
textPaint . TextSize = 0.048f * ( float ) ( DeviceDisplay . MainDisplayInfo . Width - 20 ) * textPaint . TextSize / textPaint . MeasureText ( "00" ) ;
}
textPaint . TextSize = 0.03f * ( float ) ( DeviceDisplay . MainDisplayInfo . Width - 20 ) * textPaint . TextSize / textPaint . MeasureText ( "00" ) ;
position . X - = textWidth * 0.5f ;
textCollection . Add ( new TouchManipulationCard ( textPaint , viewmodel . CurrentHand [ i ] , inflateWidth )
{
Matrix = SKMatrix . MakeTranslation ( position . X , position . Y ) ,