Added square, rhombus, circle tiles

test_old_branch
Jules LASCRET 1 year ago
parent 58d8043910
commit 3062f8f945

@ -85,6 +85,10 @@
</VerticalStackLayout>
</Border>
<controls:TileSquare/>
<controls:TileRhombus/>
<controls:TileCircle/>
</VerticalStackLayout>
</ScrollView>

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Qwirkle.Views.TileCircle">
<Grid>
<Rectangle HeightRequest="600"
Grid.Row="0"
Grid.Column="0"
WidthRequest="600"
VerticalOptions="Center"
HorizontalOptions="Center"
BackgroundColor="{StaticResource Gray800}"/>
<Ellipse HeightRequest="400"
WidthRequest="400"
BackgroundColor="Red"
VerticalOptions="Center"
HorizontalOptions="Center"/>
</Grid>
</ContentView>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Qwirkle.Views;
public partial class TileCircle : ContentView
{
public TileCircle()
{
InitializeComponent();
}
}

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Qwirkle.Views.TileRhombus">
<Grid>
<Rectangle HeightRequest="600"
Grid.Row="0"
Grid.Column="0"
WidthRequest="600"
VerticalOptions="Center"
HorizontalOptions="Center"
BackgroundColor="{StaticResource Gray800}"/>
<Rectangle HeightRequest="400"
Grid.Row="0"
Grid.Column="0"
Rotation="45"
WidthRequest="400"
VerticalOptions="Center"
HorizontalOptions="Center"
BackgroundColor="Red"/>
</Grid>
</ContentView>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Qwirkle.Views;
public partial class TileRhombus : ContentView
{
public TileRhombus()
{
InitializeComponent();
}
}

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Qwirkle.Views.TileSquare">
<Grid>
<Rectangle HeightRequest="600"
Grid.Row="0"
Grid.Column="0"
WidthRequest="600"
VerticalOptions="Center"
HorizontalOptions="Center"
BackgroundColor="{StaticResource Gray800}"/>
<Rectangle HeightRequest="400"
Grid.Row="0"
Grid.Column="0"
WidthRequest="400"
VerticalOptions="Center"
HorizontalOptions="Center"
BackgroundColor="Red"/>
</Grid>
</ContentView>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Qwirkle.Views;
public partial class TileSquare : ContentView
{
public TileSquare()
{
InitializeComponent();
}
}
Loading…
Cancel
Save