@ -1,14 +1,14 @@
|
|||||||
<?xml version = "1.0" encoding = "UTF-8" ?>
|
<?xml version = "1.0" encoding = "UTF-8" ?>
|
||||||
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
xmlns:local="clr-namespace:mastermind"
|
xmlns:local="clr-namespace:mastermind"
|
||||||
x:Class="mastermind.App">
|
x:Class="MauiSpark.App">
|
||||||
<Application.Resources>
|
<Application.Resources>
|
||||||
<ResourceDictionary>
|
<ResourceDictionary>
|
||||||
<ResourceDictionary.MergedDictionaries>
|
<ResourceDictionary.MergedDictionaries>
|
||||||
<ResourceDictionary Source="Resources/Styles/Colors.xaml" />
|
<ResourceDictionary Source="Resources/Styles/Colors.xaml" />
|
||||||
<ResourceDictionary Source="Resources/Styles/Styles.xaml" />
|
<ResourceDictionary Source="Resources/Styles/Styles.xaml" />
|
||||||
</ResourceDictionary.MergedDictionaries>
|
</ResourceDictionary.MergedDictionaries>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
</Application.Resources>
|
</Application.Resources>
|
||||||
</Application>
|
</Application>
|
@ -1,43 +1,43 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<Shell
|
<Shell
|
||||||
x:Class="mastermind.AppShell"
|
x:Class="mastermind.AppShell"
|
||||||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
xmlns:local="clr-namespace:mastermind"
|
xmlns:local="clr-namespace:MauiSpark"
|
||||||
xmlns:pages="clr-namespace:mastermind.Pages"
|
xmlns:pages="clr-namespace:MauiSpark.Pages"
|
||||||
Shell.NavBarIsVisible="False"
|
Shell.NavBarIsVisible="False"
|
||||||
Shell.FlyoutBehavior="Flyout"
|
Shell.FlyoutBehavior="Flyout"
|
||||||
Title="mastermind">
|
Title="mastermind">
|
||||||
|
|
||||||
|
|
||||||
<ShellContent
|
<ShellContent
|
||||||
Title="TableauScore"
|
Title="TableauScore"
|
||||||
ContentTemplate="{DataTemplate pages:TableauScore}"
|
ContentTemplate="{DataTemplate pages:TableauScore}"
|
||||||
Route="Pages.TableauScore" />
|
Route="Pages.TableauScore" />
|
||||||
<ShellContent
|
<ShellContent
|
||||||
Title="Regle"
|
Title="Regle"
|
||||||
ContentTemplate="{DataTemplate pages:Regle}"
|
ContentTemplate="{DataTemplate pages:Regle}"
|
||||||
Route="Pages.Regle" />
|
Route="Pages.Regle" />
|
||||||
<ShellContent
|
<ShellContent
|
||||||
Title="Defaite"
|
Title="Defaite"
|
||||||
ContentTemplate="{DataTemplate pages:Defaite}"
|
ContentTemplate="{DataTemplate pages:Defaite}"
|
||||||
Route="Pages.Defaite" />
|
Route="Pages.Defaite" />
|
||||||
<ShellContent
|
<ShellContent
|
||||||
Title="Egaliter"
|
Title="Egaliter"
|
||||||
ContentTemplate="{DataTemplate pages:Egaliter}"
|
ContentTemplate="{DataTemplate pages:Egaliter}"
|
||||||
Route="Pages.Egaliter" />
|
Route="Pages.Egaliter" />
|
||||||
<ShellContent
|
<ShellContent
|
||||||
Title="Victoire"
|
Title="Victoire"
|
||||||
ContentTemplate="{DataTemplate pages:Victoire}"
|
ContentTemplate="{DataTemplate pages:Victoire}"
|
||||||
Route="Pages.Victoire" />
|
Route="Pages.Victoire" />
|
||||||
|
|
||||||
<ShellContent
|
<ShellContent
|
||||||
Title="Accueil"
|
Title="Accueil"
|
||||||
ContentTemplate="{DataTemplate pages:Accueil}"
|
ContentTemplate="{DataTemplate pages:Accueil}"
|
||||||
Route="pages:Accueil" />
|
Route="pages:Accueil" />
|
||||||
|
|
||||||
<ShellContent
|
<ShellContent
|
||||||
Title="Connexion"
|
Title="Connexion"
|
||||||
ContentTemplate="{DataTemplate pages:ConnexionPage}" />
|
ContentTemplate="{DataTemplate pages:ConnexionPage}" />
|
||||||
|
|
||||||
</Shell>
|
</Shell>
|
@ -1,53 +1,53 @@
|
|||||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
x:Class="mastermind.Pages.Accueil"
|
x:Class="mastermind.Pages.Accueil"
|
||||||
Title="Accueil">
|
Title="Accueil">
|
||||||
|
|
||||||
<Grid
|
<Grid
|
||||||
ColumnDefinitions="*"
|
ColumnDefinitions="*"
|
||||||
RowDefinitions="*, *, *, *">
|
RowDefinitions="*, *, *, *">
|
||||||
|
|
||||||
<Grid
|
<Grid
|
||||||
ColumnDefinitions="*"
|
ColumnDefinitions="*"
|
||||||
RowDefinitions="auto">
|
RowDefinitions="auto">
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
Style="{StaticResource AccueilBouton}"
|
Style="{StaticResource AccueilBouton}"
|
||||||
Source="pointinterrogation.png"
|
Source="pointinterrogation.png"
|
||||||
HorizontalOptions="End"
|
HorizontalOptions="End"
|
||||||
/>
|
/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Label
|
<Label
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Text="MASTERMIND"
|
Text="MASTERMIND"
|
||||||
FontSize="Header"
|
FontSize="Header"
|
||||||
HorizontalTextAlignment="Center"/>
|
HorizontalTextAlignment="Center"/>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
Text="Jouer"
|
Text="Jouer"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Grid
|
<Grid
|
||||||
Grid.Row="3"
|
Grid.Row="3"
|
||||||
VerticalOptions="End"
|
VerticalOptions="End"
|
||||||
ColumnDefinitions="*, *"
|
ColumnDefinitions="*, *"
|
||||||
RowDefinitions="auto">
|
RowDefinitions="auto">
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
Style="{StaticResource AccueilBouton}"
|
Style="{StaticResource AccueilBouton}"
|
||||||
Source="connexion.png"
|
Source="connexion.png"
|
||||||
HorizontalOptions="Start"
|
HorizontalOptions="Start"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
Style="{StaticResource AccueilBouton}"
|
Style="{StaticResource AccueilBouton}"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
HorizontalOptions="End"
|
HorizontalOptions="End"
|
||||||
Source="statistiques.png"
|
Source="statistiques.png"
|
||||||
/>
|
/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</ContentPage>
|
</ContentPage>
|
@ -1,9 +1,9 @@
|
|||||||
namespace mastermind.Pages;
|
namespace mastermind.Pages;
|
||||||
|
|
||||||
public partial class Accueil : ContentPage
|
public partial class Accueil : ContentPage
|
||||||
{
|
{
|
||||||
public Accueil()
|
public Accueil()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,31 +1,31 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
xmlns:Views="clr-namespace:mastermind.Views"
|
xmlns:Views="clr-namespace:mastermind.Views"
|
||||||
x:Class="mastermind.Pages.ConnexionPage"
|
x:Class="mastermind.Pages.ConnexionPage"
|
||||||
Title="Connexion">
|
Title="Connexion">
|
||||||
<Grid
|
<Grid
|
||||||
ColumnDefinitions="*"
|
ColumnDefinitions="*"
|
||||||
RowDefinitions="*, auto, *">
|
RowDefinitions="*, auto, *">
|
||||||
|
|
||||||
<Label
|
<Label
|
||||||
VerticalOptions="Center"
|
VerticalOptions="Center"
|
||||||
Text="JOUEURS"
|
Text="JOUEURS"
|
||||||
HorizontalOptions="Center"
|
HorizontalOptions="Center"
|
||||||
FontSize="Header"
|
FontSize="Header"
|
||||||
Margin="0, 0, 0, 50"/>
|
Margin="0, 0, 0, 50"/>
|
||||||
|
|
||||||
<VerticalStackLayout
|
<VerticalStackLayout
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
VerticalOptions="Center">
|
VerticalOptions="Center">
|
||||||
|
|
||||||
<Views:UsernameEntryView/>
|
<Views:UsernameEntryView/>
|
||||||
<Views:UsernameEntryView/>
|
<Views:UsernameEntryView/>
|
||||||
</VerticalStackLayout>
|
</VerticalStackLayout>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
VerticalOptions="Center"
|
VerticalOptions="Center"
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
Text="Se connecter"/>
|
Text="Se connecter"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</ContentPage>
|
</ContentPage>
|
@ -1,9 +1,9 @@
|
|||||||
namespace mastermind.Pages;
|
namespace mastermind.Pages;
|
||||||
|
|
||||||
public partial class ConnexionPage : ContentPage
|
public partial class ConnexionPage : ContentPage
|
||||||
{
|
{
|
||||||
public ConnexionPage()
|
public ConnexionPage()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,20 +1,20 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
x:Class="mastermind.Pages.Defaite"
|
x:Class="mastermind.Pages.Defaite"
|
||||||
xmlns:pages="clr-namespace:mastermind.Pages"
|
xmlns:pages="clr-namespace:mastermind.Pages"
|
||||||
Title="Defaite">
|
Title="Defaite">
|
||||||
<VerticalStackLayout >
|
<VerticalStackLayout >
|
||||||
<FlexLayout Direction="Row" JustifyContent="SpaceAround" AlignContent="Center" VerticalOptions="Center" Margin="10">
|
<FlexLayout Direction="Row" JustifyContent="SpaceAround" AlignContent="Center" VerticalOptions="Center" Margin="10">
|
||||||
<Image Source="defaite.png" MaximumHeightRequest="100" MaximumWidthRequest="100" />
|
<Image Source="defaite.png" MaximumHeightRequest="100" MaximumWidthRequest="100" />
|
||||||
<Frame HorizontalOptions="Center" VerticalOptions="Center" Style="{StaticResource FrameTitrePage}" >
|
<Frame HorizontalOptions="Center" VerticalOptions="Center" Style="{StaticResource FrameTitrePage}" >
|
||||||
<Label Text="Defaite" Style="{StaticResource TexteTitre}"/>
|
<Label Text="Defaite" Style="{StaticResource TexteTitre}"/>
|
||||||
</Frame>
|
</Frame>
|
||||||
<Image Source="defaite.png" MaximumHeightRequest="100" MaximumWidthRequest="100"/>
|
<Image Source="defaite.png" MaximumHeightRequest="100" MaximumWidthRequest="100"/>
|
||||||
</FlexLayout>
|
</FlexLayout>
|
||||||
<Frame Margin="20">
|
<Frame Margin="20">
|
||||||
<Label HorizontalOptions="Center" Text="Aucun des deux joueurs, Joueur 1 et Joueur 2 n'a trouvé le code secret" Style="{StaticResource TexteFrame}"/>
|
<Label HorizontalOptions="Center" Text="Aucun des deux joueurs, Joueur 1 et Joueur 2 n'a trouvé le code secret" Style="{StaticResource TexteFrame}"/>
|
||||||
</Frame>
|
</Frame>
|
||||||
<Button Text="Menu" VerticalOptions="End" HorizontalOptions="Center"></Button>
|
<Button Text="Menu" VerticalOptions="End" HorizontalOptions="Center"></Button>
|
||||||
</VerticalStackLayout>
|
</VerticalStackLayout>
|
||||||
</ContentPage>
|
</ContentPage>
|
@ -1,9 +1,9 @@
|
|||||||
namespace mastermind.Pages;
|
namespace mastermind.Pages;
|
||||||
|
|
||||||
public partial class Defaite : ContentPage
|
public partial class Defaite : ContentPage
|
||||||
{
|
{
|
||||||
public Defaite()
|
public Defaite()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,20 +1,20 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
x:Class="mastermind.Pages.Egaliter"
|
x:Class="mastermind.Pages.Egaliter"
|
||||||
xmlns:pages="clr-namespace:mastermind.Pages"
|
xmlns:pages="clr-namespace:mastermind.Pages"
|
||||||
Title="Egaliter">
|
Title="Egaliter">
|
||||||
<VerticalStackLayout>
|
<VerticalStackLayout>
|
||||||
<FlexLayout Direction="Row" JustifyContent="SpaceAround" AlignContent="Center" VerticalOptions="Center" Margin="10">
|
<FlexLayout Direction="Row" JustifyContent="SpaceAround" AlignContent="Center" VerticalOptions="Center" Margin="10">
|
||||||
<Image Source="egaliter.jpg" MaximumHeightRequest="100" MaximumWidthRequest="100" />
|
<Image Source="egaliter.jpg" MaximumHeightRequest="100" MaximumWidthRequest="100" />
|
||||||
<Frame HorizontalOptions="Center" VerticalOptions="Center" Style="{StaticResource FrameTitrePage}">
|
<Frame HorizontalOptions="Center" VerticalOptions="Center" Style="{StaticResource FrameTitrePage}">
|
||||||
<Label Text="Egaliter" Style="{StaticResource TexteTitre}"/>
|
<Label Text="Egaliter" Style="{StaticResource TexteTitre}"/>
|
||||||
</Frame>
|
</Frame>
|
||||||
<Image Source="egaliter.jpg" MaximumHeightRequest="100" MaximumWidthRequest="100"/>
|
<Image Source="egaliter.jpg" MaximumHeightRequest="100" MaximumWidthRequest="100"/>
|
||||||
</FlexLayout>
|
</FlexLayout>
|
||||||
<Frame Margin="20">
|
<Frame Margin="20">
|
||||||
<Label HorizontalOptions="Center" Text="Les deux joueur ont trouvé en même temps" Style="{StaticResource TexteFrame}"/>
|
<Label HorizontalOptions="Center" Text="Les deux joueur ont trouvé en même temps" Style="{StaticResource TexteFrame}"/>
|
||||||
</Frame>
|
</Frame>
|
||||||
<Button Text="Menu" VerticalOptions="End" HorizontalOptions="Center"></Button>
|
<Button Text="Menu" VerticalOptions="End" HorizontalOptions="Center"></Button>
|
||||||
</VerticalStackLayout>
|
</VerticalStackLayout>
|
||||||
</ContentPage>
|
</ContentPage>
|
@ -1,9 +1,9 @@
|
|||||||
namespace mastermind.Pages;
|
namespace mastermind.Pages;
|
||||||
|
|
||||||
public partial class Egaliter : ContentPage
|
public partial class Egaliter : ContentPage
|
||||||
{
|
{
|
||||||
public Egaliter()
|
public Egaliter()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,9 +1,9 @@
|
|||||||
namespace mastermind.Pages;
|
namespace mastermind.Pages;
|
||||||
|
|
||||||
public partial class Regle : ContentPage
|
public partial class Regle : ContentPage
|
||||||
{
|
{
|
||||||
public Regle()
|
public Regle()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,43 +1,43 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
xmlns:pages="clr-namespace:mastermind.Pages"
|
xmlns:pages="clr-namespace:mastermind.Pages"
|
||||||
xmlns:views="clr-namespace:mastermind.Views"
|
xmlns:views="clr-namespace:mastermind.Views"
|
||||||
x:Class="mastermind.Pages.TableauScore"
|
x:Class="mastermind.Pages.TableauScore"
|
||||||
Title="TableauScore">
|
Title="TableauScore">
|
||||||
<ScrollView>
|
<ScrollView>
|
||||||
<VerticalStackLayout>
|
<VerticalStackLayout>
|
||||||
<FlexLayout Direction="Row" JustifyContent="SpaceAround" AlignContent="Center" VerticalOptions="Center" >
|
<FlexLayout Direction="Row" JustifyContent="SpaceAround" AlignContent="Center" VerticalOptions="Center" >
|
||||||
<Image Source="star.png" WidthRequest="100" HorizontalOptions="End" VerticalOptions="Center" Margin="0,24,0,0"/>
|
<Image Source="star.png" WidthRequest="100" HorizontalOptions="End" VerticalOptions="Center" Margin="0,24,0,0"/>
|
||||||
<Frame CornerRadius="5" Margin="10" HorizontalOptions="Center" VerticalOptions="Center" Style="{StaticResource FrameTitrePage}" >
|
<Frame CornerRadius="5" Margin="10" HorizontalOptions="Center" VerticalOptions="Center" Style="{StaticResource FrameTitrePage}" >
|
||||||
<Label Text="Scoreboard" Style="{StaticResource TexteTitre}"/>
|
<Label Text="Scoreboard" Style="{StaticResource TexteTitre}"/>
|
||||||
</Frame>
|
</Frame>
|
||||||
<Grid RowDefinitions="auto,auto">
|
<Grid RowDefinitions="auto,auto">
|
||||||
<ImageButton Grid.Row="0" Style="{StaticResource ButtonFermeture}"/>
|
<ImageButton Grid.Row="0" Style="{StaticResource ButtonFermeture}"/>
|
||||||
<Image Grid.Row="1" Source="star.png" WidthRequest="100" HorizontalOptions="Start" VerticalOptions="Center" Margin="10"/>
|
<Image Grid.Row="1" Source="star.png" WidthRequest="100" HorizontalOptions="Start" VerticalOptions="Center" Margin="10"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</FlexLayout>
|
</FlexLayout>
|
||||||
<Frame Margin="20" >
|
<Frame Margin="20" >
|
||||||
<Grid ColumnDefinitions="auto,*,auto,auto" ColumnSpacing="10">
|
<Grid ColumnDefinitions="auto,*,auto,auto" ColumnSpacing="10">
|
||||||
<Button Margin="0,5,5,5" Grid.Column="0" Text="RANK" Style="{StaticResource ButtonTableau}"></Button>
|
<Button Margin="0,5,5,5" Grid.Column="0" Text="RANK" Style="{StaticResource ButtonTableau}"></Button>
|
||||||
<Button Margin="5" Grid.Column="1" Text="PSEUDO" Style="{StaticResource ButtonTableau}" HorizontalOptions="Start" ></Button>
|
<Button Margin="5" Grid.Column="1" Text="PSEUDO" Style="{StaticResource ButtonTableau}" HorizontalOptions="Start" ></Button>
|
||||||
<Button Margin="5" Grid.Column="2" Text="Nombre de coût Moyen" Style="{StaticResource ButtonTableau}"></Button>
|
<Button Margin="5" Grid.Column="2" Text="Nombre de coût Moyen" Style="{StaticResource ButtonTableau}"></Button>
|
||||||
<Button Margin="5" Grid.Column="3" Text="POINT" Style="{StaticResource ButtonTableau}"></Button>
|
<Button Margin="5" Grid.Column="3" Text="POINT" Style="{StaticResource ButtonTableau}"></Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Frame>
|
</Frame>
|
||||||
<views:CTableauScore/>
|
<views:CTableauScore/>
|
||||||
<views:CTableauScore/>
|
<views:CTableauScore/>
|
||||||
<views:CTableauScore/>
|
<views:CTableauScore/>
|
||||||
<views:CTableauScore/>
|
<views:CTableauScore/>
|
||||||
<views:CTableauScore/>
|
<views:CTableauScore/>
|
||||||
<views:CTableauScore/>
|
<views:CTableauScore/>
|
||||||
<views:CTableauScore/>
|
<views:CTableauScore/>
|
||||||
<views:CTableauScore/>
|
<views:CTableauScore/>
|
||||||
<views:CTableauScore/>
|
<views:CTableauScore/>
|
||||||
<views:CTableauScore/>
|
<views:CTableauScore/>
|
||||||
<views:CTableauScore/>
|
<views:CTableauScore/>
|
||||||
<views:CTableauScore/>
|
<views:CTableauScore/>
|
||||||
</VerticalStackLayout>
|
</VerticalStackLayout>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|
||||||
</ContentPage>
|
</ContentPage>
|
@ -1,20 +1,20 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
x:Class="mastermind.Pages.Victoire"
|
x:Class="mastermind.Pages.Victoire"
|
||||||
xmlns:pages="clr-namespace:mastermind.Pages"
|
xmlns:pages="clr-namespace:mastermind.Pages"
|
||||||
Title="Victoire">
|
Title="Victoire">
|
||||||
<VerticalStackLayout>
|
<VerticalStackLayout>
|
||||||
<FlexLayout Direction="Row" JustifyContent="SpaceAround" AlignContent="Center" VerticalOptions="Center" Margin="10">
|
<FlexLayout Direction="Row" JustifyContent="SpaceAround" AlignContent="Center" VerticalOptions="Center" Margin="10">
|
||||||
<Image Source="trophy.jpg" MaximumHeightRequest="100" MaximumWidthRequest="100" />
|
<Image Source="trophy.jpg" MaximumHeightRequest="100" MaximumWidthRequest="100" />
|
||||||
<Frame HorizontalOptions="Center" VerticalOptions="Center" Style="{StaticResource FrameTitrePage}">
|
<Frame HorizontalOptions="Center" VerticalOptions="Center" Style="{StaticResource FrameTitrePage}">
|
||||||
<Label Text="Victoire" Style="{StaticResource TexteTitre}"></Label>
|
<Label Text="Victoire" Style="{StaticResource TexteTitre}"></Label>
|
||||||
</Frame>
|
</Frame>
|
||||||
<Image Source="trophy.jpg" MaximumHeightRequest="100" MaximumWidthRequest="100"/>
|
<Image Source="trophy.jpg" MaximumHeightRequest="100" MaximumWidthRequest="100"/>
|
||||||
</FlexLayout>
|
</FlexLayout>
|
||||||
<Frame Margin="20" >
|
<Frame Margin="20" >
|
||||||
<Label HorizontalOptions="Center" Text="Le joueur x a gagné" Style="{StaticResource TexteFrame}"/>
|
<Label HorizontalOptions="Center" Text="Le joueur x a gagné" Style="{StaticResource TexteFrame}"/>
|
||||||
</Frame>
|
</Frame>
|
||||||
<Button Text="Menu" VerticalOptions="End" HorizontalOptions="Center"></Button>
|
<Button Text="Menu" VerticalOptions="End" HorizontalOptions="Center"></Button>
|
||||||
</VerticalStackLayout>
|
</VerticalStackLayout>
|
||||||
</ContentPage>
|
</ContentPage>
|
@ -1,9 +1,9 @@
|
|||||||
namespace mastermind.Pages;
|
namespace mastermind.Pages;
|
||||||
|
|
||||||
public partial class Victoire : ContentPage
|
public partial class Victoire : ContentPage
|
||||||
{
|
{
|
||||||
public Victoire()
|
public Victoire()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,9 +1,9 @@
|
|||||||
namespace mastermind.Pages;
|
namespace mastermind.Pages;
|
||||||
|
|
||||||
public partial class TableauScore : ContentPage
|
public partial class TableauScore : ContentPage
|
||||||
{
|
{
|
||||||
public TableauScore()
|
public TableauScore()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<color name="colorPrimary">#512BD4</color>
|
<color name="colorPrimary">#512BD4</color>
|
||||||
<color name="colorPrimaryDark">#2B0B98</color>
|
<color name="colorPrimaryDark">#2B0B98</color>
|
||||||
<color name="colorAccent">#2B0B98</color>
|
<color name="colorAccent">#2B0B98</color>
|
||||||
</resources>
|
</resources>
|
@ -1,14 +1,14 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<!-- See https://aka.ms/maui-publish-app-store#add-entitlements for more information about adding entitlements.-->
|
<!-- See https://aka.ms/maui-publish-app-store#add-entitlements for more information about adding entitlements.-->
|
||||||
<dict>
|
<dict>
|
||||||
<!-- App Sandbox must be enabled to distribute a MacCatalyst app through the Mac App Store. -->
|
<!-- App Sandbox must be enabled to distribute a MacCatalyst app through the Mac App Store. -->
|
||||||
<key>com.apple.security.app-sandbox</key>
|
<key>com.apple.security.app-sandbox</key>
|
||||||
<true/>
|
<true/>
|
||||||
<!-- When App Sandbox is enabled, this value is required to open outgoing network connections. -->
|
<!-- When App Sandbox is enabled, this value is required to open outgoing network connections. -->
|
||||||
<key>com.apple.security.network.client</key>
|
<key>com.apple.security.network.client</key>
|
||||||
<true/>
|
<true/>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
@ -1,38 +1,38 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<!-- The Mac App Store requires you specify if the app uses encryption. -->
|
<!-- The Mac App Store requires you specify if the app uses encryption. -->
|
||||||
<!-- Please consult https://developer.apple.com/documentation/bundleresources/information_property_list/itsappusesnonexemptencryption -->
|
<!-- Please consult https://developer.apple.com/documentation/bundleresources/information_property_list/itsappusesnonexemptencryption -->
|
||||||
<!-- <key>ITSAppUsesNonExemptEncryption</key> -->
|
<!-- <key>ITSAppUsesNonExemptEncryption</key> -->
|
||||||
<!-- Please indicate <true/> or <false/> here. -->
|
<!-- Please indicate <true/> or <false/> here. -->
|
||||||
|
|
||||||
<!-- Specify the category for your app here. -->
|
<!-- Specify the category for your app here. -->
|
||||||
<!-- Please consult https://developer.apple.com/documentation/bundleresources/information_property_list/lsapplicationcategorytype -->
|
<!-- Please consult https://developer.apple.com/documentation/bundleresources/information_property_list/lsapplicationcategorytype -->
|
||||||
<!-- <key>LSApplicationCategoryType</key> -->
|
<!-- <key>LSApplicationCategoryType</key> -->
|
||||||
<!-- <string>public.app-category.YOUR-CATEGORY-HERE</string> -->
|
<!-- <string>public.app-category.YOUR-CATEGORY-HERE</string> -->
|
||||||
<key>UIDeviceFamily</key>
|
<key>UIDeviceFamily</key>
|
||||||
<array>
|
<array>
|
||||||
<integer>2</integer>
|
<integer>2</integer>
|
||||||
</array>
|
</array>
|
||||||
<key>UIRequiredDeviceCapabilities</key>
|
<key>UIRequiredDeviceCapabilities</key>
|
||||||
<array>
|
<array>
|
||||||
<string>arm64</string>
|
<string>arm64</string>
|
||||||
</array>
|
</array>
|
||||||
<key>UISupportedInterfaceOrientations</key>
|
<key>UISupportedInterfaceOrientations</key>
|
||||||
<array>
|
<array>
|
||||||
<string>UIInterfaceOrientationPortrait</string>
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
</array>
|
</array>
|
||||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||||
<array>
|
<array>
|
||||||
<string>UIInterfaceOrientationPortrait</string>
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
</array>
|
</array>
|
||||||
<key>XSAppIconAssets</key>
|
<key>XSAppIconAssets</key>
|
||||||
<string>Assets.xcassets/appicon.appiconset</string>
|
<string>Assets.xcassets/appicon.appiconset</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
@ -1,17 +1,17 @@
|
|||||||
using Microsoft.Maui;
|
using Microsoft.Maui;
|
||||||
using Microsoft.Maui.Hosting;
|
using Microsoft.Maui.Hosting;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace mastermind
|
namespace mastermind
|
||||||
{
|
{
|
||||||
internal class Program : MauiApplication
|
internal class Program : MauiApplication
|
||||||
{
|
{
|
||||||
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
|
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
|
||||||
|
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
var app = new Program();
|
var app = new Program();
|
||||||
app.Run(args);
|
app.Run(args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,8 +1,8 @@
|
|||||||
<maui:MauiWinUIApplication
|
<maui:MauiWinUIApplication
|
||||||
x:Class="mastermind.WinUI.App"
|
x:Class="mastermind.WinUI.App"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:maui="using:Microsoft.Maui"
|
xmlns:maui="using:Microsoft.Maui"
|
||||||
xmlns:local="using:mastermind.WinUI">
|
xmlns:local="using:mastermind.WinUI">
|
||||||
|
|
||||||
</maui:MauiWinUIApplication>
|
</maui:MauiWinUIApplication>
|
@ -1,46 +1,46 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Package
|
<Package
|
||||||
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
|
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
|
||||||
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
|
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
|
||||||
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
|
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
|
||||||
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
|
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
|
||||||
IgnorableNamespaces="uap rescap">
|
IgnorableNamespaces="uap rescap">
|
||||||
|
|
||||||
<Identity Name="maui-package-name-placeholder" Publisher="CN=User Name" Version="0.0.0.0" />
|
<Identity Name="maui-package-name-placeholder" Publisher="CN=User Name" Version="0.0.0.0" />
|
||||||
|
|
||||||
<mp:PhoneIdentity PhoneProductId="8382CC0C-B479-4409-8C7A-400B666C63FE" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
|
<mp:PhoneIdentity PhoneProductId="8382CC0C-B479-4409-8C7A-400B666C63FE" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
|
||||||
|
|
||||||
<Properties>
|
<Properties>
|
||||||
<DisplayName>$placeholder$</DisplayName>
|
<DisplayName>$placeholder$</DisplayName>
|
||||||
<PublisherDisplayName>User Name</PublisherDisplayName>
|
<PublisherDisplayName>User Name</PublisherDisplayName>
|
||||||
<Logo>$placeholder$.png</Logo>
|
<Logo>$placeholder$.png</Logo>
|
||||||
</Properties>
|
</Properties>
|
||||||
|
|
||||||
<Dependencies>
|
<Dependencies>
|
||||||
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
|
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
|
||||||
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
|
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
|
||||||
</Dependencies>
|
</Dependencies>
|
||||||
|
|
||||||
<Resources>
|
<Resources>
|
||||||
<Resource Language="x-generate" />
|
<Resource Language="x-generate" />
|
||||||
</Resources>
|
</Resources>
|
||||||
|
|
||||||
<Applications>
|
<Applications>
|
||||||
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="$targetentrypoint$">
|
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="$targetentrypoint$">
|
||||||
<uap:VisualElements
|
<uap:VisualElements
|
||||||
DisplayName="$placeholder$"
|
DisplayName="$placeholder$"
|
||||||
Description="$placeholder$"
|
Description="$placeholder$"
|
||||||
Square150x150Logo="$placeholder$.png"
|
Square150x150Logo="$placeholder$.png"
|
||||||
Square44x44Logo="$placeholder$.png"
|
Square44x44Logo="$placeholder$.png"
|
||||||
BackgroundColor="transparent">
|
BackgroundColor="transparent">
|
||||||
<uap:DefaultTile Square71x71Logo="$placeholder$.png" Wide310x150Logo="$placeholder$.png" Square310x310Logo="$placeholder$.png" />
|
<uap:DefaultTile Square71x71Logo="$placeholder$.png" Wide310x150Logo="$placeholder$.png" Square310x310Logo="$placeholder$.png" />
|
||||||
<uap:SplashScreen Image="$placeholder$.png" />
|
<uap:SplashScreen Image="$placeholder$.png" />
|
||||||
</uap:VisualElements>
|
</uap:VisualElements>
|
||||||
</Application>
|
</Application>
|
||||||
</Applications>
|
</Applications>
|
||||||
|
|
||||||
<Capabilities>
|
<Capabilities>
|
||||||
<rescap:Capability Name="runFullTrust" />
|
<rescap:Capability Name="runFullTrust" />
|
||||||
</Capabilities>
|
</Capabilities>
|
||||||
|
|
||||||
</Package>
|
</Package>
|
@ -1,15 +1,15 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
|
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
<assemblyIdentity version="1.0.0.0" name="mastermind.WinUI.app"/>
|
<assemblyIdentity version="1.0.0.0" name="mastermind.WinUI.app"/>
|
||||||
|
|
||||||
<application xmlns="urn:schemas-microsoft-com:asm.v3">
|
<application xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||||
<windowsSettings>
|
<windowsSettings>
|
||||||
<!-- The combination of below two tags have the following effect:
|
<!-- The combination of below two tags have the following effect:
|
||||||
1) Per-Monitor for >= Windows 10 Anniversary Update
|
1) Per-Monitor for >= Windows 10 Anniversary Update
|
||||||
2) System < Windows 10 Anniversary Update
|
2) System < Windows 10 Anniversary Update
|
||||||
-->
|
-->
|
||||||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware>
|
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware>
|
||||||
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
|
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
|
||||||
</windowsSettings>
|
</windowsSettings>
|
||||||
</application>
|
</application>
|
||||||
</assembly>
|
</assembly>
|
@ -1,32 +1,32 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>UIDeviceFamily</key>
|
<key>UIDeviceFamily</key>
|
||||||
<array>
|
<array>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<integer>2</integer>
|
<integer>2</integer>
|
||||||
</array>
|
</array>
|
||||||
<key>UIRequiredDeviceCapabilities</key>
|
<key>UIRequiredDeviceCapabilities</key>
|
||||||
<array>
|
<array>
|
||||||
<string>arm64</string>
|
<string>arm64</string>
|
||||||
</array>
|
</array>
|
||||||
<key>UISupportedInterfaceOrientations</key>
|
<key>UISupportedInterfaceOrientations</key>
|
||||||
<array>
|
<array>
|
||||||
<string>UIInterfaceOrientationPortrait</string>
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
</array>
|
</array>
|
||||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||||
<array>
|
<array>
|
||||||
<string>UIInterfaceOrientationPortrait</string>
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
</array>
|
</array>
|
||||||
<key>XSAppIconAssets</key>
|
<key>XSAppIconAssets</key>
|
||||||
<string>Assets.xcassets/appicon.appiconset</string>
|
<string>Assets.xcassets/appicon.appiconset</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"profiles": {
|
"profiles": {
|
||||||
"Windows Machine": {
|
"Windows Machine": {
|
||||||
"commandName": "MsixPackage",
|
"commandName": "MsixPackage",
|
||||||
"nativeDebugging": false
|
"nativeDebugging": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Before Width: | Height: | Size: 231 B After Width: | Height: | Size: 228 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 265 KiB After Width: | Height: | Size: 265 KiB |
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 100 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 3.0 MiB After Width: | Height: | Size: 3.0 MiB |
Before Width: | Height: | Size: 1.7 MiB After Width: | Height: | Size: 1.7 MiB |
@ -1,15 +1,15 @@
|
|||||||
Any raw assets you want to be deployed with your application can be placed in
|
Any raw assets you want to be deployed with your application can be placed in
|
||||||
this directory (and child directories). Deployment of the asset to your application
|
this directory (and child directories). Deployment of the asset to your application
|
||||||
is automatically handled by the following `MauiAsset` Build Action within your `.csproj`.
|
is automatically handled by the following `MauiAsset` Build Action within your `.csproj`.
|
||||||
|
|
||||||
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
|
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
|
||||||
|
|
||||||
These files will be deployed with you package and will be accessible using Essentials:
|
These files will be deployed with you package and will be accessible using Essentials:
|
||||||
|
|
||||||
async Task LoadMauiAsset()
|
async Task LoadMauiAsset()
|
||||||
{
|
{
|
||||||
using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt");
|
using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt");
|
||||||
using var reader = new StreamReader(stream);
|
using var reader = new StreamReader(stream);
|
||||||
|
|
||||||
var contents = reader.ReadToEnd();
|
var contents = reader.ReadToEnd();
|
||||||
}
|
}
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
@ -1,60 +1,60 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<?xaml-comp compile="true" ?>
|
<?xaml-comp compile="true" ?>
|
||||||
<ResourceDictionary
|
<ResourceDictionary
|
||||||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
|
||||||
|
|
||||||
<!-- Note: For Android please see also Platforms\Android\Resources\values\colors.xml -->
|
<!-- Note: For Android please see also Platforms\Android\Resources\values\colors.xml -->
|
||||||
|
|
||||||
<Color x:Key="Primary">#512BD4</Color>
|
<Color x:Key="Primary">#512BD4</Color>
|
||||||
<Color x:Key="PrimaryDark">#ac99ea</Color>
|
<Color x:Key="PrimaryDark">#ac99ea</Color>
|
||||||
<Color x:Key="PrimaryDarkText">#242424</Color>
|
<Color x:Key="PrimaryDarkText">#242424</Color>
|
||||||
<Color x:Key="Secondary">#DFD8F7</Color>
|
<Color x:Key="Secondary">#DFD8F7</Color>
|
||||||
<Color x:Key="SecondaryDarkText">#9880e5</Color>
|
<Color x:Key="SecondaryDarkText">#9880e5</Color>
|
||||||
<Color x:Key="Tertiary">#2B0B98</Color>
|
<Color x:Key="Tertiary">#2B0B98</Color>
|
||||||
|
|
||||||
<Color x:Key="White">White</Color>
|
<Color x:Key="White">White</Color>
|
||||||
<Color x:Key="Black">Black</Color>
|
<Color x:Key="Black">Black</Color>
|
||||||
<Color x:Key="Magenta">#D600AA</Color>
|
<Color x:Key="Magenta">#D600AA</Color>
|
||||||
<Color x:Key="MidnightBlue">#190649</Color>
|
<Color x:Key="MidnightBlue">#190649</Color>
|
||||||
<Color x:Key="OffBlack">#1f1f1f</Color>
|
<Color x:Key="OffBlack">#1f1f1f</Color>
|
||||||
|
|
||||||
<Color x:Key="Poussin">#FAEEA1</Color>
|
<Color x:Key="Poussin">#FAEEA1</Color>
|
||||||
<Color x:Key="Raisin">#2F0E36</Color>
|
<Color x:Key="Raisin">#2F0E36</Color>
|
||||||
<Color x:Key="Vin">#A90237</Color>
|
<Color x:Key="Vin">#A90237</Color>
|
||||||
<Color x:Key="Pomme">#71E26D</Color>
|
<Color x:Key="Pomme">#71E26D</Color>
|
||||||
<Color x:Key="Diego">#060270</Color>
|
<Color x:Key="Diego">#060270</Color>
|
||||||
<Color x:Key="Perry">#358F92</Color>
|
<Color x:Key="Perry">#358F92</Color>
|
||||||
<Color x:Key="Bordeaux">#662323</Color>
|
<Color x:Key="Bordeaux">#662323</Color>
|
||||||
<Color x:Key="Peche">#F2B861</Color>
|
<Color x:Key="Peche">#F2B861</Color>
|
||||||
<Color x:Key="LightSaumon">#E3A79F</Color>
|
<Color x:Key="LightSaumon">#E3A79F</Color>
|
||||||
<Color x:Key="DarkRed">#72170B</Color>
|
<Color x:Key="DarkRed">#72170B</Color>
|
||||||
<Color x:Key="LightPurple">#C875A4</Color>
|
<Color x:Key="LightPurple">#C875A4</Color>
|
||||||
<Color x:Key="LightYellow">#F0C67B</Color>
|
<Color x:Key="LightYellow">#F0C67B</Color>
|
||||||
<Color x:Key="DarkPurple">#622E72</Color>
|
<Color x:Key="DarkPurple">#622E72</Color>
|
||||||
<Color x:Key="LightRed">#F93A3A</Color>
|
<Color x:Key="LightRed">#F93A3A</Color>
|
||||||
|
|
||||||
<Color x:Key="Gray100">#E1E1E1</Color>
|
<Color x:Key="Gray100">#E1E1E1</Color>
|
||||||
<Color x:Key="Gray200">#C8C8C8</Color>
|
<Color x:Key="Gray200">#C8C8C8</Color>
|
||||||
<Color x:Key="Gray300">#ACACAC</Color>
|
<Color x:Key="Gray300">#ACACAC</Color>
|
||||||
<Color x:Key="Gray400">#919191</Color>
|
<Color x:Key="Gray400">#919191</Color>
|
||||||
<Color x:Key="Gray500">#6E6E6E</Color>
|
<Color x:Key="Gray500">#6E6E6E</Color>
|
||||||
<Color x:Key="Gray600">#404040</Color>
|
<Color x:Key="Gray600">#404040</Color>
|
||||||
<Color x:Key="Gray900">#212121</Color>
|
<Color x:Key="Gray900">#212121</Color>
|
||||||
<Color x:Key="Gray950">#141414</Color>
|
<Color x:Key="Gray950">#141414</Color>
|
||||||
|
|
||||||
<SolidColorBrush x:Key="PrimaryBrush" Color="{StaticResource Primary}"/>
|
<SolidColorBrush x:Key="PrimaryBrush" Color="{StaticResource Primary}"/>
|
||||||
<SolidColorBrush x:Key="SecondaryBrush" Color="{StaticResource Secondary}"/>
|
<SolidColorBrush x:Key="SecondaryBrush" Color="{StaticResource Secondary}"/>
|
||||||
<SolidColorBrush x:Key="TertiaryBrush" Color="{StaticResource Tertiary}"/>
|
<SolidColorBrush x:Key="TertiaryBrush" Color="{StaticResource Tertiary}"/>
|
||||||
<SolidColorBrush x:Key="WhiteBrush" Color="{StaticResource White}"/>
|
<SolidColorBrush x:Key="WhiteBrush" Color="{StaticResource White}"/>
|
||||||
<SolidColorBrush x:Key="BlackBrush" Color="{StaticResource Black}"/>
|
<SolidColorBrush x:Key="BlackBrush" Color="{StaticResource Black}"/>
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Gray100Brush" Color="{StaticResource Gray100}"/>
|
<SolidColorBrush x:Key="Gray100Brush" Color="{StaticResource Gray100}"/>
|
||||||
<SolidColorBrush x:Key="Gray200Brush" Color="{StaticResource Gray200}"/>
|
<SolidColorBrush x:Key="Gray200Brush" Color="{StaticResource Gray200}"/>
|
||||||
<SolidColorBrush x:Key="Gray300Brush" Color="{StaticResource Gray300}"/>
|
<SolidColorBrush x:Key="Gray300Brush" Color="{StaticResource Gray300}"/>
|
||||||
<SolidColorBrush x:Key="Gray400Brush" Color="{StaticResource Gray400}"/>
|
<SolidColorBrush x:Key="Gray400Brush" Color="{StaticResource Gray400}"/>
|
||||||
<SolidColorBrush x:Key="Gray500Brush" Color="{StaticResource Gray500}"/>
|
<SolidColorBrush x:Key="Gray500Brush" Color="{StaticResource Gray500}"/>
|
||||||
<SolidColorBrush x:Key="Gray600Brush" Color="{StaticResource Gray600}"/>
|
<SolidColorBrush x:Key="Gray600Brush" Color="{StaticResource Gray600}"/>
|
||||||
<SolidColorBrush x:Key="Gray900Brush" Color="{StaticResource Gray900}"/>
|
<SolidColorBrush x:Key="Gray900Brush" Color="{StaticResource Gray900}"/>
|
||||||
<SolidColorBrush x:Key="Gray950Brush" Color="{StaticResource Gray950}"/>
|
<SolidColorBrush x:Key="Gray950Brush" Color="{StaticResource Gray950}"/>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
@ -1,84 +1,84 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<?xaml-comp compile="true" ?>
|
<?xaml-comp compile="true" ?>
|
||||||
<ResourceDictionary
|
<ResourceDictionary
|
||||||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
|
||||||
|
|
||||||
<Style TargetType="Page" ApplyToDerivedTypes="True">
|
<Style TargetType="Page" ApplyToDerivedTypes="True">
|
||||||
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource Poussin}, Dark={StaticResource Raisin}}"/>
|
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource Poussin}, Dark={StaticResource Raisin}}"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style TargetType="Label">
|
<Style TargetType="Label">
|
||||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Vin}, Dark={StaticResource Perry}}"/>
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Vin}, Dark={StaticResource Perry}}"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style TargetType="Label" x:Key="TexteFrame">
|
<Style TargetType="Label" x:Key="TexteFrame">
|
||||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource DarkRed}}"/>
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource DarkRed}}"/>
|
||||||
<Setter Property="FontSize" Value="20"/>
|
<Setter Property="FontSize" Value="20"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style TargetType="Label" x:Key="TexteTitre">
|
<Style TargetType="Label" x:Key="TexteTitre">
|
||||||
<Setter Property="FontSize" Value="70"/>
|
<Setter Property="FontSize" Value="70"/>
|
||||||
<Setter Property="HorizontalOptions" Value="Center"/>
|
<Setter Property="HorizontalOptions" Value="Center"/>
|
||||||
<Setter Property="Margin" Value="0,10,0,10"/>
|
<Setter Property="Margin" Value="0,10,0,10"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style TargetType="Button">
|
<Style TargetType="Button">
|
||||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Diego}, Dark={StaticResource Peche}}"/>
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Diego}, Dark={StaticResource Peche}}"/>
|
||||||
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource Pomme}, Dark={StaticResource Bordeaux}}" />
|
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource Pomme}, Dark={StaticResource Bordeaux}}" />
|
||||||
<Setter Property="FontSize" Value="Large"/>
|
<Setter Property="FontSize" Value="Large"/>
|
||||||
<Setter Property="HeightRequest" Value="80"/>
|
<Setter Property="HeightRequest" Value="80"/>
|
||||||
<Setter Property="Margin" Value="200, 0"/>
|
<Setter Property="Margin" Value="200, 0"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style TargetType="Frame">
|
<Style TargetType="Frame">
|
||||||
<Setter Property="BorderColor" Value="Black"/>
|
<Setter Property="BorderColor" Value="Black"/>
|
||||||
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource LightSaumon}, Dark={StaticResource LightPurple}}"/>
|
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource LightSaumon}, Dark={StaticResource LightPurple}}"/>
|
||||||
</Style>
|
</Style>
|
||||||
<Style TargetType="Entry">
|
<Style TargetType="Entry">
|
||||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Diego}, Dark={StaticResource Peche}}"/>
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Diego}, Dark={StaticResource Peche}}"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style TargetType="Button" x:Key="AccueilBouton">
|
<Style TargetType="Button" x:Key="AccueilBouton">
|
||||||
<Setter Property="HeightRequest" Value="150" />
|
<Setter Property="HeightRequest" Value="150" />
|
||||||
<Setter Property="WidthRequest" Value="150" />
|
<Setter Property="WidthRequest" Value="150" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style TargetType="Frame" x:Key="FrameTitrePage">
|
<Style TargetType="Frame" x:Key="FrameTitrePage">
|
||||||
<Setter Property="BorderColor" Value="Black"/>
|
<Setter Property="BorderColor" Value="Black"/>
|
||||||
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource LightYellow}, Dark={StaticResource DarkPurple}}"/>
|
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource LightYellow}, Dark={StaticResource DarkPurple}}"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style TargetType="ImageButton">
|
<Style TargetType="ImageButton">
|
||||||
<Setter Property="BackgroundColor" Value="Transparent"/>
|
<Setter Property="BackgroundColor" Value="Transparent"/>
|
||||||
<Setter Property="BorderWidth" Value="0" />
|
<Setter Property="BorderWidth" Value="0" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
|
|
||||||
<Style TargetType="ImageButton" x:Key="ButtonFermeture">
|
<Style TargetType="ImageButton" x:Key="ButtonFermeture">
|
||||||
<Setter Property="WidthRequest" Value="50"/>
|
<Setter Property="WidthRequest" Value="50"/>
|
||||||
<Setter Property="HeightRequest" Value="50"/>
|
<Setter Property="HeightRequest" Value="50"/>
|
||||||
<Setter Property="Source" Value="Fleche_Retour.png"/>
|
<Setter Property="Source" Value="Fleche_Retour.png"/>
|
||||||
<Setter Property="Padding" Value="0"/>
|
<Setter Property="Padding" Value="0"/>
|
||||||
<Setter Property="Margin" Value="5"/>
|
<Setter Property="Margin" Value="5"/>
|
||||||
<Setter Property="BorderWidth" Value="0"/>
|
<Setter Property="BorderWidth" Value="0"/>
|
||||||
<Setter Property="CornerRadius" Value="8"/>
|
<Setter Property="CornerRadius" Value="8"/>
|
||||||
<Setter Property="Padding" Value="14,10"/>
|
<Setter Property="Padding" Value="14,10"/>
|
||||||
<Setter Property="MinimumHeightRequest" Value="20"/>
|
<Setter Property="MinimumHeightRequest" Value="20"/>
|
||||||
<Setter Property="MinimumWidthRequest" Value="20"/>
|
<Setter Property="MinimumWidthRequest" Value="20"/>
|
||||||
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource LightRed}, Dark={StaticResource DarkRed}}"/>
|
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource LightRed}, Dark={StaticResource DarkRed}}"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style TargetType="Button" x:Key="ButtonTableau">
|
<Style TargetType="Button" x:Key="ButtonTableau">
|
||||||
<Setter Property="BackgroundColor" Value="Transparent"/>
|
<Setter Property="BackgroundColor" Value="Transparent"/>
|
||||||
<Setter Property="BorderWidth" Value="0"/>
|
<Setter Property="BorderWidth" Value="0"/>
|
||||||
<Setter Property="CornerRadius" Value="8"/>
|
<Setter Property="CornerRadius" Value="8"/>
|
||||||
<Setter Property="Padding" Value="0"/>
|
<Setter Property="Padding" Value="0"/>
|
||||||
<Setter Property="MinimumHeightRequest" Value="44"/>
|
<Setter Property="MinimumHeightRequest" Value="44"/>
|
||||||
<Setter Property="MinimumWidthRequest" Value="44"/>
|
<Setter Property="MinimumWidthRequest" Value="44"/>
|
||||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource DarkRed}}"/>
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource DarkRed}}"/>
|
||||||
<Setter Property="FontSize" Value="25"/>
|
<Setter Property="FontSize" Value="25"/>
|
||||||
|
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
|
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
@ -1,24 +1,24 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
x:Class="mastermind.Views.UsernameEntryView">
|
x:Class="mastermind.Views.UsernameEntryView">
|
||||||
|
|
||||||
<Grid
|
<Grid
|
||||||
Margin="0, 50"
|
Margin="0, 50"
|
||||||
ColumnDefinitions="auto, *, 8*, *"
|
ColumnDefinitions="auto, *, 8*, *"
|
||||||
RowDefinitions="auto">
|
RowDefinitions="auto">
|
||||||
|
|
||||||
<Label
|
<Label
|
||||||
Text="Joueur X"
|
Text="Joueur X"
|
||||||
FontSize="Large"
|
FontSize="Large"
|
||||||
Margin="50, 0, 0, 0"
|
Margin="50, 0, 0, 0"
|
||||||
VerticalOptions="Center"
|
VerticalOptions="Center"
|
||||||
HorizontalOptions="Center"/>
|
HorizontalOptions="Center"/>
|
||||||
|
|
||||||
<Entry
|
<Entry
|
||||||
Grid.Column="2"
|
Grid.Column="2"
|
||||||
FontSize="Medium"
|
FontSize="Medium"
|
||||||
Margin="50, 0"/>
|
Margin="50, 0"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
</ContentView>
|
</ContentView>
|
@ -1,9 +1,9 @@
|
|||||||
namespace mastermind.Views;
|
namespace mastermind.Views;
|
||||||
|
|
||||||
public partial class UsernameEntryView : ContentView
|
public partial class UsernameEntryView : ContentView
|
||||||
{
|
{
|
||||||
public UsernameEntryView()
|
public UsernameEntryView()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
}
|
}
|