comment cs / edit of scoreboard with leaderboard template

test_old_branch
Jérémy Mouyon 1 year ago
parent 1d4f7e5bdb
commit f96d942f49

@ -5,20 +5,39 @@
xmlns:controls="clr-namespace:Qwirkle.Views"
Title="Scoreboard">
<ScrollView>
<VerticalStackLayout Spacing="50">
<Label
Text="Scoreboard"
FontSize="Header"
HorizontalOptions="Center"/>
<Border Stroke="Black"
StrokeThickness="1.5"
Margin="5">
<VerticalStackLayout Spacing="25" Padding="5, 5, 5, 10">
<Grid ColumnDefinitions="*, 4*,*"
Margin="10, 0">
<Button Text="Return"
Grid.Column="0"
Grid.Row="0"
HorizontalOptions="Start"
VerticalOptions="Center"
/>
<Label FontSize="Header"
Grid.Column="1"
Grid.Row="0"
FontAttributes="Bold"
HorizontalOptions="Center"
Padding="50, 10"
Text="Scoreboard"/>
</Grid>
<Border Stroke="{StaticResource Gray800}"
StrokeThickness="4"
Margin="10, 0">
<Border.Shadow>
<Shadow Brush="Black"
Offset="5, 5"
Radius="10"
Opacity="0.6"/>
</Border.Shadow>
<Border.StrokeShape>
<RoundRectangle CornerRadius="10"/>
<RoundRectangle CornerRadius="3"/>
</Border.StrokeShape>
<VerticalStackLayout Padding="10">
<VerticalStackLayout>
<controls:ScoreboardLine></controls:ScoreboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
@ -37,12 +56,6 @@
</VerticalStackLayout>
</Border>
<Button Text="Return"
Margin="10"
HorizontalOptions="Center"
VerticalOptions="End"
/>
</VerticalStackLayout>

@ -3,7 +3,7 @@
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Qwirkle.Views.ScoreboardLine">
<Grid ColumnDefinitions="4*, 2*"
<Grid ColumnDefinitions="4*, auto, 2*"
RowDefinitions="50">
<Label
@ -11,15 +11,22 @@
Grid.Column="0"
FontSize="Medium"
FontAttributes="Bold"
Padding="5, 0"
Text="Player Tag"
TextColor="DarkSlateGrey"
VerticalOptions="Center"/>
<Rectangle WidthRequest="2"
Grid.Column="1"
Grid.RowSpan="20"
BackgroundColor="Black"/>
<Label
Grid.Row="0"
Grid.Column="1"
Grid.Column="2"
FontSize="Medium"
FontAttributes="Bold"
Padding="5, 0"
Text="Points"
TextColor="DarkSlateGrey"
VerticalOptions="Center"/>

@ -1,4 +1,4 @@
// LE FICHIER VOUS CHIE À LA GUEULE ET NE PEUT PAS ETRE COMPILÉ : C'EST NORMAL !!
/*// LE FICHIER VOUS CHIE À LA GUEULE ET NE PEUT PAS ETRE COMPILÉ : C'EST NORMAL !!
// types primitifs : int, double, short, ...
// types .NET : timespan, math, datetime, random, ...
@ -26,7 +26,7 @@ namespace MyNamespace
this.NbPoils = nbPoil;
}
/*public string GetNom()
*//*public string GetNom()
{
if (name == null)
{
@ -43,7 +43,7 @@ namespace MyNamespace
}
name = newname;
}*/
}*//*
public string Nom // Méthode plus lisible que de faire les getters et setters à part
{
@ -89,4 +89,4 @@ Class1[] objects = new Class1[4]; // Tableau
Class1[,] matrixObjects = new Class1[2, 4];
obj2.Nom = "Maitre Yoda";
string leNom = obj2.Nom;
string leNom = obj2.Nom;*/
Loading…
Cancel
Save