Everything bloody works !! Deleted the tiles png files now that we don't need them
continuous-integration/drone/push Build is passing Details

test_old_branch
Jules LASCRET 11 months ago
parent b8565d384a
commit a6746b66d8

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

@ -17,77 +17,132 @@
</ContentView.Resources> </ContentView.Resources>
<Grid> <Grid>
<Rectangle HeightRequest="70" <!-- Étoile / Star -->
Grid.Row="0" <Grid
Grid.Column="0" IsVisible="{Binding Shape, Source={x:Reference Root}, Converter={StaticResource StarToVisibilityConverter}}">
WidthRequest="70" <Ellipse HeightRequest="10"
VerticalOptions="Center" WidthRequest="50"
HorizontalOptions="Center" Fill="{Binding Color, Source={x:Reference Root}, Converter={StaticResource Int2ColorConverter}}"
BackgroundColor="Transparent"/> Grid.Row="0"
Grid.Column="0" />
<Ellipse HeightRequest="10"
WidthRequest="50"
Rotation="45"
Fill="{Binding Color, Source={x:Reference Root}, Converter={StaticResource Int2ColorConverter}}"
Grid.Row="0"
Grid.Column="0"/>
<Ellipse HeightRequest="10"
WidthRequest="50"
Rotation="90"
Fill="{Binding Color, Source={x:Reference Root}, Converter={StaticResource Int2ColorConverter}}"
Grid.Row="0"
Grid.Column="0" />
<Ellipse HeightRequest="10"
WidthRequest="50"
Rotation="135"
Fill="{Binding Color, Source={x:Reference Root}, Converter={StaticResource Int2ColorConverter}}"
Grid.Row="0"
Grid.Column="0" />
</Grid>
<!-- Shuriken -->
<Grid
IsVisible="{Binding Shape, Source={x:Reference Root}, Converter={StaticResource ShurikenToVisibilityConverter}}">
<Ellipse HeightRequest="10"
WidthRequest="50"
Fill="{Binding Color, Source={x:Reference Root}, Converter={StaticResource Int2ColorConverter}}"
Grid.Row="0"
Grid.Column="0" />
<Ellipse HeightRequest="10"
WidthRequest="50"
Rotation="90"
Fill="{Binding Color, Source={x:Reference Root}, Converter={StaticResource Int2ColorConverter}}"
Grid.Row="0"
Grid.Column="0" />
</Grid>
<!--Rond / round--> <!-- Trèfle / Club -->
<Ellipse HeightRequest="50" <Grid
WidthRequest="50" RowDefinitions="60"
Fill="{Binding Color, Source={x:Reference Root}, Converter={StaticResource Int2ColorConverter}}" ColumnDefinitions="60"
VerticalOptions="Center" Padding="5, 5, 0, 0"
HorizontalOptions="Center" IsVisible="{Binding Shape, Source={x:Reference Root}, Converter={StaticResource ClubToVisibilityConverter}}">
IsVisible="{Binding Shape, Source={x:Reference Root}, Converter={StaticResource RoundToVisibilityConverter}}" /> <Ellipse HeightRequest="26"
WidthRequest="26"
Fill="{Binding Color, Source={x:Reference Root}, Converter={StaticResource Int2ColorConverter}}"
HorizontalOptions="Start"
VerticalOptions="Center"
Grid.Column="0"
Grid.Row="0"/>
<Ellipse HeightRequest="26"
WidthRequest="26"
Fill="{Binding Color, Source={x:Reference Root}, Converter={StaticResource Int2ColorConverter}}"
HorizontalOptions="End"
VerticalOptions="Center"
Grid.Column="0"
Grid.Row="0" />
<Ellipse HeightRequest="26"
WidthRequest="26"
Fill="{Binding Color, Source={x:Reference Root}, Converter={StaticResource Int2ColorConverter}}"
VerticalOptions="End"
HorizontalOptions="Center"
Grid.Column="0"
Grid.Row="0" />
<Ellipse HeightRequest="26"
WidthRequest="26"
Fill="{Binding Color, Source={x:Reference Root}, Converter={StaticResource Int2ColorConverter}}"
VerticalOptions="Start"
HorizontalOptions="Center"
Grid.Column="0"
Grid.Row="0"/>
<Rectangle HeightRequest="20"
WidthRequest="20"
StrokeThickness="0"
VerticalOptions="Center"
HorizontalOptions="Center"
Grid.Column="0"
Grid.Row="0"
Fill="{Binding Color, Source={x:Reference Root}, Converter={StaticResource Int2ColorConverter}}" />
</Grid>
<!--Losange / Rhombus--> <Rectangle HeightRequest="70"
<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}}" />
<!--Carre / Square-->
<Rectangle HeightRequest="40"
Grid.Row="0" Grid.Row="0"
Grid.Column="0" Grid.Column="0"
WidthRequest="40" WidthRequest="70"
VerticalOptions="Center" VerticalOptions="Center"
HorizontalOptions="Center" HorizontalOptions="Center"
Fill="{Binding Color, Source={x:Reference Root}, Converter={StaticResource Int2ColorConverter}}" BackgroundColor="Transparent"/>
IsVisible="{Binding Shape, Source={x:Reference Root}, Converter={StaticResource SquareToVisibilityConverter}}" />
<!--Trefle / Club--> <!--Rond / round-->
<Image Source="club.png" <Ellipse HeightRequest="50"
Grid.Row="0" WidthRequest="50"
Grid.Column="0" Fill="{Binding Color, Source={x:Reference Root}, Converter={StaticResource Int2ColorConverter}}"
WidthRequest="100" VerticalOptions="Center"
HeightRequest="100" HorizontalOptions="Center"
IsVisible="{Binding Shape, Source={x:Reference Root}, Converter={StaticResource ClubToVisibilityConverter}}"> IsVisible="{Binding Shape, Source={x:Reference Root}, Converter={StaticResource RoundToVisibilityConverter}}" />
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{Binding Color, Source={x:Reference Root}, Converter={StaticResource Int2ColorConverter}}"/>
</Image.Behaviors>
</Image>
<Image Source="shuriken.png" <!--Losange / Rhombus-->
Grid.Row="0" <Rectangle HeightRequest="35"
Grid.Column="0" Grid.Row="0"
WidthRequest="60" Grid.Column="0"
HeightRequest="60" Rotation="45"
IsVisible="{Binding Shape, Source={x:Reference Root}, Converter={StaticResource ShurikenToVisibilityConverter}}"> StrokeThickness="0"
<Image.Behaviors> WidthRequest="35"
<toolkit:IconTintColorBehavior TintColor="{Binding Color, Source={x:Reference Root}, Converter={StaticResource Int2ColorConverter}}"/> VerticalOptions="Center"
</Image.Behaviors> HorizontalOptions="Center"
</Image> Fill="{Binding Color, Source={x:Reference Root}, Converter={StaticResource Int2ColorConverter}}"
IsVisible="{Binding Shape, Source={x:Reference Root}, Converter={StaticResource RhombusToVisibilityConverter}}" />
<Image Source="star.png" <!--Carre / Square-->
Grid.Row="0" <Rectangle HeightRequest="40"
Grid.Column="0" Grid.Row="0"
WidthRequest="60" Grid.Column="0"
HeightRequest="60" WidthRequest="40"
IsVisible="{Binding Shape, Source={x:Reference Root}, Converter={StaticResource StarToVisibilityConverter}}"> StrokeThickness="0"
<Image.Behaviors> VerticalOptions="Center"
<toolkit:IconTintColorBehavior TintColor="{Binding Color, Source={x:Reference Root}, Converter={StaticResource Int2ColorConverter}}"/> HorizontalOptions="Center"
</Image.Behaviors> Fill="{Binding Color, Source={x:Reference Root}, Converter={StaticResource Int2ColorConverter}}"
</Image> IsVisible="{Binding Shape, Source={x:Reference Root}, Converter={StaticResource SquareToVisibilityConverter}}" />
</Grid> </Grid>
</ContentView> </ContentView>
Loading…
Cancel
Save