1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-29 14:35:45 +00:00

Packaging

This commit is contained in:
Yan Maniez 2018-04-30 23:47:23 +02:00
parent 7b1bb89777
commit 4a7fa069bd
7 changed files with 38 additions and 33 deletions

View file

@ -12,7 +12,7 @@ namespace AideDeJeu
{
InitializeComponent();
MainPage = new NavigationPage(new MonstersPage()); // MainPage());
MainPage = new NavigationPage(new MainPage());
}
protected override void OnStart ()

View file

@ -9,9 +9,9 @@ namespace AideDeJeu.ViewModels
{
public AboutViewModel()
{
Title = "About";
Title = "À propos de ...";
OpenWebCommand = new Command(() => Device.OpenUri(new Uri("https://xamarin.com/platform")));
OpenWebCommand = new Command(() => Device.OpenUri(new Uri("https://github.com/Nioux/AideDeJeu")));
}
public ICommand OpenWebCommand { get; }

View file

@ -12,10 +12,10 @@
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<StackLayout BackgroundColor="{StaticResource Accent}" VerticalOptions="FillAndExpand" HorizontalOptions="Fill">
<StackLayout Orientation="Horizontal" HorizontalOptions="Center" VerticalOptions="Center">
<ContentView Padding="0,40,0,40" VerticalOptions="FillAndExpand">
<Image Source="xamarin_logo.png" VerticalOptions="Center" HeightRequest="64" />
<StackLayout BackgroundColor="Black" VerticalOptions="FillAndExpand" HorizontalOptions="Fill">
<StackLayout BackgroundColor="Black" Orientation="Horizontal" HorizontalOptions="Center" VerticalOptions="Center">
<ContentView BackgroundColor="Black" Padding="0,40,0,40" VerticalOptions="FillAndExpand">
<Image BackgroundColor="Black" Source="black_book.png" VerticalOptions="Center" HeightRequest="64" />
</ContentView>
</StackLayout>
</StackLayout>
@ -25,7 +25,7 @@
<Label.FormattedText>
<FormattedString>
<FormattedString.Spans>
<Span Text="AppName" FontAttributes="Bold" FontSize="22" />
<Span Text="Aide de Jeu" FontAttributes="Bold" FontSize="22" />
<Span Text=" " />
<Span Text="1.0" ForegroundColor="{StaticResource LightTextColor}" />
</FormattedString.Spans>
@ -36,28 +36,12 @@
<Label.FormattedText>
<FormattedString>
<FormattedString.Spans>
<Span Text="This app is written in C# and native APIs using the" />
<Span Text=" " />
<Span Text="Xamarin Platform" FontAttributes="Bold" />
<Span Text="." />
<Span Text="Cette application est une aide de jeu pour le plus célèbre des jeux de rôle" />
</FormattedString.Spans>
</FormattedString>
</Label.FormattedText>
</Label>
<Label>
<Label.FormattedText>
<FormattedString>
<FormattedString.Spans>
<Span Text="It shares code with its" />
<Span Text=" " />
<Span Text="iOS, Android, and Windows" FontAttributes="Bold" />
<Span Text=" " />
<Span Text="versions." />
</FormattedString.Spans>
</FormattedString>
</Label.FormattedText>
</Label>
<Button Margin="0,10,0,0" Text="Learn more" Command="{Binding OpenWebCommand}" BackgroundColor="{StaticResource Primary}" TextColor="White" />
<Button Margin="0,10,0,0" Text="Site web" Command="{Binding OpenWebCommand}" BackgroundColor="{StaticResource titlered}" TextColor="{StaticResource bgtan}" />
</StackLayout>
</ScrollView>
</Grid>

View file

@ -5,17 +5,21 @@
x:Class="AideDeJeu.Views.MainPage"
x:Name="This"
IsPresented="False"
Title="Aide de Jeu"
>
<MasterDetailPage.Master>
<ContentPage Title=" ">
</ContentPage>
</MasterDetailPage.Master>
<MasterDetailPage.Detail>
<ContentPage>
<ContentPage Title="Aide de Jeu">
<ContentPage.ToolbarItems>
</ContentPage.ToolbarItems>
<Grid>
</Grid>
<StackLayout Orientation="Vertical">
<Button Text="Liste des sorts" Clicked="OnSpellsClicked" BackgroundColor="{StaticResource titlered}" TextColor="{StaticResource bgtan}" />
<Button Text="Liste des monstres" Clicked="OnMonstersClicked" BackgroundColor="{StaticResource titlered}" TextColor="{StaticResource bgtan}" />
<Button Text="À propos de ..." Clicked="OnAboutClicked" BackgroundColor="{StaticResource titlered}" TextColor="{StaticResource bgtan}" />
</StackLayout>
</ContentPage>
</MasterDetailPage.Detail>
</MasterDetailPage>

View file

@ -10,5 +10,20 @@ namespace AideDeJeu.Views
{
InitializeComponent ();
}
void OnSpellsClicked()
{
Navigation.PushAsync(new SpellsPage());
}
void OnMonstersClicked()
{
Navigation.PushAsync(new MonstersPage());
}
void OnAboutClicked()
{
Navigation.PushAsync(new AboutPage());
}
}
}

View file

@ -5,9 +5,10 @@
x:Class="AideDeJeu.Views.MonstersPage"
x:Name="This"
IsPresented="False"
Title="Liste des monstres"
>
<MasterDetailPage.Master>
<ContentPage Title=" ">
<ContentPage Title="Liste des monstres">
<ScrollView Orientation="Vertical">
<StackLayout Orientation="Vertical" Padding="15">
<!--<StackLayout Orientation="Horizontal">
@ -59,7 +60,7 @@
</ContentPage>
</MasterDetailPage.Master>
<MasterDetailPage.Detail>
<ContentPage>
<ContentPage Title="Liste des monstres">
<ContentPage.ToolbarItems>
<!--<ToolbarItem Name="Home" Text="Accueil" Order="Primary" Icon="ic_home.png" Command="{Binding OpenUrl}" CommandParameter="http://www.pathfinder-fr.org/" />
<ToolbarItem Name="Spells" Text="Sorts" Order="Primary" Icon="ic_home.png" Command="{Binding OpenUrl}" CommandParameter="http://www.pathfinder-fr.org/" />-->

View file

@ -5,9 +5,10 @@
x:Class="AideDeJeu.Views.SpellsPage"
x:Name="This"
IsPresented="False"
Title="Liste des sorts"
>
<MasterDetailPage.Master>
<ContentPage Title=" ">
<ContentPage Title="Liste des sorts">
<ScrollView Orientation="Vertical">
<StackLayout Orientation="Vertical" Padding="15">
<!--<StackLayout Orientation="Horizontal">
@ -50,7 +51,7 @@
</ContentPage>
</MasterDetailPage.Master>
<MasterDetailPage.Detail>
<ContentPage>
<ContentPage Title="Liste des sorts">
<ContentPage.ToolbarItems>
<!--<ToolbarItem Name="Home" Text="Accueil" Order="Primary" Icon="ic_home.png" Command="{Binding OpenUrl}" CommandParameter="http://www.pathfinder-fr.org/" />
<ToolbarItem Name="Spells" Text="Sorts" Order="Primary" Icon="ic_home.png" Command="{Binding OpenUrl}" CommandParameter="http://www.pathfinder-fr.org/" />-->