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.
89 lines
2.7 KiB
89 lines
2.7 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:d="http://xamarin.com/schemas/2014/forms/design"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:skia="clr-namespace:SkiaSharp.Views.Forms;assembly=SkiaSharp.Views.Forms"
|
|
xmlns:tt="clr-namespace:TouchTracking.Forms;assembly=TouchTracking.Forms"
|
|
mc:Ignorable="d"
|
|
x:Class="TheGameExtreme.view.MainPage">
|
|
|
|
<Grid
|
|
x:Name="Display">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="10*"/>
|
|
<RowDefinition Height="90*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="20*"/>
|
|
<ColumnDefinition Width="60*"/>
|
|
<ColumnDefinition Width="20*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
<StackLayout
|
|
Grid.Row="0"
|
|
Grid.Column="1">
|
|
<Label
|
|
x:Name="pseudo"
|
|
Text="Pseudo"
|
|
HorizontalTextAlignment="Center"
|
|
VerticalTextAlignment="Center"
|
|
TextColor="{DynamicResource WhiteColor}"
|
|
FontSize="28"/>
|
|
</StackLayout>
|
|
|
|
|
|
<StackLayout
|
|
Grid.Row="0"
|
|
Grid.Column="0">
|
|
<ImageButton
|
|
Source="HomeIcon.png"
|
|
HorizontalOptions="Start"
|
|
VerticalOptions="Center"
|
|
WidthRequest="45"
|
|
HeightRequest="45"
|
|
BackgroundColor="{DynamicResource BlackColor}"
|
|
Clicked="PlayToHome"/>
|
|
</StackLayout>
|
|
|
|
|
|
|
|
<StackLayout
|
|
Grid.Row="0"
|
|
Grid.Column="2"
|
|
x:Name="gameOption">
|
|
<Button
|
|
x:Name="EndTurnButton"
|
|
Text=""
|
|
HorizontalOptions="End"
|
|
VerticalOptions="Center"
|
|
BackgroundColor="{DynamicResource SkyBlueColor}"
|
|
HeightRequest="35"
|
|
Clicked="EndTurn"/>
|
|
</StackLayout>
|
|
|
|
|
|
<Grid
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="3">
|
|
<Grid.Effects>
|
|
<tt:TouchEffect
|
|
Capture="True"
|
|
TouchAction="OnTouchEffectAction" />
|
|
</Grid.Effects>
|
|
<skia:SKCanvasView
|
|
x:Name="canvasView"
|
|
PaintSurface="OnCanvasViewPaintSurface"/>
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
</ContentPage> |