|
|
@ -7,11 +7,12 @@
|
|
|
|
x:Class="TheGameExtreme.view.GamePreparationPage">
|
|
|
|
x:Class="TheGameExtreme.view.GamePreparationPage">
|
|
|
|
|
|
|
|
|
|
|
|
<Grid
|
|
|
|
<Grid
|
|
|
|
Margin="5,5,5,5">
|
|
|
|
Margin="5,0,5,5">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="10*" />
|
|
|
|
<RowDefinition Height="10*" />
|
|
|
|
<RowDefinition Height="25*" />
|
|
|
|
<RowDefinition Height="20*" />
|
|
|
|
<RowDefinition Height="35*" />
|
|
|
|
<RowDefinition Height="20*" />
|
|
|
|
|
|
|
|
<RowDefinition Height="20*" />
|
|
|
|
<RowDefinition Height="30*" />
|
|
|
|
<RowDefinition Height="30*" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
@ -29,50 +30,88 @@
|
|
|
|
WidthRequest="50"
|
|
|
|
WidthRequest="50"
|
|
|
|
Clicked="Back"
|
|
|
|
Clicked="Back"
|
|
|
|
BackgroundColor="Transparent"
|
|
|
|
BackgroundColor="Transparent"
|
|
|
|
Margin="10,0,0,0"/>
|
|
|
|
Margin="10,10,0,0"/>
|
|
|
|
</StackLayout>
|
|
|
|
</StackLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackLayout
|
|
|
|
<StackLayout
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.Column="0"
|
|
|
|
Grid.Column="1"
|
|
|
|
Grid.ColumnSpan="2">
|
|
|
|
Margin="0,0,50,0">
|
|
|
|
<Label
|
|
|
|
<Label Text="Nombre de joueur : "
|
|
|
|
HorizontalTextAlignment="Center"
|
|
|
|
TextColor="{DynamicResource WhiteColor}"
|
|
|
|
|
|
|
|
FontSize="16"
|
|
|
|
VerticalTextAlignment="Center"
|
|
|
|
VerticalTextAlignment="Center"
|
|
|
|
x:Name="Instruction"
|
|
|
|
HorizontalTextAlignment="Center"/>
|
|
|
|
FontSize="24"
|
|
|
|
<Picker
|
|
|
|
TextColor="{DynamicResource WhiteColor}"/>
|
|
|
|
x:Name="PlayerSelecter"
|
|
|
|
|
|
|
|
BackgroundColor="{DynamicResource SkyBlueColor}"
|
|
|
|
|
|
|
|
SelectedIndexChanged="ChangedPseudo"
|
|
|
|
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
|
|
|
|
VerticalOptions="Center"
|
|
|
|
|
|
|
|
WidthRequest="220"
|
|
|
|
|
|
|
|
Margin="50,0,50,0"/>
|
|
|
|
</StackLayout>
|
|
|
|
</StackLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<StackLayout
|
|
|
|
<StackLayout
|
|
|
|
Grid.Row="2"
|
|
|
|
Grid.Row="2"
|
|
|
|
Grid.Column="0"
|
|
|
|
Grid.Column="1"
|
|
|
|
Margin="50,0,50,0">
|
|
|
|
Margin="0,0,50,0">
|
|
|
|
<Frame BackgroundColor="{DynamicResource SkyBlueColor}"
|
|
|
|
<Label Text="Jouer avec des valeurs :"
|
|
|
|
CornerRadius="10"
|
|
|
|
TextColor="{DynamicResource WhiteColor}"
|
|
|
|
HeightRequest="45"
|
|
|
|
FontSize="16"
|
|
|
|
VerticalOptions="Center"
|
|
|
|
VerticalTextAlignment="Center"
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
HorizontalTextAlignment="Center"/>
|
|
|
|
WidthRequest="150">
|
|
|
|
|
|
|
|
<Picker
|
|
|
|
<Picker
|
|
|
|
x:Name="PlayerSelecter"
|
|
|
|
x:Name="SelectMode"
|
|
|
|
BackgroundColor="{DynamicResource SkyBlueColor}"
|
|
|
|
BackgroundColor="{DynamicResource SkyBlueColor}"
|
|
|
|
SelectedIndexChanged="ChangedPseudo"
|
|
|
|
SelectedIndexChanged="SelectMode_SelectedIndexChanged"
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
VerticalOptions="Center"
|
|
|
|
VerticalOptions="Center"
|
|
|
|
WidthRequest="220"
|
|
|
|
WidthRequest="220"
|
|
|
|
|
|
|
|
|
|
|
|
Margin="50,0,50,0"/>
|
|
|
|
Margin="50,0,50,0"/>
|
|
|
|
</Frame>
|
|
|
|
|
|
|
|
</StackLayout>
|
|
|
|
</StackLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<ScrollView
|
|
|
|
<StackLayout
|
|
|
|
Grid.Row="2"
|
|
|
|
|
|
|
|
Grid.Column="1"
|
|
|
|
Grid.Column="1"
|
|
|
|
Margin="50,0,50,0">
|
|
|
|
Grid.Row="3"
|
|
|
|
|
|
|
|
Margin="0,0,50,0">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Label Text="Nombre de pile en jeu :"
|
|
|
|
|
|
|
|
TextColor="{DynamicResource WhiteColor}"
|
|
|
|
|
|
|
|
FontSize="16"
|
|
|
|
|
|
|
|
VerticalTextAlignment="Center"
|
|
|
|
|
|
|
|
HorizontalTextAlignment="Center"/>
|
|
|
|
|
|
|
|
<Picker x:Name="SelectNbStack"
|
|
|
|
|
|
|
|
BackgroundColor="{DynamicResource SkyBlueColor}"
|
|
|
|
|
|
|
|
SelectedIndexChanged="SelectNbStack_Changed"
|
|
|
|
|
|
|
|
Margin="50,0,50,0"
|
|
|
|
|
|
|
|
WidthRequest="220"
|
|
|
|
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
|
|
|
|
VerticalOptions="Center"/>
|
|
|
|
|
|
|
|
</StackLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackLayout
|
|
|
|
<StackLayout
|
|
|
|
x:Name="NameList">
|
|
|
|
x:Name="NameList"
|
|
|
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
|
|
|
Margin="50,30,50,0">
|
|
|
|
|
|
|
|
<Label Text="Nom des joueurs"
|
|
|
|
|
|
|
|
TextColor="{DynamicResource WhiteColor}"
|
|
|
|
|
|
|
|
FontSize="16"
|
|
|
|
|
|
|
|
VerticalTextAlignment="Center"
|
|
|
|
|
|
|
|
HorizontalTextAlignment="Center"/>
|
|
|
|
|
|
|
|
</StackLayout>
|
|
|
|
|
|
|
|
<StackLayout
|
|
|
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
|
|
|
Margin="50,27,50,0">
|
|
|
|
<!--<Frame BackgroundColor="{DynamicResource SkyBlueColor}"
|
|
|
|
<!--<Frame BackgroundColor="{DynamicResource SkyBlueColor}"
|
|
|
|
CornerRadius="10"
|
|
|
|
CornerRadius="10"
|
|
|
|
HeightRequest="45"
|
|
|
|
HeightRequest="45"
|
|
|
@ -87,19 +126,23 @@
|
|
|
|
<Entry
|
|
|
|
<Entry
|
|
|
|
BackgroundColor="{DynamicResource SkyBlueColor}"
|
|
|
|
BackgroundColor="{DynamicResource SkyBlueColor}"
|
|
|
|
Placeholder="Pseudo"
|
|
|
|
Placeholder="Pseudo"
|
|
|
|
HorizontalTextAlignment="Start"/>
|
|
|
|
HorizontalTextAlignment="Start"
|
|
|
|
|
|
|
|
HeightRequest="45"/>
|
|
|
|
</StackLayout>
|
|
|
|
</StackLayout>
|
|
|
|
|
|
|
|
|
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackLayout
|
|
|
|
<StackLayout
|
|
|
|
Grid.Row="3"
|
|
|
|
Grid.Row="4"
|
|
|
|
Grid.Column="0"
|
|
|
|
Grid.Column="0"
|
|
|
|
Grid.ColumnSpan="2">
|
|
|
|
Grid.ColumnSpan="2">
|
|
|
|
<Button
|
|
|
|
<Button
|
|
|
|
|
|
|
|
Margin="0,55,0,0"
|
|
|
|
Text="Play"
|
|
|
|
Text="Play"
|
|
|
|
Clicked="Play"
|
|
|
|
Clicked="Play"
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
HorizontalOptions="End"
|
|
|
|
WidthRequest="220"
|
|
|
|
WidthRequest="220"
|
|
|
|
BackgroundColor="{DynamicResource SkyBlueColor}"
|
|
|
|
BackgroundColor="{DynamicResource SkyBlueColor}"
|
|
|
|
CornerRadius="10"/>
|
|
|
|
CornerRadius="10"/>
|
|
|
|