mirror of
				https://github.com/Nioux/AideDeJeu.git
				synced 2025-10-31 15:36:07 +00:00 
			
		
		
		
	Packaging
This commit is contained in:
		
							parent
							
								
									7b1bb89777
								
							
						
					
					
						commit
						4a7fa069bd
					
				
					 7 changed files with 38 additions and 33 deletions
				
			
		|  | @ -12,7 +12,7 @@ namespace AideDeJeu | ||||||
| 		{ | 		{ | ||||||
| 			InitializeComponent(); | 			InitializeComponent(); | ||||||
| 
 | 
 | ||||||
|             MainPage = new NavigationPage(new MonstersPage()); // MainPage()); |             MainPage = new NavigationPage(new MainPage()); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
| 		protected override void OnStart () | 		protected override void OnStart () | ||||||
|  |  | ||||||
|  | @ -9,9 +9,9 @@ namespace AideDeJeu.ViewModels | ||||||
|     { |     { | ||||||
|         public AboutViewModel() |         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; } |         public ICommand OpenWebCommand { get; } | ||||||
|  |  | ||||||
|  | @ -12,10 +12,10 @@ | ||||||
|             <RowDefinition Height="Auto" /> |             <RowDefinition Height="Auto" /> | ||||||
|             <RowDefinition Height="*" /> |             <RowDefinition Height="*" /> | ||||||
|         </Grid.RowDefinitions> |         </Grid.RowDefinitions> | ||||||
|         <StackLayout BackgroundColor="{StaticResource Accent}" VerticalOptions="FillAndExpand" HorizontalOptions="Fill"> |         <StackLayout BackgroundColor="Black" VerticalOptions="FillAndExpand" HorizontalOptions="Fill"> | ||||||
|             <StackLayout Orientation="Horizontal" HorizontalOptions="Center" VerticalOptions="Center"> |             <StackLayout BackgroundColor="Black" Orientation="Horizontal" HorizontalOptions="Center" VerticalOptions="Center"> | ||||||
|                 <ContentView Padding="0,40,0,40" VerticalOptions="FillAndExpand"> |                 <ContentView BackgroundColor="Black" Padding="0,40,0,40" VerticalOptions="FillAndExpand"> | ||||||
|                     <Image Source="xamarin_logo.png" VerticalOptions="Center" HeightRequest="64" /> |                     <Image BackgroundColor="Black" Source="black_book.png" VerticalOptions="Center" HeightRequest="64" /> | ||||||
|                 </ContentView> |                 </ContentView> | ||||||
|             </StackLayout> |             </StackLayout> | ||||||
|         </StackLayout> |         </StackLayout> | ||||||
|  | @ -25,7 +25,7 @@ | ||||||
|                     <Label.FormattedText> |                     <Label.FormattedText> | ||||||
|                         <FormattedString> |                         <FormattedString> | ||||||
|                             <FormattedString.Spans> |                             <FormattedString.Spans> | ||||||
|                                 <Span Text="AppName" FontAttributes="Bold" FontSize="22" /> |                                 <Span Text="Aide de Jeu" FontAttributes="Bold" FontSize="22" /> | ||||||
|                                 <Span Text=" " /> |                                 <Span Text=" " /> | ||||||
|                                 <Span Text="1.0" ForegroundColor="{StaticResource LightTextColor}" /> |                                 <Span Text="1.0" ForegroundColor="{StaticResource LightTextColor}" /> | ||||||
|                             </FormattedString.Spans> |                             </FormattedString.Spans> | ||||||
|  | @ -36,28 +36,12 @@ | ||||||
|                     <Label.FormattedText> |                     <Label.FormattedText> | ||||||
|                         <FormattedString> |                         <FormattedString> | ||||||
|                             <FormattedString.Spans> |                             <FormattedString.Spans> | ||||||
|                                 <Span Text="This app is written in C# and native APIs using the" /> |                                 <Span Text="Cette application est une aide de jeu pour le plus célèbre des jeux de rôle" /> | ||||||
|                                 <Span Text=" " /> |  | ||||||
|                                 <Span Text="Xamarin Platform" FontAttributes="Bold" /> |  | ||||||
|                                 <Span Text="." /> |  | ||||||
|                             </FormattedString.Spans> |                             </FormattedString.Spans> | ||||||
|                         </FormattedString> |                         </FormattedString> | ||||||
|                     </Label.FormattedText> |                     </Label.FormattedText> | ||||||
|                 </Label> |                 </Label> | ||||||
|                 <Label> |                 <Button Margin="0,10,0,0" Text="Site web" Command="{Binding OpenWebCommand}" BackgroundColor="{StaticResource titlered}" TextColor="{StaticResource bgtan}" /> | ||||||
|                     <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" /> |  | ||||||
|             </StackLayout> |             </StackLayout> | ||||||
|         </ScrollView> |         </ScrollView> | ||||||
|     </Grid> |     </Grid> | ||||||
|  |  | ||||||
|  | @ -5,17 +5,21 @@ | ||||||
|                 x:Class="AideDeJeu.Views.MainPage" |                 x:Class="AideDeJeu.Views.MainPage" | ||||||
|                   x:Name="This" |                   x:Name="This" | ||||||
|                 IsPresented="False" |                 IsPresented="False" | ||||||
|  |                   Title="Aide de Jeu" | ||||||
|                 > |                 > | ||||||
|     <MasterDetailPage.Master> |     <MasterDetailPage.Master> | ||||||
|         <ContentPage Title=" "> |         <ContentPage Title=" "> | ||||||
|         </ContentPage> |         </ContentPage> | ||||||
|     </MasterDetailPage.Master> |     </MasterDetailPage.Master> | ||||||
|     <MasterDetailPage.Detail> |     <MasterDetailPage.Detail> | ||||||
|         <ContentPage> |         <ContentPage Title="Aide de Jeu"> | ||||||
|             <ContentPage.ToolbarItems> |             <ContentPage.ToolbarItems> | ||||||
|             </ContentPage.ToolbarItems> |             </ContentPage.ToolbarItems> | ||||||
|             <Grid> |             <StackLayout Orientation="Vertical"> | ||||||
|             </Grid> |                 <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> |         </ContentPage> | ||||||
|     </MasterDetailPage.Detail> |     </MasterDetailPage.Detail> | ||||||
| </MasterDetailPage> | </MasterDetailPage> | ||||||
|  |  | ||||||
|  | @ -10,5 +10,20 @@ namespace AideDeJeu.Views | ||||||
| 		{ | 		{ | ||||||
| 			InitializeComponent (); | 			InitializeComponent (); | ||||||
|         } |         } | ||||||
|  | 
 | ||||||
|  |         void OnSpellsClicked() | ||||||
|  |         { | ||||||
|  |             Navigation.PushAsync(new SpellsPage()); | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |         void OnMonstersClicked() | ||||||
|  |         { | ||||||
|  |             Navigation.PushAsync(new MonstersPage()); | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |         void OnAboutClicked() | ||||||
|  |         { | ||||||
|  |             Navigation.PushAsync(new AboutPage()); | ||||||
|  |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | @ -5,9 +5,10 @@ | ||||||
|                 x:Class="AideDeJeu.Views.MonstersPage" |                 x:Class="AideDeJeu.Views.MonstersPage" | ||||||
|                   x:Name="This" |                   x:Name="This" | ||||||
|                 IsPresented="False" |                 IsPresented="False" | ||||||
|  |                   Title="Liste des monstres" | ||||||
|                 > |                 > | ||||||
|     <MasterDetailPage.Master> |     <MasterDetailPage.Master> | ||||||
|         <ContentPage Title=" "> |         <ContentPage Title="Liste des monstres"> | ||||||
|             <ScrollView Orientation="Vertical"> |             <ScrollView Orientation="Vertical"> | ||||||
|                 <StackLayout Orientation="Vertical" Padding="15"> |                 <StackLayout Orientation="Vertical" Padding="15"> | ||||||
|                     <!--<StackLayout Orientation="Horizontal"> |                     <!--<StackLayout Orientation="Horizontal"> | ||||||
|  | @ -59,7 +60,7 @@ | ||||||
|         </ContentPage> |         </ContentPage> | ||||||
|     </MasterDetailPage.Master> |     </MasterDetailPage.Master> | ||||||
|     <MasterDetailPage.Detail> |     <MasterDetailPage.Detail> | ||||||
|         <ContentPage> |         <ContentPage Title="Liste des monstres"> | ||||||
|             <ContentPage.ToolbarItems> |             <ContentPage.ToolbarItems> | ||||||
|                 <!--<ToolbarItem Name="Home" Text="Accueil" Order="Primary" Icon="ic_home.png" Command="{Binding OpenUrl}" CommandParameter="http://www.pathfinder-fr.org/" /> |                 <!--<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/" />--> |                 <ToolbarItem Name="Spells" Text="Sorts" Order="Primary" Icon="ic_home.png" Command="{Binding OpenUrl}" CommandParameter="http://www.pathfinder-fr.org/" />--> | ||||||
|  |  | ||||||
|  | @ -5,9 +5,10 @@ | ||||||
|                 x:Class="AideDeJeu.Views.SpellsPage" |                 x:Class="AideDeJeu.Views.SpellsPage" | ||||||
|                   x:Name="This" |                   x:Name="This" | ||||||
|                 IsPresented="False" |                 IsPresented="False" | ||||||
|  |                   Title="Liste des sorts" | ||||||
|                 > |                 > | ||||||
|     <MasterDetailPage.Master> |     <MasterDetailPage.Master> | ||||||
|         <ContentPage Title=" "> |         <ContentPage Title="Liste des sorts"> | ||||||
|             <ScrollView Orientation="Vertical"> |             <ScrollView Orientation="Vertical"> | ||||||
|                 <StackLayout Orientation="Vertical" Padding="15"> |                 <StackLayout Orientation="Vertical" Padding="15"> | ||||||
|                     <!--<StackLayout Orientation="Horizontal"> |                     <!--<StackLayout Orientation="Horizontal"> | ||||||
|  | @ -50,7 +51,7 @@ | ||||||
|         </ContentPage> |         </ContentPage> | ||||||
|     </MasterDetailPage.Master> |     </MasterDetailPage.Master> | ||||||
|     <MasterDetailPage.Detail> |     <MasterDetailPage.Detail> | ||||||
|         <ContentPage> |         <ContentPage Title="Liste des sorts"> | ||||||
|             <ContentPage.ToolbarItems> |             <ContentPage.ToolbarItems> | ||||||
|                 <!--<ToolbarItem Name="Home" Text="Accueil" Order="Primary" Icon="ic_home.png" Command="{Binding OpenUrl}" CommandParameter="http://www.pathfinder-fr.org/" /> |                 <!--<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/" />--> |                 <ToolbarItem Name="Spells" Text="Sorts" Order="Primary" Icon="ic_home.png" Command="{Binding OpenUrl}" CommandParameter="http://www.pathfinder-fr.org/" />--> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yan Maniez
						Yan Maniez