mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-30 15:06:06 +00:00
Equipement, maitrises, ...
This commit is contained in:
parent
505359c68c
commit
bdab1bb44d
3 changed files with 37 additions and 4 deletions
|
|
@ -223,6 +223,7 @@ namespace AideDeJeu.ViewModels
|
|||
set
|
||||
{
|
||||
SetProperty(ref _SelectedBackground, value);
|
||||
OnPropertyChanged(nameof(PreferedBackground));
|
||||
NotifySelectedBackground = new NotifyTaskCompletion<BackgroundItem>(Task.Run(() => LoadBackgroundAsync(_SelectedBackground)));
|
||||
}
|
||||
}
|
||||
|
|
@ -309,6 +310,7 @@ namespace AideDeJeu.ViewModels
|
|||
set
|
||||
{
|
||||
SetProperty(ref _SelectedSubBackground, value);
|
||||
OnPropertyChanged(nameof(PreferedBackground));
|
||||
NotifySelectedSubBackground = new NotifyTaskCompletion<SubBackgroundItem>(Task.Run(() => LoadSubBackgroundAsync(SelectedSubBackground)));
|
||||
}
|
||||
}
|
||||
|
|
@ -342,6 +344,14 @@ namespace AideDeJeu.ViewModels
|
|||
return subbackground;
|
||||
}
|
||||
|
||||
public BackgroundItem PreferedBackground
|
||||
{
|
||||
get
|
||||
{
|
||||
return SelectedSubBackground ?? SelectedBackground;
|
||||
}
|
||||
}
|
||||
|
||||
private List<string> _PersonalityTraits = null;
|
||||
public List<string> PersonalityTraits
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,15 +14,14 @@
|
|||
<Frame BorderColor="Black" Padding="2">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="auto" />
|
||||
<ColumnDefinition Width="10" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<mdview:MarkdownView Grid.Column="0" Theme="{StaticResource MonsterMarkdownTheme}" Markdown="{Binding Title, Source={x:Reference this}, StringFormat='# {0}'}" IsEnabled="False" />
|
||||
<mdview:MarkdownView Grid.Column="1" Theme="{StaticResource MonsterMarkdownTheme}" Markdown="{Binding SelectedItem.Name, Source={x:Reference this}, StringFormat='# : {0}'}" />
|
||||
<Image Grid.Column="2" WidthRequest="32" HeightRequest="32" Source="click.png" />
|
||||
<mdview:MarkdownView Grid.Row="1" Grid.ColumnSpan="3" Theme="{StaticResource MonsterMarkdownTheme}" Markdown="{Binding SelectedItem.Description, Source={x:Reference this}}" />
|
||||
<Image Grid.Column="1" WidthRequest="32" HeightRequest="32" Source="click.png" />
|
||||
<mdview:MarkdownView Grid.Row="1" Grid.ColumnSpan="3" Theme="{StaticResource MonsterMarkdownTheme}" Markdown="{Binding SelectedItem.Name, Source={x:Reference this}, StringFormat='## {0}'}" />
|
||||
<mdview:MarkdownView Grid.Row="2" Grid.ColumnSpan="3" Theme="{StaticResource MonsterMarkdownTheme}" Markdown="{Binding SelectedItem.Description, Source={x:Reference this}}" />
|
||||
</Grid>
|
||||
</Frame>
|
||||
<!--<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" Markdown="{Binding SelectedItem, Source={x:Reference this}}" />-->
|
||||
|
|
|
|||
|
|
@ -59,6 +59,30 @@
|
|||
<views:ItemPickerView BindingContext="{Binding}" Title="Historique" ItemsSource="{Binding Backgrounds.Result}" SelectedItem="{Binding SelectedBackground, Mode=TwoWay}" />
|
||||
<views:ItemPickerView BindingContext="{Binding}" Title="Variante" ItemsSource="{Binding SubBackgrounds}" SelectedItem="{Binding SelectedSubBackground, Mode=TwoWay}" />
|
||||
|
||||
<Frame BorderColor="Black" Padding="2" IsVisible="{Binding NotifySelectedBackground.IsSuccessfullyCompleted}">
|
||||
<StackLayout Padding="0">
|
||||
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" HorizontalOptions="FillAndExpand" Markdown="# Compétences" />
|
||||
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" HorizontalOptions="FillAndExpand" Markdown="{Binding PreferedBackground.Abilities}" />
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Frame BorderColor="Black" Padding="2" IsVisible="{Binding NotifySelectedBackground.IsSuccessfullyCompleted}">
|
||||
<StackLayout Padding="0">
|
||||
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" HorizontalOptions="FillAndExpand" Markdown="# Outils maîtrisés" />
|
||||
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" HorizontalOptions="FillAndExpand" Markdown="{Binding PreferedBackground.MasteredTools}" />
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Frame BorderColor="Black" Padding="2" IsVisible="{Binding NotifySelectedBackground.IsSuccessfullyCompleted}">
|
||||
<StackLayout Padding="0">
|
||||
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" HorizontalOptions="FillAndExpand" Markdown="# Langues maîtrisées" />
|
||||
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" HorizontalOptions="FillAndExpand" Markdown="{Binding PreferedBackground.MasteredLanguages}" />
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Frame BorderColor="Black" Padding="2" IsVisible="{Binding NotifySelectedBackground.IsSuccessfullyCompleted}">
|
||||
<StackLayout Padding="0">
|
||||
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" HorizontalOptions="FillAndExpand" Markdown="# Équipement" />
|
||||
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" HorizontalOptions="FillAndExpand" Markdown="{Binding PreferedBackground.Equipment}" />
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Frame BorderColor="Black" Padding="2" IsVisible="{Binding HasBackgroundSkill}">
|
||||
<StackLayout Padding="0">
|
||||
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" HorizontalOptions="FillAndExpand" Markdown="{Binding PreferedBackgroundSkill.Name, StringFormat='# {0}'}" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue