ITS WORK MATE (just problm with see tiles of players fix monday)
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
471679c332
commit
bc1ad999bf
@ -1,31 +0,0 @@
|
||||
<?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"
|
||||
xmlns:conv="clr-namespace:Qwirkle.Converters"
|
||||
x:Name="root">
|
||||
<ContentView.Resources>
|
||||
<conv:Int2ColorConverter x:Key="int2ColorConverter"/>
|
||||
<conv:RoundToVisibilityConverter x:Key="roundToVisibilityConverter"/>
|
||||
</ContentView.Resources>
|
||||
<Grid>
|
||||
<Label Text="{Binding Shape, Source={x:Reference root}}"></Label>
|
||||
|
||||
<Rectangle HeightRequest="70"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
WidthRequest="70"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Center"
|
||||
BackgroundColor="Transparent"/>
|
||||
<Ellipse HeightRequest="50"
|
||||
WidthRequest="50"
|
||||
Fill="{Binding Color, Source={x:Reference root}, Converter={StaticResource int2ColorConverter}}"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Center"
|
||||
IsVisible="{Binding Shape, Source={x:Reference root}, Converter={StaticResource roundToVisibilityConverter}}" />
|
||||
|
||||
|
||||
</Grid>
|
||||
</ContentView>
|
@ -1,20 +0,0 @@
|
||||
<?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.TileClub">
|
||||
<Grid>
|
||||
<Rectangle HeightRequest="600"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
WidthRequest="600"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Center"
|
||||
BackgroundColor="{StaticResource Gray800}" />
|
||||
<Image Source="club.png"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
WidthRequest="600"
|
||||
HeightRequest="600" />
|
||||
</Grid>
|
||||
</ContentView>
|
@ -1,15 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Qwirkle.Views;
|
||||
|
||||
public partial class TileClub : ContentView
|
||||
{
|
||||
public TileClub()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
<?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>
|
@ -1,21 +0,0 @@
|
||||
<?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.TileShuriken">
|
||||
<Grid>
|
||||
<Rectangle HeightRequest="600"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
WidthRequest="600"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Center"
|
||||
BackgroundColor="{StaticResource Gray800}" />
|
||||
<Image Source="shuriken.png"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
WidthRequest="600"
|
||||
HeightRequest="600"
|
||||
BackgroundColor="AntiqueWhite"/>
|
||||
</Grid>
|
||||
</ContentView>
|
@ -1,15 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Qwirkle.Views;
|
||||
|
||||
public partial class TileShuriken : ContentView
|
||||
{
|
||||
public TileShuriken()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
<?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>
|
@ -1,20 +0,0 @@
|
||||
<?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.TileStar">
|
||||
<Grid>
|
||||
<Rectangle HeightRequest="600"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
WidthRequest="600"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Center"
|
||||
BackgroundColor="{StaticResource Gray800}" />
|
||||
<Image Source="star.png"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
WidthRequest="600"
|
||||
HeightRequest="600"/>
|
||||
</Grid>
|
||||
</ContentView>
|
@ -1,15 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Qwirkle.Views;
|
||||
|
||||
public partial class TileStar : ContentView
|
||||
{
|
||||
public TileStar()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
@ -0,0 +1,89 @@
|
||||
<?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.TileView"
|
||||
xmlns:conv="clr-namespace:Qwirkle.Converters"
|
||||
x:Name="root"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
|
||||
<ContentView.Resources>
|
||||
<conv:Int2ColorConverter x:Key="int2ColorConverter"/>
|
||||
<conv:RhombusToVisibilityConverter x:Key="rhombusToVisibilityConverter"/>
|
||||
<conv:RoundToVisibilityConverter x:Key="roundToVisibilityConverter"/>
|
||||
<conv:SquareToVisibilityConverter x:Key="squareToVisibilityConverter"/>
|
||||
<conv:ClubToVisibilityConverter x:Key="clubToVisibilityConverter"/>
|
||||
<conv:ShurikenToVisibilityConverter x:Key="shurikenToVisibilityConverter"/>
|
||||
<conv:StarToVisibilityConverter x:Key="starToVisibilityConverter"/>
|
||||
</ContentView.Resources>
|
||||
<Grid>
|
||||
|
||||
<Rectangle HeightRequest="70"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
WidthRequest="70"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Center"
|
||||
BackgroundColor="Transparent"/>
|
||||
|
||||
<Ellipse HeightRequest="50"
|
||||
WidthRequest="50"
|
||||
Fill="{Binding Color, Source={x:Reference root}, Converter={StaticResource int2ColorConverter}}"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Center"
|
||||
IsVisible="{Binding Shape, Source={x:Reference root}, Converter={StaticResource roundToVisibilityConverter}}" />
|
||||
|
||||
<Rectangle HeightRequest="35"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
Rotation="45"
|
||||
WidthRequest="35"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Center"
|
||||
Fill="{Binding Color, Source={x:Reference root}, Converter={StaticResource int2ColorConverter}}"
|
||||
IsVisible="{Binding Shape, Source={x:Reference root}, Converter={StaticResource rhombusToVisibilityConverter}}" />
|
||||
|
||||
<Rectangle HeightRequest="40"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
WidthRequest="40"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Center"
|
||||
Fill="{Binding Color, Source={x:Reference root}, Converter={StaticResource int2ColorConverter}}"
|
||||
IsVisible="{Binding Shape, Source={x:Reference root}, Converter={StaticResource clubToVisibilityConverter}}" />
|
||||
|
||||
<Image Source="club.png"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
WidthRequest="100"
|
||||
HeightRequest="100"
|
||||
IsVisible="{Binding Shape, Source={x:Reference root}, Converter={StaticResource squareToVisibilityConverter}}">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{Binding Color, Source={x:Reference root}, Converter={StaticResource int2ColorConverter}}"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
|
||||
<Image Source="shuriken.png"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
WidthRequest="60"
|
||||
HeightRequest="60"
|
||||
IsVisible="{Binding Shape, Source={x:Reference root}, Converter={StaticResource shurikenToVisibilityConverter}}">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{Binding Color, Source={x:Reference root}, Converter={StaticResource int2ColorConverter}}"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
|
||||
<Image Source="star.png"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
WidthRequest="60"
|
||||
HeightRequest="60"
|
||||
IsVisible="{Binding Shape, Source={x:Reference root}, Converter={StaticResource starToVisibilityConverter}}">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{Binding Color, Source={x:Reference root}, Converter={StaticResource int2ColorConverter}}"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
|
||||
|
||||
</Grid>
|
||||
</ContentView>
|
Loading…
Reference in new issue