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" xmlns:controls="clr-namespace:Qwirkle.Views"
Title="Scoreboard"> Title="Scoreboard">
<ScrollView> <ScrollView>
<VerticalStackLayout Spacing="50"> <VerticalStackLayout Spacing="25" Padding="5, 5, 5, 10">
<Label <Grid ColumnDefinitions="*, 4*,*"
Text="Scoreboard" Margin="10, 0">
FontSize="Header" <Button Text="Return"
HorizontalOptions="Center"/> Grid.Column="0"
Grid.Row="0"
<Border Stroke="Black" HorizontalOptions="Start"
StrokeThickness="1.5" VerticalOptions="Center"
Margin="5"> />
<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> <Border.StrokeShape>
<RoundRectangle CornerRadius="10"/> <RoundRectangle CornerRadius="3"/>
</Border.StrokeShape> </Border.StrokeShape>
<VerticalStackLayout Padding="10"> <VerticalStackLayout>
<controls:ScoreboardLine></controls:ScoreboardLine> <controls:ScoreboardLine></controls:ScoreboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/> <Rectangle HeightRequest="2" BackgroundColor="Black"/>
@ -37,12 +56,6 @@
</VerticalStackLayout> </VerticalStackLayout>
</Border> </Border>
<Button Text="Return"
Margin="10"
HorizontalOptions="Center"
VerticalOptions="End"
/>
</VerticalStackLayout> </VerticalStackLayout>

@ -3,7 +3,7 @@
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Qwirkle.Views.ScoreboardLine"> x:Class="Qwirkle.Views.ScoreboardLine">
<Grid ColumnDefinitions="4*, 2*" <Grid ColumnDefinitions="4*, auto, 2*"
RowDefinitions="50"> RowDefinitions="50">
<Label <Label
@ -11,15 +11,22 @@
Grid.Column="0" Grid.Column="0"
FontSize="Medium" FontSize="Medium"
FontAttributes="Bold" FontAttributes="Bold"
Padding="5, 0"
Text="Player Tag" Text="Player Tag"
TextColor="DarkSlateGrey" TextColor="DarkSlateGrey"
VerticalOptions="Center"/> VerticalOptions="Center"/>
<Rectangle WidthRequest="2"
Grid.Column="1"
Grid.RowSpan="20"
BackgroundColor="Black"/>
<Label <Label
Grid.Row="0" Grid.Row="0"
Grid.Column="1" Grid.Column="2"
FontSize="Medium" FontSize="Medium"
FontAttributes="Bold" FontAttributes="Bold"
Padding="5, 0"
Text="Points" Text="Points"
TextColor="DarkSlateGrey" TextColor="DarkSlateGrey"
VerticalOptions="Center"/> 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 primitifs : int, double, short, ...
// types .NET : timespan, math, datetime, random, ... // types .NET : timespan, math, datetime, random, ...
@ -26,7 +26,7 @@ namespace MyNamespace
this.NbPoils = nbPoil; this.NbPoils = nbPoil;
} }
/*public string GetNom() *//*public string GetNom()
{ {
if (name == null) if (name == null)
{ {
@ -43,7 +43,7 @@ namespace MyNamespace
} }
name = newname; name = newname;
}*/ }*//*
public string Nom // Méthode plus lisible que de faire les getters et setters à part 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]; Class1[,] matrixObjects = new Class1[2, 4];
obj2.Nom = "Maitre Yoda"; obj2.Nom = "Maitre Yoda";
string leNom = obj2.Nom; string leNom = obj2.Nom;*/
Loading…
Cancel
Save