Baptiste ARNAUD 6 years ago
parent b4d7095552
commit 1f8da6aff0

@ -9,7 +9,7 @@ using Android.OS;
namespace TheGameExtreme.Droid
{
[Activity(Label = "TheGameExtreme", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation, ScreenOrientation = ScreenOrientation.Landscape)]
[Activity(Label = "TheGameExtreme", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation, ScreenOrientation = ScreenOrientation.Landscape)]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
protected override void OnCreate(Bundle savedInstanceState)

@ -1,7 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.uca.thegameextreme">
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="1" android:versionName="1.0"
package="com.uca.thegameextreme"
android:installLocation="auto">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28" />
<application android:label="TheGameExtreme.Android" ></application>
<application android:label="TheGameExtreme.Android"
android:icon="@drawable/Apple"></application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest>

@ -5752,55 +5752,64 @@ namespace TheGameExtreme.Droid
public const int ic_mtrl_chip_close_circle = 2131165287;
// aapt resource value: 0x7F070068
public const int mtrl_snackbar_background = 2131165288;
public const int imagesRules = 2131165288;
// aapt resource value: 0x7F070069
public const int mtrl_tabs_default_indicator = 2131165289;
public const int mtrl_snackbar_background = 2131165289;
// aapt resource value: 0x7F07006A
public const int navigation_empty_icon = 2131165290;
public const int mtrl_tabs_default_indicator = 2131165290;
// aapt resource value: 0x7F07006B
public const int notification_action_background = 2131165291;
public const int navigation_empty_icon = 2131165291;
// aapt resource value: 0x7F07006C
public const int notification_bg = 2131165292;
public const int notification_action_background = 2131165292;
// aapt resource value: 0x7F07006D
public const int notification_bg_low = 2131165293;
public const int notification_bg = 2131165293;
// aapt resource value: 0x7F07006E
public const int notification_bg_low_normal = 2131165294;
public const int notification_bg_low = 2131165294;
// aapt resource value: 0x7F07006F
public const int notification_bg_low_pressed = 2131165295;
public const int notification_bg_low_normal = 2131165295;
// aapt resource value: 0x7F070070
public const int notification_bg_normal = 2131165296;
public const int notification_bg_low_pressed = 2131165296;
// aapt resource value: 0x7F070071
public const int notification_bg_normal_pressed = 2131165297;
public const int notification_bg_normal = 2131165297;
// aapt resource value: 0x7F070072
public const int notification_icon_background = 2131165298;
public const int notification_bg_normal_pressed = 2131165298;
// aapt resource value: 0x7F070073
public const int notification_template_icon_bg = 2131165299;
public const int notification_icon_background = 2131165299;
// aapt resource value: 0x7F070074
public const int notification_template_icon_low_bg = 2131165300;
public const int notification_template_icon_bg = 2131165300;
// aapt resource value: 0x7F070075
public const int notification_tile_bg = 2131165301;
public const int notification_template_icon_low_bg = 2131165301;
// aapt resource value: 0x7F070076
public const int notify_panel_notification_icon_bg = 2131165302;
public const int notification_tile_bg = 2131165302;
// aapt resource value: 0x7F070077
public const int tooltip_frame_dark = 2131165303;
public const int notify_panel_notification_icon_bg = 2131165303;
// aapt resource value: 0x7F070078
public const int tooltip_frame_light = 2131165304;
public const int rules = 2131165304;
// aapt resource value: 0x7F070079
public const int rulesImg = 2131165305;
// aapt resource value: 0x7F07007A
public const int tooltip_frame_dark = 2131165306;
// aapt resource value: 0x7F07007B
public const int tooltip_frame_light = 2131165307;
static Drawable()
{

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

@ -110,5 +110,14 @@
<ItemGroup>
<AndroidResource Include="Resources\drawable\EngrenageV1.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\rulesImg.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\rules.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\imagesRules.png" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
</Project>

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

@ -59,6 +59,12 @@
<CodesignKey>iPhone Developer</CodesignKey>
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
</PropertyGroup>
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Default' ">
<AppExtensionDebugBundleId />
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>Apple.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Compile Include="Main.cs" />
<Compile Include="AppDelegate.cs" />
@ -140,4 +146,13 @@
<ItemGroup>
<BundleResource Include="Resources\FontStyle\SIL Open Font License.txt" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\rulesImg.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\rules.png" />
</ItemGroup>
<ItemGroup>
<Content Include="Apple.ico" />
</ItemGroup>
</Project>

@ -159,6 +159,25 @@ namespace TheGameExtreme {
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à -L&apos;objectif est de battre le jeu !
///
///-99 cartes numérotés de 2 à 99.
///
///-4 piles sont à votre disposition, deux ascendantes et deux descendantes.
///
///-L&apos;objectif est de pourvoir poser toute les cartes de la pioches sur les différentes piles à votre disposition.
///
///-Si vous arrivé a vider toute la pioche et de poser tout les cartes sur les piles, vous gagné, sinon vous perdez.
///
///-Quelques suprise pourrait aussi vous surprendre..
/// </summary>
internal static string StrRules {
get {
return ResourceManager.GetString("StrRules", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à Désolé, vous n&apos;avez pas recouvert la tête de mort... Réessayez ;).
/// </summary>

@ -155,6 +155,19 @@
<data name="StrNoMoreCardOnHand" xml:space="preserve">
<value>Le joueur n'a plus de carte dans sa main</value>
</data>
<data name="StrRules" xml:space="preserve">
<value>-L'objectif est de battre le jeu !
-99 cartes numérotés de 2 à 99.
-4 piles sont à votre disposition, deux ascendantes et deux descendantes.
-L'objectif est de pourvoir poser toute les cartes de la pioches sur les différentes piles à votre disposition.
-Si vous arrivé a vider toute la pioche et de poser tout les cartes sur les piles, vous gagné, sinon vous perdez.
-Quelques suprise pourrait aussi vous surprendre.</value>
</data>
<data name="StrSkullEffect" xml:space="preserve">
<value>Désolé, vous n'avez pas recouvert la tête de mort... Réessayez ;)</value>
</data>

@ -38,9 +38,6 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>AppRessources-br.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="view\Rules.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
<EmbeddedResource Condition=" '$(EnableDefaultEmbeddedResourceItems)' == 'true' " Update="view\AppResources.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>AppResources.Designer.cs</LastGenOutput>

@ -1,9 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage
<ContentPage Title="THEGAME"
Style="{StaticResource Key=MyBackGroundColorStyle}"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="TheGameExtreme.view.HomePage">
x:Class="TheGameExtreme.view.HomePage"
BackgroundColor="{Binding UpdateSourceEventName=swTheme}">
<StackLayout BackgroundColor="Transparent">
<Grid>
@ -37,35 +38,44 @@
BackgroundColor="Transparent"
/>
<Button Text="Solo" Grid.Row="1" Grid.Column="1"
<Button Text="Solo" FontSize="18" Grid.Row="1" Grid.Column="1"
HorizontalOptions="Center"
WidthRequest="230"
HeightRequest="40"
HeightRequest="57"
VerticalOptions="Center"
Clicked="OpenGame"
CornerRadius="10"
Margin="20"/>
Margin="15"
BackgroundColor="White"/>
<Button Text="Multijoueur" Grid.Row="2" Grid.Column="1"
<Button Text="Multijoueur" FontSize="18" Grid.Row="2" Grid.Column="1"
HorizontalOptions="Center"
VerticalOptions="Center"
HeightRequest="40"
HeightRequest="57"
WidthRequest="230"
Clicked="OpenMultiPlayerMode"
CornerRadius="10"
Margin="20"
/>
Margin="15"
BackgroundColor="White"/>
<Button Text="Connexion en ligne" Grid.Row="3" Grid.Column="1"
<Button Text="Connexion en ligne" FontSize="16" Grid.Row="3" Grid.Column="1"
HorizontalOptions="Center"
VerticalOptions="Center"
WidthRequest="230"
HeightRequest="40"
HeightRequest="57"
CornerRadius="10"
Margin="20"/>
Margin="15"
BackgroundColor="White"/>
<ImageButton Source="imagesRules.png" Grid.Column="0"
Grid.Row="0"
HeightRequest="60"
WidthRequest="45"
VerticalOptions="CenterAndExpand"
HorizontalOptions="Start"
Margin="20"
Clicked="Rules_Clicked"/>
</Grid>
</StackLayout>

@ -7,15 +7,12 @@ namespace TheGameExtreme.view
{
public partial class HomePage : ContentPage
{
public HomePage()
{
InitializeComponent();
NavigationPage.SetHasNavigationBar(this, false);
}
private async void OpenGame(object sender, EventArgs args)
{
await Navigation.PushAsync(new MainPage());
@ -31,5 +28,10 @@ namespace TheGameExtreme.view
await Navigation.PushAsync(new Settings());
}
private async void Rules_Clicked(object sender, EventArgs e)
{
await DisplayAlert("Règles", AppRessource.StrRules, "let's go");
}
}
}

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="TheGameExtreme.Rules">
<ContentView.Content>
<StackLayout>
<Label Text="Hello Xamarin.Forms!" />
</StackLayout>
</ContentView.Content>
</ContentView>

@ -1,20 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace TheGameExtreme
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class Rules : ContentView
{
public Rules()
{
InitializeComponent();
}
}
}

@ -6,6 +6,7 @@ using Xamarin.Forms;
namespace TheGameExtreme.view
{
public partial class Settings : ContentPage
{
public Settings()
@ -42,8 +43,15 @@ namespace TheGameExtreme.view
lbColor2.Style = Application.Current.Resources["ColorLabelWhite"] as Style;
lbColor3.Style = Application.Current.Resources["ColorLabelWhite"] as Style;
lbColor4.Style = Application.Current.Resources["ColorLabelWhite"] as Style;
//ChangeBackGroundColorHomePage();
}
private void ChangeBackGroundColorHomePage()
{
}
private void Switch_Toggled_Theme(object sender, ToggledEventArgs e)
{
if (swTheme.IsToggled == true)

Loading…
Cancel
Save