mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-11-01 16:05:42 +00:00
Correctif
This commit is contained in:
parent
f01fc2e547
commit
7fea933afb
2 changed files with 51 additions and 43 deletions
|
|
@ -91,9 +91,12 @@ namespace AideDeJeu.ViewModels
|
|||
set
|
||||
{
|
||||
SetProperty(ref _AlignmentSelectedIndex, value);
|
||||
if (0 <= _AlignmentSelectedIndex && _AlignmentSelectedIndex < Alignments.Result.Count)
|
||||
{
|
||||
SelectedPlayerCharacter.Alignment = Alignments.Result[_AlignmentSelectedIndex];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public async Task<List<AlignmentItem>> LoadAlignmentsAsync(string alignment = null)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -29,27 +29,27 @@
|
|||
</ScrollView>
|
||||
</ContentPage>
|
||||
<ContentPage Title="Race">
|
||||
<ScrollView Orientation="Vertical">
|
||||
<StackLayout>
|
||||
<Picker Title="Race" HorizontalOptions="FillAndExpand" IsEnabled="{Binding Races.IsSuccessfullyCompleted}" ItemsSource="{Binding Races.Result}" ItemDisplayBinding="{Binding Name}" SelectedIndex="{Binding RaceSelectedIndex, Mode=TwoWay}" />
|
||||
<ScrollView Orientation="Vertical">
|
||||
<mdview:MarkdownView Markdown="{Binding SelectedPlayerCharacter.Race.Markdown}" />
|
||||
</ScrollView>
|
||||
</StackLayout>
|
||||
</ScrollView>
|
||||
</ContentPage>
|
||||
<ContentPage Title="Classe">
|
||||
<ScrollView Orientation="Vertical">
|
||||
<StackLayout>
|
||||
<Picker Title="Classe" HorizontalOptions="FillAndExpand" IsEnabled="{Binding Classes.IsSuccessfullyCompleted}" ItemsSource="{Binding Classes.Result}" ItemDisplayBinding="{Binding Name}" SelectedIndex="{Binding ClassSelectedIndex, Mode=TwoWay}" />
|
||||
<ScrollView Orientation="Vertical">
|
||||
<mdview:MarkdownView Markdown="{Binding SelectedPlayerCharacter.Class.Markdown}" />
|
||||
</ScrollView>
|
||||
</StackLayout>
|
||||
</ScrollView>
|
||||
</ContentPage>
|
||||
<ContentPage Title="Historique">
|
||||
<ScrollView Orientation="Vertical">
|
||||
<StackLayout>
|
||||
<Picker Title="Historique" HorizontalOptions="FillAndExpand" IsEnabled="{Binding Backgrounds.IsSuccessfullyCompleted}" ItemsSource="{Binding Backgrounds.Result}" ItemDisplayBinding="{Binding Name}" SelectedIndex="{Binding BackgroundSelectedIndex, Mode=TwoWay}" />
|
||||
<Picker Title="Variante" HorizontalOptions="FillAndExpand" IsEnabled="{Binding SubBackgrounds.IsSuccessfullyCompleted}" ItemsSource="{Binding SubBackgrounds.Result}" ItemDisplayBinding="{Binding Name}" SelectedIndex="{Binding SubBackgroundSelectedIndex, Mode=TwoWay}" />
|
||||
<ScrollView Orientation="Vertical" HorizontalOptions="FillAndExpand" >
|
||||
<StackLayout HorizontalOptions="FillAndExpand" >
|
||||
|
||||
<mdview:MarkdownView Markdown="{Binding SelectedPlayerCharacter.Background.Description}" />
|
||||
<mdview:MarkdownView Markdown="{Binding SelectedPlayerCharacter.SubBackground.Description}" />
|
||||
|
||||
|
|
@ -69,9 +69,9 @@
|
|||
<mdview:MarkdownView Markdown="{Binding SelectedPlayerCharacter.SubBackground.Markdown}" />
|
||||
</StackLayout>
|
||||
</ScrollView>
|
||||
</StackLayout>
|
||||
</ContentPage>
|
||||
<ContentPage Title="Caractéristiques">
|
||||
<ScrollView Orientation="Vertical">
|
||||
<StackLayout>
|
||||
<Picker Title="Force" HorizontalOptions="FillAndExpand" ItemsSource="{Binding Abilities}" ItemDisplayBinding="{Binding StringFormat='Force : {0}'}" />
|
||||
<Picker Title="Dextérité" HorizontalOptions="FillAndExpand" ItemsSource="{Binding Abilities}" ItemDisplayBinding="{Binding StringFormat='Dextérité : {0}'}" />
|
||||
|
|
@ -80,14 +80,19 @@
|
|||
<Picker Title="Sagesse" HorizontalOptions="FillAndExpand" ItemsSource="{Binding Abilities}" ItemDisplayBinding="{Binding StringFormat='Sagesse : {0}'}" />
|
||||
<Picker Title="Charisme" HorizontalOptions="FillAndExpand" ItemsSource="{Binding Abilities}" ItemDisplayBinding="{Binding StringFormat='Charisme : {0}'}" />
|
||||
</StackLayout>
|
||||
</ScrollView>
|
||||
</ContentPage>
|
||||
<ContentPage Title="Equipement">
|
||||
<ScrollView Orientation="Vertical">
|
||||
<StackLayout>
|
||||
</StackLayout>
|
||||
</ScrollView>
|
||||
</ContentPage>
|
||||
<ContentPage Title="Résumé">
|
||||
<ScrollView Orientation="Vertical">
|
||||
<StackLayout>
|
||||
</StackLayout>
|
||||
</ScrollView>
|
||||
</ContentPage>
|
||||
<!--<StackLayout Orientation="Vertical">
|
||||
<TableView Margin="10,0">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue