Deploiement Playstore

master
cldupland 5 years ago
parent 79052b8169
commit 7db9d4ed54

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="20" android:versionName="5.6" package="com.uca.thegameextreme" android:installLocation="auto"> <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="21" android:versionName="5.7" package="com.uca.thegameextreme" android:installLocation="auto">
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="28" /> <uses-sdk android:minSdkVersion="19" android:targetSdkVersion="28" />
<application android:icon="@drawable/TrierImageB" android:label="OrderStacks"></application> <application android:icon="@drawable/TrierImageB" android:label="OrderStacks"></application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

@ -15,16 +15,12 @@ namespace TheGameExtreme.Droid.Services
public void LongAlert(string message) public void LongAlert(string message)
{ {
Toast toast = Toast.MakeText(Application.Context, message, ToastLength.Long); Toast.MakeText(Application.Context, message, ToastLength.Long).Show();
toast.SetGravity(GravityFlags.Center | GravityFlags.Center, 0, 0);
toast.Show();
} }
public void ShortAlert(string message) public void ShortAlert(string message)
{ {
Toast toast = Toast.MakeText(Application.Context, message, ToastLength.Short); Toast.MakeText(Application.Context, message, ToastLength.Short).Show();
toast.SetGravity(GravityFlags.Center | GravityFlags.Center, 0, 0);
toast.Show();
} }
} }
} }

@ -56,11 +56,6 @@ namespace TheGameExtreme.view
NavigationPage.SetHasNavigationBar(this, false); NavigationPage.SetHasNavigationBar(this, false);
if (Device.RuntimePlatform == Device.Android)
{
}
EndTurnButton.Text = AppResources.StrEndTurn; EndTurnButton.Text = AppResources.StrEndTurn;
viewmodel = new Main(this.playersNames, nbPile, nbCard, indexMode); viewmodel = new Main(this.playersNames, nbPile, nbCard, indexMode);
@ -285,7 +280,7 @@ namespace TheGameExtreme.view
float inflateWidth = 0.024f * (float)(DeviceDisplay.MainDisplayInfo.Width - 20); float inflateWidth = 0.024f * (float)(DeviceDisplay.MainDisplayInfo.Width - 20);
SKPoint position = new SKPoint((float)((DeviceDisplay.MainDisplayInfo.Width * 0.92f - 20f - inflateWidth * 2f) / (viewmodel.CurrentHand.Count * 2)) + (float)DeviceDisplay.MainDisplayInfo.Width * 0.04f + 10f, (float)((DeviceDisplay.MainDisplayInfo.Height * 0.85) - (DeviceDisplay.MainDisplayInfo.Height * 0.85) * 0.1 - 2 * (0.05f * (float)(DeviceDisplay.MainDisplayInfo.Width - 20) * textPaint.TextSize / textPaint.MeasureText("001")))); SKPoint position = new SKPoint((float)((DeviceDisplay.MainDisplayInfo.Width * 0.92f - 20f - inflateWidth * 2f) / (viewmodel.CurrentHand.Count * 2)) + (float)DeviceDisplay.MainDisplayInfo.Width * 0.04f + 10f, (float)((DeviceDisplay.MainDisplayInfo.Height * 0.85) * 0.5 - (0.05f * (float)(DeviceDisplay.MainDisplayInfo.Width - 20) * textPaint.TextSize / textPaint.MeasureText("001"))) + (float)((DeviceDisplay.MainDisplayInfo.Height * 0.1) + (DeviceDisplay.MainDisplayInfo.Height * 0.85) * 0.01 + 2 * (0.05f * (float)DeviceDisplay.MainDisplayInfo.Width * textPaint.TextSize / textPaint.MeasureText("001"))));
position.X -= inflateWidth; position.X -= inflateWidth;

@ -85,7 +85,7 @@ namespace TheGameExtreme.view
textPaint.Color = Color; textPaint.Color = Color;
textPaint.StrokeWidth = 5; textPaint.StrokeWidth = 5;
textPaint.Style = SKPaintStyle.Stroke; textPaint.Style = SKPaintStyle.StrokeAndFill;
SKRect card; 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); 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.Color = Color;
textPaint1.StrokeWidth = 5; textPaint1.StrokeWidth = 5;
textPaint1.Style = SKPaintStyle.Stroke; textPaint1.Style = SKPaintStyle.StrokeAndFill;
textPaint2.Color = Color; textPaint2.Color = Color;
textPaint2.StrokeWidth = 5; textPaint2.StrokeWidth = 5;
textPaint2.Style = SKPaintStyle.Stroke; textPaint2.Style = SKPaintStyle.StrokeAndFill;
} }
else else
{ {
@ -144,14 +144,18 @@ namespace TheGameExtreme.view
xDen -= textPaint2.MeasureText("-"); 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(((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(fractionBarre, -textPaint1.MeasureText("_") * 0.5f, -textPaint1.TextSize * 0.5f, textPaint1);
canvas.DrawText(((FractionCard)Value.View).Fraction.Denominateur.ToString(), xDen, height * 0.5f, textPaint2); canvas.DrawText(((FractionCard)Value.View).Fraction.Denominateur.ToString(), xDen, height * 0.5f, textPaint2);
} }
else else
{ {
canvas.DrawRect(card, textPaint); SKPaint paint = textPaint;
paint.Style = SKPaintStyle.Stroke;
canvas.DrawRect(card, paint);
canvas.DrawText(display, 0, 0, textPaint); canvas.DrawText(display, 0, 0, textPaint);
} }

Binary file not shown.
Loading…
Cancel
Save