parent
afbbd9bc93
commit
b0f0b4bc34
@ -0,0 +1,85 @@
|
||||
<?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.PageBestiaire"
|
||||
Title="PageBestiaire"
|
||||
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="200" HorizontalOptions="Center">
|
||||
<Image.Clip>
|
||||
<EllipseGeometry Center="150,90" RadiusX="80" RadiusY="80"/>
|
||||
</Image.Clip>
|
||||
</Image>
|
||||
|
||||
<Button Style="{StaticResource buttonMenu}" Text="Accueil" Clicked="Hyperlink_Acceuil"/>
|
||||
<Button Style="{StaticResource buttonMenu}" Text="Carte"/>
|
||||
<Button Style="{StaticResource buttonMenu}" Text="Personnages"/>
|
||||
<Button Style="{StaticResource buttonMenu}" Text="Fruits du démon" Clicked="Hyperlink_FDD"/>
|
||||
<Button Style="{StaticResource buttonMenu}" Text="Bateaux"/>
|
||||
<Button Style="{StaticResource buttonMenu}" Text="Îles"/>
|
||||
<Button Style="{StaticResource buttonMenu2}" 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>
|
||||
|
||||
<CollectionView x:Name="listeBest" ItemsUpdatingScrollMode="KeepScrollOffset" VerticalScrollBarVisibility="Always" ItemsLayout="VerticalGrid, 4">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid Padding="10" ColumnSpacing="10" RowSpacing="50">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="25*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image
|
||||
Source="{Binding Image}"
|
||||
HeightRequest="270"
|
||||
WidthRequest="270"
|
||||
|
||||
/>
|
||||
|
||||
<Label
|
||||
VerticalOptions="End"
|
||||
|
||||
HorizontalOptions="Center"
|
||||
HorizontalTextAlignment="Center"
|
||||
Padding="5"
|
||||
Margin="10"
|
||||
Text="{Binding Nom}"
|
||||
BackgroundColor="#72a3b3"
|
||||
FontAttributes="Bold" />
|
||||
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
|
||||
</VerticalStackLayout>
|
||||
</Grid>
|
||||
</ContentPage>
|
@ -0,0 +1,32 @@
|
||||
using Model.Stub;
|
||||
using Model;
|
||||
|
||||
namespace Ohara;
|
||||
|
||||
public partial class PageBestiaire : ContentPage
|
||||
{
|
||||
public PageBestiaire()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
List<Bestiaire> Lbest = StubBestiaire.RecupererBestiaire().ToList();
|
||||
|
||||
|
||||
listeBest.ItemsSource = Lbest;
|
||||
}
|
||||
private async void Hyperlink_FDD(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new PageFDD());
|
||||
}
|
||||
|
||||
private async void Hyperlink_Acceuil(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new MainPage());
|
||||
}
|
||||
|
||||
private async void Hyperlink_Equip(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new PageEquipage());
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,116 @@
|
||||
<?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.PageInfoFdd"
|
||||
Title="PageInfoFdd"
|
||||
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="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 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>
|
||||
<VerticalStackLayout Grid.Row="0" Grid.Column="1" Spacing="40">
|
||||
|
||||
<CollectionView x:Name="listObj" >
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<VerticalStackLayout Spacing="10" Padding="20" >
|
||||
|
||||
<Grid ColumnSpacing="45" Padding="30">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="30*"/>
|
||||
<ColumnDefinition Width="30*"/>
|
||||
|
||||
</Grid.ColumnDefinitions>
|
||||
<VerticalStackLayout Grid.Column="0" Spacing="2" Padding="5">
|
||||
<Frame BorderColor="#72a3b3" BackgroundColor="#e2edf1">
|
||||
<Label Text="Sommaire :" Style="{StaticResource titreInfo}" />
|
||||
</Frame>
|
||||
<Frame BorderColor="#72a3b3" BackgroundColor="#e2edf1">
|
||||
<Label Text="1 Description" TextColor="#72a3b3"/>
|
||||
</Frame>
|
||||
<Frame BorderColor="#72a3b3" BackgroundColor="#e2edf1">
|
||||
<Label Text="2 Force/Faiblesses" TextColor="#72a3b3"/>
|
||||
</Frame>
|
||||
<Frame BorderColor="#72a3b3" BackgroundColor="#e2edf1">
|
||||
<Label Text="3 Utilisateurs" TextColor="#72a3b3"/>
|
||||
</Frame>
|
||||
</VerticalStackLayout>
|
||||
<VerticalStackLayout Grid.Column="1" Spacing="2" Padding="5">
|
||||
<Frame BorderColor="#72a3b3" BackgroundColor="#e2edf1">
|
||||
<Label Text="{Binding Nom}" HorizontalOptions="Center" Style="{StaticResource titreInfo}" />
|
||||
</Frame>
|
||||
<Frame BorderColor="#72a3b3" BackgroundColor="#e2edf1">
|
||||
<Image
|
||||
Source="{Binding Image}"
|
||||
HeightRequest="250"
|
||||
WidthRequest="250"/>
|
||||
</Frame>
|
||||
<Frame BorderColor="#72a3b3" BackgroundColor="#e2edf1">
|
||||
<HorizontalStackLayout Spacing="5" HorizontalOptions="Center">
|
||||
<Label Text="Nom romanisé :" TextColor="#72a3b3" FontAttributes="Bold"/>
|
||||
<Label Text="{Binding NomRomanise}" TextColor="#72a3b3"/>
|
||||
</HorizontalStackLayout>
|
||||
</Frame>
|
||||
<Frame BorderColor="#72a3b3" BackgroundColor="#e2edf1">
|
||||
<HorizontalStackLayout Spacing="5" HorizontalOptions="Center">
|
||||
<Label Text="Type :" TextColor="#72a3b3" FontAttributes="Bold"/>
|
||||
<Label Text="{Binding Type}" TextColor="#72a3b3"/>
|
||||
</HorizontalStackLayout>
|
||||
</Frame>
|
||||
<Frame BorderColor="#72a3b3" BackgroundColor="#e2edf1">
|
||||
<HorizontalStackLayout Spacing="5" HorizontalOptions="Center">
|
||||
<Label Text="Premier apparition (chapitre) :" TextColor="#72a3b3" FontAttributes="Bold"/>
|
||||
<Label Text="{Binding PremierChap}" TextColor="#72a3b3"/>
|
||||
</HorizontalStackLayout>
|
||||
</Frame>
|
||||
<Frame BorderColor="#72a3b3" BackgroundColor="#e2edf1">
|
||||
<HorizontalStackLayout Spacing="5" HorizontalOptions="Center">
|
||||
<Label Text="Premier apparition (episode) :" TextColor="#72a3b3" FontAttributes="Bold"/>
|
||||
<Label Text="{Binding PremierEp}" TextColor="#72a3b3"/>
|
||||
</HorizontalStackLayout>
|
||||
</Frame>
|
||||
|
||||
</VerticalStackLayout>
|
||||
</Grid>
|
||||
|
||||
|
||||
<Label Text="Description :" Style="{StaticResource titreInfo}"/>
|
||||
<Line Stroke="#72a3b3" StrokeThickness="2" X1="0" X2="1500"/>
|
||||
<Label Text="{Binding Description}" TextColor="#72a3b3"/>
|
||||
<Label Text="Force / Faiblesses :" Style="{StaticResource titreInfo}"/>
|
||||
<Line Stroke="#72a3b3" StrokeThickness="2" X1="0" X2="1500"/>
|
||||
<Label Text="{Binding Forces}" TextColor="#72a3b3"/>
|
||||
<Label Text="{Binding Faiblesses}" TextColor="#72a3b3"/>
|
||||
<Label Text="Utilisateurs :" Style="{StaticResource titreInfo}"/>
|
||||
<Line Stroke="#72a3b3" StrokeThickness="2" X1="0" X2="1500"/>
|
||||
</VerticalStackLayout>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
</VerticalStackLayout>
|
||||
|
||||
</Grid>
|
||||
</ContentPage>
|
@ -0,0 +1,14 @@
|
||||
using Model;
|
||||
using Model.Stub;
|
||||
|
||||
namespace Ohara;
|
||||
|
||||
public partial class PageInfoFdd : ContentPage
|
||||
{
|
||||
public PageInfoFdd()
|
||||
{
|
||||
InitializeComponent();
|
||||
List<FruitDuDemon> fdd = StubFruitDuDemon.RecupererFruit().ToList();
|
||||
listObj.ItemsSource = fdd;
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 112 KiB |
After Width: | Height: | Size: 124 KiB |
After Width: | Height: | Size: 269 KiB |
After Width: | Height: | Size: 930 KiB |
After Width: | Height: | Size: 102 KiB |
Loading…
Reference in new issue