-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameSetup.xaml
More file actions
125 lines (109 loc) · 5.81 KB
/
GameSetup.xaml
File metadata and controls
125 lines (109 loc) · 5.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?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"
NavigationPage.HasBackButton="False"
x:Class="CrossPlatformProject2.GameSetup"
NavigationPage.HasNavigationBar="False"
BackgroundColor="{StaticResource colorwhite}">
<ScrollView>
<Grid RowSpacing="10" HorizontalOptions="Center" VerticalOptions="Center" ColumnSpacing="20" >
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<!-- Title -->
<Label Text="GAME SETUP" Grid.Row="0" Grid.ColumnSpan="3" Margin="0,0,0,40"
FontSize="55"
FontFamily="RockBoulder"
TextColor="{StaticResource colorred1}"
HorizontalOptions="Center"/>
<!-- Player Picker -->
<Frame Grid.Row="1" Grid.RowSpan="3" Grid.Column="1" Padding="0" BorderColor="Transparent" BackgroundColor="{StaticResource White}" CornerRadius="10" HasShadow="True">
<VerticalStackLayout Spacing="10">
<Label Text="Choose Players"
FontSize="16"
FontFamily="RockBoulder"
TextColor="{StaticResource Black}" />
<Picker x:Name="playerPicker"
TitleColor="{StaticResource Black}"
BackgroundColor="White"
FontSize="16"
SelectedIndexChanged="OnPlayerCountChanged"/>
<StackLayout x:Name="playerNameEntries" Spacing="10" />
</VerticalStackLayout>
</Frame>
<!-- Difficulty Picker -->
<Frame Grid.Row="1" Grid.Column="0" Padding="0" BorderColor="Transparent" BackgroundColor="{StaticResource White}" CornerRadius="10" HasShadow="True">
<VerticalStackLayout Spacing="10">
<Label Text="Choose Difficulty"
FontSize="16"
FontFamily="RockBoulder"
TextColor="{StaticResource Black}" />
<Picker x:Name="difficultyPicker"
TitleColor="{StaticResource Black}"
BackgroundColor="White"
FontSize="16" />
</VerticalStackLayout>
</Frame>
<!-- Category Picker -->
<Frame Grid.Row="2" Grid.Column="0" Padding="0" BorderColor="Transparent" BackgroundColor="{StaticResource White}" CornerRadius="10" HasShadow="True">
<VerticalStackLayout Spacing="10">
<Label Text="Choose Category"
FontSize="16"
FontFamily="RockBoulder"
TextColor="{StaticResource Black}" />
<Picker x:Name="categoryPicker"
TitleColor="{StaticResource Black}"
BackgroundColor="White"
FontSize="16" />
</VerticalStackLayout>
</Frame>
<!-- Total Questions Picker -->
<Frame Grid.Row="3" BorderColor="Transparent" Grid.Column="0" Padding="0" BackgroundColor="{StaticResource White}" CornerRadius="10" HasShadow="True">
<VerticalStackLayout Spacing="10">
<Label Text="Choose Total Questions"
FontSize="16"
FontFamily="RockBoulder"
TextColor="{StaticResource Black}" />
<Picker x:Name="totalQuestionsPicker"
TitleColor="{StaticResource Black}"
BackgroundColor="White"
FontSize="16" />
</VerticalStackLayout>
</Frame>
<!-- Buttons -->
<HorizontalStackLayout Grid.Row="4" Margin="0,20,0,0" Grid.ColumnSpan="2" Grid.Column="0" Spacing="10" HorizontalOptions="Center">
<Button Text="Start Game"
TextColor="White"
BackgroundColor="{StaticResource colorred1}"
FontSize="16"
FontFamily="RockBoulder"
WidthRequest="200"
Clicked="OnStartButtonClicked_Clicked"/>
<Button x:Name="homeButton"
Text="Return Home"
BackgroundColor="{StaticResource colorblue}"
TextColor="White"
FontSize="16"
FontFamily="RockBoulder"
WidthRequest="200"
Clicked="homeButton_Clicked"/>
<Button x:Name="loadGame"
Text="Load Game"
BackgroundColor="{StaticResource coloryellow}"
TextColor="White"
FontSize="16"
FontFamily="RockBoulder"
WidthRequest="200"
Clicked="OnLoadGameClicked"/>
</HorizontalStackLayout>
</Grid>
</ScrollView>
</ContentPage>