parent
0af1838626
commit
4dbaf4fc68
@ -1,46 +1,72 @@
|
||||
using Model.Stub;
|
||||
using Model;
|
||||
using Plugin.Maui.Audio;
|
||||
|
||||
namespace Ohara;
|
||||
|
||||
public partial class PageBateau : ContentPage
|
||||
{
|
||||
public PageBateau()
|
||||
private readonly IAudioManager audioManager;
|
||||
private static string chemin = "Sons/test.wav";
|
||||
|
||||
public PageBateau(IAudioManager audioManager)
|
||||
{
|
||||
InitializeComponent();
|
||||
List<Bateau> bateau = StubBateau.RecupererBateau().ToList();
|
||||
|
||||
listeBateau.ItemsSource = bateau;
|
||||
this.audioManager = audioManager;
|
||||
}
|
||||
|
||||
private async void Hyperlink_Accueil(object sender, EventArgs e)
|
||||
{
|
||||
var player = audioManager.CreatePlayer(await FileSystem.OpenAppPackageFileAsync(chemin));
|
||||
await Navigation.PushAsync(new MainPage(new Plugin.Maui.Audio.AudioManager()));
|
||||
player.Play();
|
||||
}
|
||||
|
||||
private async void Hyperlink_FDD(object sender, EventArgs e)
|
||||
{
|
||||
var player = audioManager.CreatePlayer(await FileSystem.OpenAppPackageFileAsync(chemin));
|
||||
await Navigation.PushAsync(new PageFDD());
|
||||
player.Play();
|
||||
}
|
||||
|
||||
private async void Hyperlink_Equip(object sender, EventArgs e)
|
||||
{
|
||||
var player = audioManager.CreatePlayer(await FileSystem.OpenAppPackageFileAsync(chemin));
|
||||
await Navigation.PushAsync(new PageEquipage());
|
||||
player.Play();
|
||||
}
|
||||
private async void Hyperlink_Perso(object sender, EventArgs e)
|
||||
{
|
||||
var player = audioManager.CreatePlayer(await FileSystem.OpenAppPackageFileAsync(chemin));
|
||||
await Navigation.PushAsync(new PagePersonnage());
|
||||
player.Play();
|
||||
}
|
||||
private async void Hyperlink_Carte(object sender, EventArgs e)
|
||||
{
|
||||
var player = audioManager.CreatePlayer(await FileSystem.OpenAppPackageFileAsync(chemin));
|
||||
await Navigation.PushAsync(new PageCarte());
|
||||
player.Play();
|
||||
}
|
||||
private async void Hyperlink_Accueil(object sender, EventArgs e)
|
||||
private async void Hyperlink_Bateau(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new MainPage());
|
||||
var player = audioManager.CreatePlayer(await FileSystem.OpenAppPackageFileAsync(chemin));
|
||||
await Navigation.PushAsync(new PageBateau(new Plugin.Maui.Audio.AudioManager()));
|
||||
player.Play();
|
||||
}
|
||||
|
||||
private async void Hyperlink_Bestiaire(object sender, EventArgs e)
|
||||
{
|
||||
var player = audioManager.CreatePlayer(await FileSystem.OpenAppPackageFileAsync(chemin));
|
||||
await Navigation.PushAsync(new PageBestiaire());
|
||||
player.Play();
|
||||
}
|
||||
private async void Hyperlink_Ile(object sender, EventArgs e)
|
||||
{
|
||||
var player = audioManager.CreatePlayer(await FileSystem.OpenAppPackageFileAsync(chemin));
|
||||
await Navigation.PushAsync(new PageIle());
|
||||
player.Play();
|
||||
}
|
||||
}
|
@ -0,0 +1,122 @@
|
||||
<?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.PageInfoBateau"
|
||||
Title="PageInfoBateau"
|
||||
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" 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" Clicked="Hyperlink_Bateau"/>
|
||||
<Button Style="{StaticResource buttonMenu}" Text="Îles" Clicked="Hyperlink_Ile"/>
|
||||
<Button Style="{StaticResource buttonMenu}" Text="Bestiaire" Clicked="Hyperlink_Bestiaire"/>
|
||||
<Button Style="{StaticResource buttonMenu}" Text="Équipages" Clicked="Hyperlink_Equip"/>
|
||||
</VerticalStackLayout>
|
||||
<ScrollView Grid.Row="0" Grid.Column="1" Orientation="Vertical" VerticalScrollBarVisibility="Always">
|
||||
<VerticalStackLayout Spacing="40">
|
||||
<CollectionView x:Name="listeBateau">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
|
||||
<VerticalStackLayout Spacing="10" Padding="40">
|
||||
|
||||
<Grid ColumnSpacing="20">
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="40*"/>
|
||||
<ColumnDefinition Width="40*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<VerticalStackLayout Grid.Column="0" Spacing="4">
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<Label Text="Sommaire" Style="{StaticResource titreInfo}"/>
|
||||
</Frame>
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<Label Text="1 - Description" TextColor="#72a3b3"/>
|
||||
</Frame>
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<Label Text="2 - Caracteristiques" TextColor="#72a3b3"/>
|
||||
</Frame>
|
||||
|
||||
</VerticalStackLayout>
|
||||
<VerticalStackLayout Grid.Column="1" Spacing="4">
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<Label Style="{StaticResource titreInfo}" Text="{Binding Nom}"/>
|
||||
</Frame>
|
||||
<Frame Style="{StaticResource frameInfo}" >
|
||||
<Image
|
||||
Source="{Binding Image}"
|
||||
HeightRequest="200"
|
||||
WidthRequest="300"
|
||||
|
||||
|
||||
/>
|
||||
</Frame>
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
|
||||
<Label Text="Nom Romanisé :" TextColor="#72a3b3" FontAttributes="Bold"/>
|
||||
<Label Text="{Binding NomRomanise}" TextColor="#72a3b3"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
|
||||
<Label Text="Affiliation(s) :" TextColor="#72a3b3" FontAttributes="Bold"/>
|
||||
<Label Text="{Binding Affiliation}" TextColor="#72a3b3"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
|
||||
<Label Text="Première apparition manga :" TextColor="#72a3b3" FontAttributes="Bold"/>
|
||||
<Label Text="{Binding PremierChap}" TextColor="#72a3b3"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
|
||||
<Label Text="Première apparition anime :" TextColor="#72a3b3" FontAttributes="Bold"/>
|
||||
<Label Text="{Binding PremierEp}" TextColor="#72a3b3"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
</VerticalStackLayout>
|
||||
|
||||
|
||||
|
||||
</Grid>
|
||||
<Label Text="Description :" TextColor="#72a3b3" FontSize="20" FontAttributes="Bold"/>
|
||||
<Line X1="0" Y1="0" X2="3000" Y2="0" StrokeThickness="2" Stroke="#72a3b3" />
|
||||
<Label Text="{Binding Description}" TextColor="#72a3b3" />
|
||||
<Label Text="Caracteristiques :" TextColor="#72a3b3" FontSize="20" FontAttributes="Bold"/>
|
||||
<Line X1="0" Y1="0" X2="3000" Y2="0" StrokeThickness="2" Stroke="#72a3b3" />
|
||||
<Label Text="{Binding Caracteristique}" TextColor="#72a3b3" />
|
||||
|
||||
</VerticalStackLayout>
|
||||
|
||||
|
||||
|
||||
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
|
||||
|
||||
</VerticalStackLayout>
|
||||
</ScrollView>
|
||||
</Grid>
|
||||
</ContentPage>
|
@ -0,0 +1,53 @@
|
||||
using Model.Stub;
|
||||
using Model;
|
||||
|
||||
namespace Ohara;
|
||||
|
||||
public partial class PageInfoBateau : ContentPage
|
||||
{
|
||||
public PageInfoBateau()
|
||||
{
|
||||
InitializeComponent();
|
||||
List<Bateau> bateau = StubBateau.RecupererBateau().ToList();
|
||||
|
||||
listeBateau.ItemsSource = bateau;
|
||||
}
|
||||
|
||||
|
||||
private async void Hyperlink_Accueil(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new MainPage(new Plugin.Maui.Audio.AudioManager()));
|
||||
}
|
||||
|
||||
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(new Plugin.Maui.Audio.AudioManager()));
|
||||
}
|
||||
|
||||
private async void Hyperlink_Bestiaire(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new PageBestiaire());
|
||||
}
|
||||
private async void Hyperlink_Ile(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new PageIle());
|
||||
}
|
||||
|
||||
private async void Hyperlink_Perso(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new PagePersonnage());
|
||||
}
|
||||
}
|
@ -0,0 +1,122 @@
|
||||
<?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.PageInfoIle"
|
||||
Title="PageInfoIle"
|
||||
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" 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 buttonMenu}" Text="Bateaux" Clicked="Hyperlink_Bateau"/>
|
||||
<Button Style="{StaticResource buttonMenu2}" Text="Îles" Clicked="Hyperlink_Ile"/>
|
||||
<Button Style="{StaticResource buttonMenu}" Text="Bestiaire" Clicked="Hyperlink_Bestiaire"/>
|
||||
<Button Style="{StaticResource buttonMenu}" Text="Équipages" Clicked="Hyperlink_Equip"/>
|
||||
</VerticalStackLayout>
|
||||
<ScrollView Grid.Row="0" Grid.Column="1" Orientation="Vertical" VerticalScrollBarVisibility="Always">
|
||||
<VerticalStackLayout Spacing="40">
|
||||
<CollectionView x:Name="listeIle">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
|
||||
<VerticalStackLayout Spacing="10" Padding="40">
|
||||
|
||||
<Grid ColumnSpacing="20">
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="40*"/>
|
||||
<ColumnDefinition Width="40*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<VerticalStackLayout Grid.Column="0" Spacing="4">
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<Label Text="Sommaire" Style="{StaticResource titreInfo}"/>
|
||||
</Frame>
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<Label Text="1 - Description" TextColor="#72a3b3"/>
|
||||
</Frame>
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<Label Text="2 - Caracteristiques" TextColor="#72a3b3"/>
|
||||
</Frame>
|
||||
|
||||
</VerticalStackLayout>
|
||||
<VerticalStackLayout Grid.Column="1" Spacing="4">
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<Label Style="{StaticResource titreInfo}" Text="{Binding Nom}"/>
|
||||
</Frame>
|
||||
<Frame Style="{StaticResource frameInfo}" >
|
||||
<Image
|
||||
Source="{Binding Image}"
|
||||
HeightRequest="200"
|
||||
WidthRequest="300"
|
||||
|
||||
|
||||
/>
|
||||
</Frame>
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
|
||||
<Label Text="Nom Romanisé :" TextColor="#72a3b3" FontAttributes="Bold"/>
|
||||
<Label Text="{Binding NomRomanise}" TextColor="#72a3b3"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
|
||||
<Label Text="Région :" TextColor="#72a3b3" FontAttributes="Bold"/>
|
||||
<Label Text="{Binding Region}" TextColor="#72a3b3"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
|
||||
<Label Text="Première apparition manga :" TextColor="#72a3b3" FontAttributes="Bold"/>
|
||||
<Label Text="{Binding PremierChap}" TextColor="#72a3b3"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
|
||||
<Label Text="Première apparition anime :" TextColor="#72a3b3" FontAttributes="Bold"/>
|
||||
<Label Text="{Binding PremierEp}" TextColor="#72a3b3"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
</VerticalStackLayout>
|
||||
|
||||
|
||||
|
||||
</Grid>
|
||||
<Label Text="Description :" TextColor="#72a3b3" FontSize="20" FontAttributes="Bold"/>
|
||||
<Line X1="0" Y1="0" X2="3000" Y2="0" StrokeThickness="2" Stroke="#72a3b3" />
|
||||
<Label Text="{Binding Description}" TextColor="#72a3b3" />
|
||||
<Label Text="Caracteristiques :" TextColor="#72a3b3" FontSize="20" FontAttributes="Bold"/>
|
||||
<Line X1="0" Y1="0" X2="3000" Y2="0" StrokeThickness="2" Stroke="#72a3b3" />
|
||||
<Label Text="{Binding Caracteristique}" TextColor="#72a3b3" />
|
||||
|
||||
</VerticalStackLayout>
|
||||
|
||||
|
||||
|
||||
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
|
||||
|
||||
</VerticalStackLayout>
|
||||
</ScrollView>
|
||||
</Grid>
|
||||
</ContentPage>
|
@ -0,0 +1,53 @@
|
||||
using Model.Stub;
|
||||
using Model;
|
||||
|
||||
namespace Ohara;
|
||||
|
||||
public partial class PageInfoIle : ContentPage
|
||||
{
|
||||
public PageInfoIle()
|
||||
{
|
||||
InitializeComponent();
|
||||
List<Ile> ile = StubIle.RecupererIle().ToList();
|
||||
|
||||
|
||||
listeIle.ItemsSource = ile;
|
||||
}
|
||||
|
||||
private async void Hyperlink_Accueil(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new MainPage(new Plugin.Maui.Audio.AudioManager()));
|
||||
}
|
||||
|
||||
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(new Plugin.Maui.Audio.AudioManager()));
|
||||
}
|
||||
|
||||
private async void Hyperlink_Bestiaire(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new PageBestiaire());
|
||||
}
|
||||
private async void Hyperlink_Ile(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new PageIle());
|
||||
}
|
||||
|
||||
private async void Hyperlink_Perso(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new PagePersonnage());
|
||||
}
|
||||
}
|
@ -0,0 +1,131 @@
|
||||
<?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.PageInfoPersonnage"
|
||||
Title="PageInfoPersonnage"
|
||||
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" 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" Clicked="Hyperlink_Bateau"/>
|
||||
<Button Style="{StaticResource buttonMenu}" Text="Îles" Clicked="Hyperlink_Ile"/>
|
||||
<Button Style="{StaticResource buttonMenu}" Text="Bestiaire" Clicked="Hyperlink_Bestiaire"/>
|
||||
<Button Style="{StaticResource buttonMenu}" Text="Équipages" Clicked="Hyperlink_Equip"/>
|
||||
</VerticalStackLayout>
|
||||
<ScrollView Grid.Row="0" Grid.Column="1" Orientation="Vertical" VerticalScrollBarVisibility="Always">
|
||||
<VerticalStackLayout Spacing="40">
|
||||
<CollectionView x:Name="listePerso">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
|
||||
<VerticalStackLayout Spacing="10" Padding="40">
|
||||
|
||||
<Grid ColumnSpacing="20">
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="40*"/>
|
||||
<ColumnDefinition Width="40*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<VerticalStackLayout Grid.Column="0" Spacing="4">
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<Label Text="Sommaire" Style="{StaticResource titreInfo}"/>
|
||||
</Frame>
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<Label Text="1 - Biographie" TextColor="#72a3b3"/>
|
||||
</Frame>
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<Label Text="2 - Citation" TextColor="#72a3b3"/>
|
||||
</Frame>
|
||||
|
||||
</VerticalStackLayout>
|
||||
<VerticalStackLayout Grid.Column="1" Spacing="4">
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<Label Style="{StaticResource titreInfo}" Text="{Binding Nom}"/>
|
||||
</Frame>
|
||||
<Frame Style="{StaticResource frameInfo}" >
|
||||
<Image
|
||||
Source="{Binding Image}"
|
||||
HeightRequest="200"
|
||||
WidthRequest="300"
|
||||
|
||||
|
||||
/>
|
||||
</Frame>
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
|
||||
<Label Text="Prime :" TextColor="#72a3b3" FontAttributes="Bold"/>
|
||||
<Label Text="{Binding Prime}" TextColor="#72a3b3"/>
|
||||
<Label Text="berrys" TextColor="#72a3b3"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
|
||||
<Label Text="Épithète :" TextColor="#72a3b3" FontAttributes="Bold"/>
|
||||
<Label Text="{Binding Epithete}" TextColor="#72a3b3"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
|
||||
<Label Text="Âge :" TextColor="#72a3b3" FontAttributes="Bold"/>
|
||||
<Label Text="{Binding Age}" TextColor="#72a3b3"/>
|
||||
<Label Text="ans" TextColor="#72a3b3"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
|
||||
<Label Text="Taille :" TextColor="#72a3b3" FontAttributes="Bold"/>
|
||||
<Label Text="{Binding Taille}" TextColor="#72a3b3"/>
|
||||
<Label Text="mètres" TextColor="#72a3b3"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Frame Style="{StaticResource frameInfo}">
|
||||
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
|
||||
<Label Text="Origine :" TextColor="#72a3b3" FontAttributes="Bold"/>
|
||||
<Label Text="{Binding Origine}" TextColor="#72a3b3"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
</VerticalStackLayout>
|
||||
|
||||
|
||||
|
||||
</Grid>
|
||||
<Label Text="Description :" TextColor="#72a3b3" FontSize="20" FontAttributes="Bold"/>
|
||||
<Line X1="0" Y1="0" X2="3000" Y2="0" StrokeThickness="2" Stroke="#72a3b3" />
|
||||
<Label Text="{Binding Description}" TextColor="#72a3b3" />
|
||||
<Label Text="Caracteristiques :" TextColor="#72a3b3" FontSize="20" FontAttributes="Bold"/>
|
||||
<Line X1="0" Y1="0" X2="3000" Y2="0" StrokeThickness="2" Stroke="#72a3b3" />
|
||||
<Label Text="{Binding Caracteristique}" TextColor="#72a3b3" />
|
||||
|
||||
</VerticalStackLayout>
|
||||
|
||||
|
||||
|
||||
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
|
||||
|
||||
</VerticalStackLayout>
|
||||
</ScrollView>
|
||||
</Grid>
|
||||
</ContentPage>
|
@ -0,0 +1,53 @@
|
||||
using Model.Stub;
|
||||
using Model;
|
||||
using Plugin.Maui.Audio;
|
||||
|
||||
namespace Ohara;
|
||||
|
||||
public partial class PageInfoPersonnage : ContentPage
|
||||
{
|
||||
public PageInfoPersonnage()
|
||||
{
|
||||
InitializeComponent();
|
||||
List<Personnage> perso = StubPersonnage.RecupererPersonnage().ToList();
|
||||
|
||||
|
||||
listePerso.ItemsSource = perso;
|
||||
}
|
||||
private async void Hyperlink_Accueil(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new MainPage(new Plugin.Maui.Audio.AudioManager()));
|
||||
}
|
||||
|
||||
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(new Plugin.Maui.Audio.AudioManager()));
|
||||
}
|
||||
|
||||
private async void Hyperlink_Bestiaire(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new PageBestiaire());
|
||||
}
|
||||
private async void Hyperlink_Ile(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new PageIle());
|
||||
}
|
||||
|
||||
private async void Hyperlink_Perso(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new PagePersonnage());
|
||||
}
|
||||
}
|
Binary file not shown.
@ -0,0 +1,24 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
|
||||
<PackageReference Include="xunit" Version="2.4.2" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="coverlet.collector" Version="3.1.2">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -0,0 +1,11 @@
|
||||
namespace TestProject1
|
||||
{
|
||||
public class UnitTest1
|
||||
{
|
||||
[Fact]
|
||||
public void Test1()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1 @@
|
||||
global using Xunit;
|
Loading…
Reference in new issue