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.

168 lines
5.8 KiB

<?xml version="1.0" encoding="UTF-8"?>
<ContentPage
BackgroundColor="{DynamicResource BlackColor}"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:resources="clr-namespace:TheGameExtreme.Resx"
x:Class="TheGameExtreme.view.GamePreparationPage">
<Grid
Margin="10,10,10,10">
<Grid.RowDefinitions>
<RowDefinition Height="20*" />
<RowDefinition Height="80*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="35*" />
<ColumnDefinition Width="10*" />
<ColumnDefinition Width="10*" />
<ColumnDefinition Width="45*" />
</Grid.ColumnDefinitions>
<StackLayout
Grid.Row="0"
Grid.Column="0"
Grid.ColumnSpan="2"
Orientation="Horizontal">
<ImageButton
Source="ArrowSettingsBack.png"
VerticalOptions="Start"
HorizontalOptions="StartAndExpand"
HeightRequest="40"
WidthRequest="50"
Clicked="Back"
BackgroundColor="Transparent"/>
</StackLayout>
<StackLayout
Grid.Row="0"
Grid.Column="1"
Grid.ColumnSpan="2">
<Button
Text="{x:Static resources:AppResources.StrBtnPlay}"
Clicked="Play"
VerticalOptions="Start"
HorizontalOptions="Center"
MinimumWidthRequest="30"
WidthRequest="100"
BackgroundColor="{DynamicResource Gold}"
CornerRadius="10"/>
</StackLayout>
<Grid
Grid.Row="1"
Grid.Column="2"
Grid.ColumnSpan="2">
<Grid.RowDefinitions>
<RowDefinition Height="25*" />
<RowDefinition Height="25*" />
<RowDefinition Height="25*" />
<RowDefinition Height="25*" />
</Grid.RowDefinitions>
<StackLayout
Grid.Row="0"
Orientation="Horizontal">
<Label
Text="{x:Static resources:AppResources.StrNbPlayers}"
TextColor="{DynamicResource WhiteColor}"
FontSize="16"
VerticalTextAlignment="Center"
HorizontalTextAlignment="Center"/>
<Picker
x:Name="PlayerSelecter"
BackgroundColor="{DynamicResource SkyBlueColor}"
SelectedIndexChanged="ChangedPseudo"
HorizontalOptions="Center"
VerticalOptions="Center"
WidthRequest="40"/>
</StackLayout>
<StackLayout
Grid.Row="3"
Orientation="Horizontal">
<Label
Text="{x:Static resources:AppResources.StrValueType}"
TextColor="{DynamicResource WhiteColor}"
FontSize="16"
VerticalTextAlignment="Center"
HorizontalTextAlignment="Center"/>
<Picker
x:Name="SelectMode"
BackgroundColor="{DynamicResource SkyBlueColor}"
HorizontalOptions="Center"
VerticalOptions="Center"
MinimumWidthRequest="30"
WidthRequest="150"/>
</StackLayout>
<StackLayout
Grid.Row="1"
Orientation="Horizontal">
<Label
Text="{x:Static resources:AppResources.StrNbStacksInGame}"
TextColor="{DynamicResource WhiteColor}"
FontSize="16"
VerticalTextAlignment="Center"
HorizontalTextAlignment="Center"/>
<Picker
x:Name="SelectNbStack"
BackgroundColor="{DynamicResource SkyBlueColor}"
WidthRequest="40"
HorizontalOptions="Center"
VerticalOptions="Center"/>
</StackLayout>
<StackLayout
Grid.Row="2"
Orientation="Horizontal">
<Label
Text="{x:Static resources:AppResources.StrNbCards}"
TextColor="{DynamicResource WhiteColor}"
FontSize="16"
VerticalTextAlignment="Center"
HorizontalTextAlignment="Center"/>
<Picker
x:Name="SelectNbCard"
BackgroundColor="{DynamicResource SkyBlueColor}"
WidthRequest="50"
HorizontalOptions="Center"
VerticalOptions="Center"/>
</StackLayout>
</Grid>
<ScrollView
Grid.Column="0"
Grid.ColumnSpan="2"
Grid.Row="1">
<StackLayout
x:Name="NameList">
<Label
Text="{x:Static resources:AppResources.StrPseudoGM}"
TextColor="{DynamicResource WhiteColor}"
FontSize="16"
VerticalTextAlignment="Center"
HorizontalTextAlignment="Center"/>
<Entry
BackgroundColor="{DynamicResource Gold}"
Placeholder="Pseudo"
HorizontalOptions="Center"
MinimumWidthRequest="50"
WidthRequest="150"
MaxLength="18"
x:Name="FirstEntry"
IsTextPredictionEnabled="False"/>
</StackLayout>
</ScrollView>
</Grid>
</ContentPage>