commit
d7be22331e
@ -1,9 +0,0 @@
|
|||||||
namespace Ohara;
|
|
||||||
|
|
||||||
public partial class NewPage1 : ContentPage
|
|
||||||
{
|
|
||||||
public NewPage1()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,151 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
|
||||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
||||||
x:Class="Ohara.NewPage2"
|
|
||||||
BackgroundColor="#e2edf1">
|
|
||||||
|
|
||||||
<Grid>
|
|
||||||
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="2*" />
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="300" />
|
|
||||||
<ColumnDefinition Width="*" />
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<VerticalStackLayout BackgroundColor="#72a3b3" Grid.Row="0" Grid.Column="0" Spacing="10">
|
|
||||||
|
|
||||||
<Image Source="ohara2.png" HeightRequest="200" HorizontalOptions="Center">
|
|
||||||
<Image.Clip>
|
|
||||||
<EllipseGeometry Center="150,90" RadiusX="80" RadiusY="80"/>
|
|
||||||
</Image.Clip>
|
|
||||||
</Image>
|
|
||||||
|
|
||||||
|
|
||||||
<Button Style="{StaticResource buttonMenu}" Text="Accueil"/>
|
|
||||||
<Button Style="{StaticResource buttonMenu}" Text="Carte"/>
|
|
||||||
<Button Style="{StaticResource buttonMenu2}" Text="Personnages"/>
|
|
||||||
<Button Style="{StaticResource buttonMenu}" Text="Fruits du démon"/>
|
|
||||||
<Button Style="{StaticResource buttonMenu}" Text="Bateaux"/>
|
|
||||||
<Button Style="{StaticResource buttonMenu}" Text="Îles"/>
|
|
||||||
<Button Style="{StaticResource buttonMenu}" Text="Bestiaire"/>
|
|
||||||
<Button Style="{StaticResource buttonMenu}" Text="Équipages"/>
|
|
||||||
</VerticalStackLayout>
|
|
||||||
<VerticalStackLayout Grid.Row="0" Grid.Column="1" Spacing="40">
|
|
||||||
<Grid BackgroundColor="#72a3b3" Padding="10" ColumnSpacing="50" >
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="10*"/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<Grid.ColumnDefinitions >
|
|
||||||
<ColumnDefinition Width="20*"/>
|
|
||||||
<ColumnDefinition Width="25*"/>
|
|
||||||
<ColumnDefinition Width="10*"/>
|
|
||||||
<ColumnDefinition Width="10*"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<SearchBar Placeholder="Rechercher..." BackgroundColor="#bfe5ef" Grid.Column="0"/>
|
|
||||||
<Frame CornerRadius="20" BackgroundColor="#bfe5ef" BorderColor="#bfe5ef" Grid.Column="2">
|
|
||||||
<Label Text="Filtrer" HorizontalTextAlignment="Center" />
|
|
||||||
</Frame>
|
|
||||||
|
|
||||||
<Frame CornerRadius="20" BackgroundColor="#bfe5ef" BorderColor="#bfe5ef" Grid.Column="3">
|
|
||||||
<Label Text="Trier" HorizontalTextAlignment="Center" />
|
|
||||||
</Frame>
|
|
||||||
</Grid>
|
|
||||||
<ScrollView Orientation="Horizontal" HorizontalScrollBarVisibility="Always">
|
|
||||||
<HorizontalStackLayout Spacing="40" Padding="40">
|
|
||||||
|
|
||||||
<Grid>
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="*" />
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="*" />
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<Image Source="luffy.png" HeightRequest="800" HorizontalOptions="Start" Grid.Row="0"/>
|
|
||||||
<Frame CornerRadius="20" BorderColor="#72a3b3" BackgroundColor="#72a3b3" Margin="20, 50" Padding="20" WidthRequest="350" HeightRequest="200" Grid.Row="0" VerticalOptions="End">
|
|
||||||
<Grid>
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="*" />
|
|
||||||
<RowDefinition Height="*" />
|
|
||||||
<RowDefinition Height="*" />
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="*" />
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<Label Text="Monkey D. Luffy" FontAttributes="Bold" FontSize="22" TextColor="White" Grid.Row="0" HorizontalOptions="Center" Margin="10"/>
|
|
||||||
<Label Text="________________________" FontAttributes="Bold" FontSize="20" TextColor="White" Grid.Row="1" HorizontalOptions="Center" Margin="-15"/>
|
|
||||||
<Label Text="Cliquez ici pour voir en détail" FontAttributes="Bold,Italic" FontSize="15" TextColor="White" Grid.Row="2" TextDecorations="Underline" HorizontalOptions="Center"/>
|
|
||||||
</Grid>
|
|
||||||
</Frame>
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
<Grid>
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="*" />
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="*" />
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<Image Source="nami.png" HeightRequest="800" HorizontalOptions="Start"/>
|
|
||||||
<Frame CornerRadius="20" BorderColor="#72a3b3" BackgroundColor="#72a3b3" Margin="20, 50" Padding="20" WidthRequest="350" HeightRequest="200" Grid.Row="0" VerticalOptions="End">
|
|
||||||
<Grid>
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="*" />
|
|
||||||
<RowDefinition Height="*" />
|
|
||||||
<RowDefinition Height="*" />
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="*" />
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<Label Text="Nami" FontAttributes="Bold" FontSize="22" TextColor="White" Grid.Row="0" HorizontalOptions="Center" Margin="10"/>
|
|
||||||
<Label Text="________________________" FontAttributes="Bold" FontSize="20" TextColor="White" Grid.Row="1" HorizontalOptions="Center" Margin="-15"/>
|
|
||||||
<Label Text="Cliquez ici pour voir en détail" FontAttributes="Bold,Italic" FontSize="15" TextColor="White" Grid.Row="2" TextDecorations="Underline" HorizontalOptions="Center"/>
|
|
||||||
</Grid>
|
|
||||||
</Frame>
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
<Grid>
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="*" />
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="*" />
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<Image Source="usopp.png" HeightRequest="800" HorizontalOptions="Start"/>
|
|
||||||
<Frame CornerRadius="20" BorderColor="#72a3b3" BackgroundColor="#72a3b3" Margin="20, 50" Padding="20" WidthRequest="350" HeightRequest="200" Grid.Row="0" VerticalOptions="End">
|
|
||||||
<Grid>
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="*" />
|
|
||||||
<RowDefinition Height="*" />
|
|
||||||
<RowDefinition Height="*" />
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="*" />
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<Label Text="Usopp" FontAttributes="Bold" FontSize="22" TextColor="White" Grid.Row="0" HorizontalOptions="Center" Margin="10"/>
|
|
||||||
<Label Text="________________________" FontAttributes="Bold" FontSize="20" TextColor="White" Grid.Row="1" HorizontalOptions="Center" Margin="-15"/>
|
|
||||||
<Label Text="Cliquez ici pour voir en détail" FontAttributes="Bold,Italic" FontSize="15" TextColor="White" Grid.Row="2" TextDecorations="Underline" HorizontalOptions="Center"/>
|
|
||||||
</Grid>
|
|
||||||
</Frame>
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
|
|
||||||
</HorizontalStackLayout>
|
|
||||||
</ScrollView>
|
|
||||||
</VerticalStackLayout>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--<Rectangle WidthRequest="200" HeightRequest="300" HorizontalOptions="Start" BackgroundColor="#72a3b3">
|
|
||||||
<Rectangle.Fill>
|
|
||||||
<LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
|
|
||||||
<GradientStop Color="#cdffd8" Offset="0.0" />-->
|
|
||||||
<!--<GradientStop Color="#94b9ff" Offset="1.0" /></LinearGradientBrush></Rectangle.Fill></Rectangle>-->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
|
|
||||||
</ContentPage>
|
|
@ -1,9 +0,0 @@
|
|||||||
namespace Ohara;
|
|
||||||
|
|
||||||
public partial class NewPage2 : ContentPage
|
|
||||||
{
|
|
||||||
public NewPage2()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,142 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
x:Class="Ohara.PageBateau"
|
||||||
|
Title="PageBateau">
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="2*" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="300" />
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<VerticalStackLayout BackgroundColor="#72a3b3" Grid.Row="0" Grid.Column="0" Spacing="10">
|
||||||
|
|
||||||
|
<Image Source="ohara2.png" HeightRequest="300" HorizontalOptions="Center" >
|
||||||
|
<Image.Clip>
|
||||||
|
<EllipseGeometry Center="150,90" RadiusX="80" RadiusY="80"/>
|
||||||
|
</Image.Clip>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
<Button Style="{StaticResource buttonMenu}" Text="Accueil" Clicked="Hyperlink_Accueil"/>
|
||||||
|
<Button Style="{StaticResource buttonMenu}" Text="Carte" Clicked="Hyperlink_Carte"/>
|
||||||
|
<Button Style="{StaticResource buttonMenu}" Text="Personnages" Clicked="Hyperlink_Perso"/>
|
||||||
|
<Button Style="{StaticResource buttonMenu}" Text="Fruits du démon" Clicked="Hyperlink_FDD"/>
|
||||||
|
<Button Style="{StaticResource buttonMenu2}" Text="Bateaux"/>
|
||||||
|
<Button Style="{StaticResource buttonMenu}" Text="Îles"/>
|
||||||
|
<Button Style="{StaticResource buttonMenu}" Text="Bestiaire"/>
|
||||||
|
<Button Style="{StaticResource buttonMenu}" Text="Équipages" Clicked="Hyperlink_Equip"/>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
<VerticalStackLayout Grid.Row="0" Grid.Column="1" Spacing="40">
|
||||||
|
<Grid BackgroundColor="#72a3b3" Padding="10" ColumnSpacing="50" >
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="10*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions >
|
||||||
|
<ColumnDefinition Width="20*"/>
|
||||||
|
<ColumnDefinition Width="25*"/>
|
||||||
|
<ColumnDefinition Width="10*"/>
|
||||||
|
<ColumnDefinition Width="10*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<SearchBar Placeholder="Rechercher..." BackgroundColor="#bfe5ef" Grid.Column="0"/>
|
||||||
|
<Frame CornerRadius="20" BackgroundColor="#bfe5ef" BorderColor="#bfe5ef" Grid.Column="2">
|
||||||
|
<Label Text="Filtrer" HorizontalTextAlignment="Center" />
|
||||||
|
</Frame>
|
||||||
|
|
||||||
|
<Frame CornerRadius="20" BackgroundColor="#bfe5ef" BorderColor="#bfe5ef" Grid.Column="3">
|
||||||
|
<Label Text="Trier" HorizontalTextAlignment="Center" />
|
||||||
|
</Frame>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<ScrollView Orientation="Horizontal" HorizontalScrollBarVisibility="Always">
|
||||||
|
<CollectionView x:Name="listeBateau" ItemsLayout="HorizontalList">
|
||||||
|
<CollectionView.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
|
||||||
|
<Grid Padding="50" ColumnSpacing="10">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="400"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="750"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
|
||||||
|
<Frame
|
||||||
|
CornerRadius="25"
|
||||||
|
BorderColor="#e2edf1"
|
||||||
|
IsClippedToBounds="True"
|
||||||
|
Padding="0"
|
||||||
|
HeightRequest="800"
|
||||||
|
WidthRequest="450">
|
||||||
|
<Image
|
||||||
|
Source="{Binding Image}"
|
||||||
|
|
||||||
|
Aspect="Fill"
|
||||||
|
/>
|
||||||
|
</Frame>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Frame CornerRadius="20"
|
||||||
|
BorderColor="#72a3b3"
|
||||||
|
BackgroundColor="#72a3b3"
|
||||||
|
Margin="20, 50" Padding="15"
|
||||||
|
WidthRequest="275"
|
||||||
|
HeightRequest="150"
|
||||||
|
Grid.Row="0"
|
||||||
|
VerticalOptions="End">
|
||||||
|
|
||||||
|
|
||||||
|
<StackLayout Orientation="Vertical" Spacing="10" VerticalOptions="Center">
|
||||||
|
<Label
|
||||||
|
Text="{Binding Nom}"
|
||||||
|
FontAttributes="Bold"
|
||||||
|
FontSize="22"
|
||||||
|
TextColor="White"
|
||||||
|
HorizontalOptions="Center"
|
||||||
|
/>
|
||||||
|
<Label
|
||||||
|
Text="-----------------------------"
|
||||||
|
FontAttributes="Bold"
|
||||||
|
FontSize="20"
|
||||||
|
TextColor="White"
|
||||||
|
HorizontalOptions="Center"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<Label
|
||||||
|
Text="Cliquez ici pour voir en détail"
|
||||||
|
FontAttributes="Bold,Italic"
|
||||||
|
FontSize="15"
|
||||||
|
TextColor="White"
|
||||||
|
TextDecorations="Underline"
|
||||||
|
HorizontalOptions="Center"/>
|
||||||
|
|
||||||
|
</StackLayout>
|
||||||
|
</Frame>
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
</CollectionView.ItemTemplate>
|
||||||
|
</CollectionView>
|
||||||
|
</ScrollView>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--<Rectangle WidthRequest="200" HeightRequest="300" HorizontalOptions="Start" BackgroundColor="#72a3b3">
|
||||||
|
<Rectangle.Fill>
|
||||||
|
<LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
|
||||||
|
<GradientStop Color="#cdffd8" Offset="0.0" />-->
|
||||||
|
<!--<GradientStop Color="#94b9ff" Offset="1.0" /></LinearGradientBrush></Rectangle.Fill></Rectangle>-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
|
||||||
|
</ContentPage>
|
@ -0,0 +1,37 @@
|
|||||||
|
using Model.Stub;
|
||||||
|
using Model;
|
||||||
|
|
||||||
|
namespace Ohara;
|
||||||
|
|
||||||
|
public partial class PageBateau : ContentPage
|
||||||
|
{
|
||||||
|
public PageBateau()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
List<Bateau> bateau = StubBateau.RecupererBateau().ToList();
|
||||||
|
|
||||||
|
listeBateau.ItemsSource = bateau;
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void Hyperlink_FDD(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
await Navigation.PushAsync(new PageFDD());
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void Hyperlink_Equip(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
await Navigation.PushAsync(new PageEquipage());
|
||||||
|
}
|
||||||
|
private async void Hyperlink_Perso(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
await Navigation.PushAsync(new PagePersonnage());
|
||||||
|
}
|
||||||
|
private async void Hyperlink_Carte(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
await Navigation.PushAsync(new PageCarte());
|
||||||
|
}
|
||||||
|
private async void Hyperlink_Accueil(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
await Navigation.PushAsync(new MainPage());
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,32 @@
|
|||||||
|
namespace Ohara;
|
||||||
|
|
||||||
|
public partial class PageCarte : ContentPage
|
||||||
|
{
|
||||||
|
public PageCarte()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
private async void Hyperlink_Accueil(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
await Navigation.PushAsync(new MainPage());
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void Hyperlink_FDD(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
await Navigation.PushAsync(new PageFDD());
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void Hyperlink_Equip(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
await Navigation.PushAsync(new PageEquipage());
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void Hyperlink_Perso(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
await Navigation.PushAsync(new PagePersonnage());
|
||||||
|
}
|
||||||
|
private async void Hyperlink_Bateau(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
await Navigation.PushAsync(new PageBateau());
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,128 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
x:Class="Ohara.PageInfoEquipage"
|
||||||
|
Title="PageInfoEquipage"
|
||||||
|
BackgroundColor="#e2edf1">
|
||||||
|
<Grid>
|
||||||
|
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="2*" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="300" />
|
||||||
|
<ColumnDefinition Width="90*" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<VerticalStackLayout BackgroundColor="#72a3b3" Grid.Row="0" Grid.Column="0" Spacing="10">
|
||||||
|
|
||||||
|
<Image Source="ohara2.png" HeightRequest="300" HorizontalOptions="Center" >
|
||||||
|
<Image.Clip>
|
||||||
|
<EllipseGeometry Center="150,90" RadiusX="80" RadiusY="80"/>
|
||||||
|
</Image.Clip>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
<Button Style="{StaticResource buttonMenu}" Text="Accueil"/>
|
||||||
|
<Button Style="{StaticResource buttonMenu}" Text="Carte"/>
|
||||||
|
<Button Style="{StaticResource buttonMenu}" Text="Personnages"/>
|
||||||
|
<Button Style="{StaticResource buttonMenu2}" Text="Fruits du démon"/>
|
||||||
|
<Button Style="{StaticResource buttonMenu}" Text="Bateaux"/>
|
||||||
|
<Button Style="{StaticResource buttonMenu}" Text="Îles"/>
|
||||||
|
<Button Style="{StaticResource buttonMenu}" Text="Bestiaire"/>
|
||||||
|
<Button Style="{StaticResource buttonMenu}" Text="Équipages"/>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
<ScrollView Grid.Row="0" Grid.Column="1" Orientation="Vertical" VerticalScrollBarVisibility="Always">
|
||||||
|
<VerticalStackLayout Spacing="40">
|
||||||
|
<CollectionView x:Name="listeEquip">
|
||||||
|
<CollectionView.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
|
||||||
|
<VerticalStackLayout Spacing="10" Padding="20">
|
||||||
|
|
||||||
|
<Grid Padding="10" ColumnSpacing="20">
|
||||||
|
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="45*"/>
|
||||||
|
<ColumnDefinition Width="45*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<VerticalStackLayout Grid.Column="0" Spacing="4">
|
||||||
|
<Frame BorderColor="#72a3b3">
|
||||||
|
<Label Text="Sommaire" TextColor="#72a3b3"/>
|
||||||
|
</Frame>
|
||||||
|
<Frame BorderColor="#72a3b3">
|
||||||
|
<Label Text="1 - Description" TextColor="#72a3b3"/>
|
||||||
|
</Frame>
|
||||||
|
<Frame BorderColor="#72a3b3">
|
||||||
|
<Label Text="2 - Membre(s)" TextColor="#72a3b3"/>
|
||||||
|
</Frame>
|
||||||
|
<Frame BorderColor="#72a3b3">
|
||||||
|
<Label Text="3 - Allié(s)" TextColor="#72a3b3"/>
|
||||||
|
</Frame>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
<VerticalStackLayout Grid.Column="1" Spacing="4">
|
||||||
|
<Frame BorderColor="#72a3b3">
|
||||||
|
<Label
|
||||||
|
VerticalOptions="End"
|
||||||
|
|
||||||
|
HorizontalOptions="Center"
|
||||||
|
HorizontalTextAlignment="Center"
|
||||||
|
FontSize="20"
|
||||||
|
Text="{Binding Nom}"
|
||||||
|
TextColor="#72a3b3"
|
||||||
|
FontAttributes="Bold" />
|
||||||
|
</Frame>
|
||||||
|
<Frame BorderColor="#72a3b3">
|
||||||
|
<Image
|
||||||
|
Source="{Binding Image}"
|
||||||
|
HeightRequest="270"
|
||||||
|
WidthRequest="270"
|
||||||
|
Aspect="AspectFit"
|
||||||
|
|
||||||
|
/>
|
||||||
|
</Frame>
|
||||||
|
<Frame BorderColor="#72a3b3">
|
||||||
|
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
|
||||||
|
<Label Text="Nom Romanisé :" TextColor="#72a3b3"/>
|
||||||
|
<Label Text="{Binding NomRomanise}" TextColor="#72a3b3"/>
|
||||||
|
</StackLayout>
|
||||||
|
</Frame>
|
||||||
|
<Frame BorderColor="#72a3b3">
|
||||||
|
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
|
||||||
|
<Label Text="Region :" TextColor="#72a3b3"/>
|
||||||
|
<Label Text="{Binding Region}" TextColor="#72a3b3"/>
|
||||||
|
</StackLayout>
|
||||||
|
</Frame>
|
||||||
|
<Frame BorderColor="#72a3b3">
|
||||||
|
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
|
||||||
|
<Label Text="Statut :" TextColor="#72a3b3"/>
|
||||||
|
<Label Text="{Binding Statut}" TextColor="#72a3b3"/>
|
||||||
|
</StackLayout>
|
||||||
|
</Frame>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
<Label Text="Description :" TextColor="#72a3b3" FontSize="20" FontAttributes="Bold"/>
|
||||||
|
<Line X1="0" Y1="0" X2="3000" Y2="0" Stroke="#72a3b3" />
|
||||||
|
<Label Text="{Binding Description}" TextColor="#72a3b3" />
|
||||||
|
<Label Text="Membre(s) :" TextColor="#72a3b3" FontSize="20" FontAttributes="Bold"/>
|
||||||
|
<Line X1="0" Y1="0" X2="3000" Y2="0" Stroke="#72a3b3" />
|
||||||
|
<Label Text="{Binding Membre}" TextColor="#72a3b3" />
|
||||||
|
<Label Text="Allié(s) :" TextColor="#72a3b3" FontSize="20" FontAttributes="Bold"/>
|
||||||
|
<Line X1="0" Y1="0" X2="3000" Y2="0" Stroke="#72a3b3" />
|
||||||
|
<Label Text="{Binding Allie}" TextColor="#72a3b3" />
|
||||||
|
</VerticalStackLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</DataTemplate>
|
||||||
|
</CollectionView.ItemTemplate>
|
||||||
|
</CollectionView>
|
||||||
|
|
||||||
|
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</ScrollView>
|
||||||
|
</Grid>
|
||||||
|
</ContentPage>
|
@ -0,0 +1,18 @@
|
|||||||
|
using Model.Stub;
|
||||||
|
using Model;
|
||||||
|
|
||||||
|
namespace Ohara;
|
||||||
|
|
||||||
|
public partial class PageInfoEquipage : ContentPage
|
||||||
|
{
|
||||||
|
public PageInfoEquipage()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
|
||||||
|
|
||||||
|
List<Equipage> Lequipage = StubEquipage.RecupererEquipage().ToList();
|
||||||
|
|
||||||
|
|
||||||
|
listeEquip.ItemsSource = Lequipage;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,142 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
x:Class="Ohara.PagePersonnage"
|
||||||
|
BackgroundColor="#e2edf1">
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="2*" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="300" />
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<VerticalStackLayout BackgroundColor="#72a3b3" Grid.Row="0" Grid.Column="0" Spacing="10">
|
||||||
|
|
||||||
|
<Image Source="ohara2.png" HeightRequest="300" HorizontalOptions="Center" >
|
||||||
|
<Image.Clip>
|
||||||
|
<EllipseGeometry Center="150,90" RadiusX="80" RadiusY="80"/>
|
||||||
|
</Image.Clip>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
<Button Style="{StaticResource buttonMenu}" Text="Accueil" Clicked="Hyperlink_Accueil"/>
|
||||||
|
<Button Style="{StaticResource buttonMenu}" Text="Carte" Clicked="Hyperlink_Carte"/>
|
||||||
|
<Button Style="{StaticResource buttonMenu2}" Text="Personnages"/>
|
||||||
|
<Button Style="{StaticResource buttonMenu}" Text="Fruits du démon" Clicked="Hyperlink_FDD"/>
|
||||||
|
<Button Style="{StaticResource buttonMenu}" Text="Bateaux" Clicked="Hyperlink_Bateau"/>
|
||||||
|
<Button Style="{StaticResource buttonMenu}" Text="Îles"/>
|
||||||
|
<Button Style="{StaticResource buttonMenu}" Text="Bestiaire"/>
|
||||||
|
<Button Style="{StaticResource buttonMenu}" Text="Équipages" Clicked="Hyperlink_Equip"/>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<VerticalStackLayout Grid.Row="0" Grid.Column="1" Spacing="40">
|
||||||
|
<Grid BackgroundColor="#72a3b3" Padding="10" ColumnSpacing="50" >
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="10*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions >
|
||||||
|
<ColumnDefinition Width="20*"/>
|
||||||
|
<ColumnDefinition Width="25*"/>
|
||||||
|
<ColumnDefinition Width="10*"/>
|
||||||
|
<ColumnDefinition Width="10*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<SearchBar Placeholder="Rechercher..." BackgroundColor="#bfe5ef" Grid.Column="0"/>
|
||||||
|
<Frame CornerRadius="20" BackgroundColor="#bfe5ef" BorderColor="#bfe5ef" Grid.Column="2">
|
||||||
|
<Label Text="Filtrer" HorizontalTextAlignment="Center" />
|
||||||
|
</Frame>
|
||||||
|
|
||||||
|
<Frame CornerRadius="20" BackgroundColor="#bfe5ef" BorderColor="#bfe5ef" Grid.Column="3">
|
||||||
|
<Label Text="Trier" HorizontalTextAlignment="Center" />
|
||||||
|
</Frame>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<ScrollView Orientation="Horizontal" HorizontalScrollBarVisibility="Always">
|
||||||
|
<CollectionView x:Name="listePerso" ItemsLayout="HorizontalList">
|
||||||
|
<CollectionView.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
|
||||||
|
<Grid Padding="50" ColumnSpacing="10">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="400"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="750"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<Frame
|
||||||
|
CornerRadius="25"
|
||||||
|
BorderColor="#e2edf1"
|
||||||
|
IsClippedToBounds="True"
|
||||||
|
Padding="0"
|
||||||
|
HeightRequest="800"
|
||||||
|
WidthRequest="450">
|
||||||
|
<Image
|
||||||
|
Source="{Binding Image}"
|
||||||
|
|
||||||
|
Aspect="Fill"
|
||||||
|
/>
|
||||||
|
</Frame>
|
||||||
|
|
||||||
|
<Frame CornerRadius="20"
|
||||||
|
BorderColor="#72a3b3"
|
||||||
|
BackgroundColor="#72a3b3"
|
||||||
|
Margin="20, 50" Padding="15"
|
||||||
|
WidthRequest="275"
|
||||||
|
HeightRequest="150"
|
||||||
|
Grid.Row="0"
|
||||||
|
VerticalOptions="End">
|
||||||
|
|
||||||
|
<StackLayout Orientation="Vertical" Spacing="10" VerticalOptions="Center">
|
||||||
|
<Label
|
||||||
|
Text="{Binding Nom}"
|
||||||
|
FontAttributes="Bold"
|
||||||
|
FontSize="22"
|
||||||
|
TextColor="White"
|
||||||
|
HorizontalOptions="Center"
|
||||||
|
/>
|
||||||
|
<Label
|
||||||
|
Text="-----------------------------"
|
||||||
|
FontAttributes="Bold"
|
||||||
|
FontSize="20"
|
||||||
|
TextColor="White"
|
||||||
|
HorizontalOptions="Center"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<Label
|
||||||
|
Text="Cliquez ici pour voir en détail"
|
||||||
|
FontAttributes="Bold,Italic"
|
||||||
|
FontSize="15"
|
||||||
|
TextColor="White"
|
||||||
|
TextDecorations="Underline"
|
||||||
|
HorizontalOptions="Center"/>
|
||||||
|
|
||||||
|
</StackLayout>
|
||||||
|
</Frame>
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
</CollectionView.ItemTemplate>
|
||||||
|
</CollectionView>
|
||||||
|
</ScrollView>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--<Rectangle WidthRequest="200" HeightRequest="300" HorizontalOptions="Start" BackgroundColor="#72a3b3">
|
||||||
|
<Rectangle.Fill>
|
||||||
|
<LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
|
||||||
|
<GradientStop Color="#cdffd8" Offset="0.0" />-->
|
||||||
|
<!--<GradientStop Color="#94b9ff" Offset="1.0" /></LinearGradientBrush></Rectangle.Fill></Rectangle>-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
|
||||||
|
</ContentPage>
|
@ -0,0 +1,40 @@
|
|||||||
|
namespace Ohara;
|
||||||
|
|
||||||
|
using Model;
|
||||||
|
using Model.Stub;
|
||||||
|
public partial class PagePersonnage : ContentPage
|
||||||
|
{
|
||||||
|
|
||||||
|
public PagePersonnage()
|
||||||
|
{
|
||||||
|
|
||||||
|
InitializeComponent();
|
||||||
|
List<Personnage> perso = StubPersonnage.RecupererPersonnage().ToList();
|
||||||
|
|
||||||
|
|
||||||
|
listePerso.ItemsSource = perso;
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void Hyperlink_Accueil(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
await Navigation.PushAsync(new MainPage());
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void Hyperlink_FDD(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
await Navigation.PushAsync(new PageFDD());
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void Hyperlink_Equip(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
await Navigation.PushAsync(new PageEquipage());
|
||||||
|
}
|
||||||
|
private async void Hyperlink_Carte(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
await Navigation.PushAsync(new PageCarte());
|
||||||
|
}
|
||||||
|
private async void Hyperlink_Bateau(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
await Navigation.PushAsync(new PageBateau());
|
||||||
|
}
|
||||||
|
}
|
After Width: | Height: | Size: 1.9 MiB |
After Width: | Height: | Size: 3.0 MiB |
After Width: | Height: | Size: 2.1 MiB |
After Width: | Height: | Size: 2.6 MiB |
Loading…
Reference in new issue