You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
4.2 KiB
78 lines
4.2 KiB
<?xml version="1.0" encoding="utf-8" ?>
|
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
x:Class="MauiSpark.Pages.Plateau"
|
|
Title="Plateau">
|
|
|
|
<ScrollView>
|
|
<StackLayout Padding="20">
|
|
<Label Text="Enter the player's name:"
|
|
FontSize="Medium"
|
|
VerticalOptions="CenterAndExpand" />
|
|
<Entry x:Name="PlayerNameEntry1"
|
|
Placeholder="Player Name"
|
|
FontSize="Medium"/>
|
|
<Entry x:Name="PlayerNameEntry2"
|
|
Placeholder="Player Name"
|
|
FontSize="Medium"/>
|
|
<Button Text="Submit" Clicked="OnSubmitClicked" VerticalOptions="EndAndExpand" />
|
|
<Label Text="Tour en cours :" FontSize="Large" />
|
|
<Label Text="{Binding Tour}" FontSize="Large" />
|
|
<Label Text="Joueur :" FontSize="Large" />
|
|
<Label Text="{Binding Nom}" FontSize="Large" />
|
|
<ListView ItemsSource="{Binding Jetons}">
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate>
|
|
<ViewCell>
|
|
<Label Text="{Binding Couleur}" />
|
|
</ViewCell>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
|
|
<Grid x:Name="PlateauGrid" RowSpacing="5" ColumnSpacing="5">
|
|
<Grid ColumnDefinitions="*,*" Margin="50" BackgroundColor="White">
|
|
<ListView Grid.Column="0" ItemsSource="{Binding Grille}">
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate>
|
|
<ViewCell>
|
|
<Grid ColumnDefinitions="*,*,*,*" Grid.Column="0">
|
|
<Label Grid.Column="0" Text="{Binding [0].Couleur}" TextColor="Black"/>
|
|
<Label Grid.Column="1" Text="{Binding [1].Couleur}" TextColor="Black" />
|
|
<Label Grid.Column="2" Text="{Binding [2].Couleur}" TextColor="Black" />
|
|
<Label Grid.Column="3" Text="{Binding [3].Couleur}" TextColor="Black" />
|
|
</Grid>
|
|
</ViewCell>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
<ListView Grid.Column="1" ItemsSource="{Binding Indicateurs}" >
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate>
|
|
<ViewCell>
|
|
<Grid ColumnDefinitions="*,*,*,*" Grid.Column="0">
|
|
<Label Grid.Column="0" Text="{Binding [0]}" TextColor="Black"/>
|
|
<Label Grid.Column="1" Text="{Binding [1]}" TextColor="Black"/>
|
|
<Label Grid.Column="2" Text="{Binding [2]}" TextColor="Black"/>
|
|
<Label Grid.Column="3" Text="{Binding [3]}" TextColor="Black"/>
|
|
</Grid>
|
|
</ViewCell>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
</Grid>
|
|
</Grid>
|
|
<Label Text="Sélectionnez une couleur de jeton : " />
|
|
<VerticalStackLayout Spacing="1">
|
|
<Button Text="Rouge" Clicked="OnColorButtonClicked" />
|
|
<Button Text="Vert" Clicked="OnColorButtonClicked" />
|
|
<Button Text="Bleu" Clicked="OnColorButtonClicked" />
|
|
<Button Text="Jaune" Clicked="OnColorButtonClicked" />
|
|
<Button Text="Blanc" Clicked="OnColorButtonClicked" />
|
|
<Button Text="Noir" Clicked="OnColorButtonClicked" />
|
|
</VerticalStackLayout>
|
|
<Button Text="Valider" Clicked="OnValidateButtonClicked" />
|
|
<Button Text="Supprimmer le dernier Jeton" Clicked="OnSupprimmerButtonClicked" />
|
|
</StackLayout>
|
|
</ScrollView>
|
|
</ContentPage> |