mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-11-01 16:05:42 +00:00
Une seule notify task pour le background
This commit is contained in:
parent
384463ef9b
commit
0544008b58
3 changed files with 88 additions and 118 deletions
|
|
@ -27,6 +27,7 @@ namespace AideDeJeu.Tools
|
||||||
if (propertyChanged == null)
|
if (propertyChanged == null)
|
||||||
return;
|
return;
|
||||||
propertyChanged(this, new PropertyChangedEventArgs("Status"));
|
propertyChanged(this, new PropertyChangedEventArgs("Status"));
|
||||||
|
propertyChanged(this, new PropertyChangedEventArgs("DebugStatus"));
|
||||||
propertyChanged(this, new PropertyChangedEventArgs("IsCompleted"));
|
propertyChanged(this, new PropertyChangedEventArgs("IsCompleted"));
|
||||||
propertyChanged(this, new PropertyChangedEventArgs("IsNotCompleted"));
|
propertyChanged(this, new PropertyChangedEventArgs("IsNotCompleted"));
|
||||||
if (task.IsCanceled)
|
if (task.IsCanceled)
|
||||||
|
|
@ -54,6 +55,7 @@ namespace AideDeJeu.Tools
|
||||||
return (Task?.Status == TaskStatus.RanToCompletion) ? Task.Result : default(TResult);
|
return (Task?.Status == TaskStatus.RanToCompletion) ? Task.Result : default(TResult);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public string DebugStatus { get { return Status.ToString(); } }
|
||||||
public TaskStatus Status { get { return Task?.Status ?? TaskStatus.Running; } }
|
public TaskStatus Status { get { return Task?.Status ?? TaskStatus.Running; } }
|
||||||
public bool IsCompleted { get { return Task?.IsCompleted ?? false; } }
|
public bool IsCompleted { get { return Task?.IsCompleted ?? false; } }
|
||||||
public bool IsNotCompleted { get { return Task?.IsCompleted == true ? false : true; } }
|
public bool IsNotCompleted { get { return Task?.IsCompleted == true ? false : true; } }
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,15 @@ namespace AideDeJeu.ViewModels
|
||||||
Classes = new NotifyTaskCompletion<List<ClassItem>>(Task.Run(() => LoadClassesAsync()));
|
Classes = new NotifyTaskCompletion<List<ClassItem>>(Task.Run(() => LoadClassesAsync()));
|
||||||
|
|
||||||
Backgrounds = new NotifyTaskCompletion<List<BackgroundItem>>(Task.Run(() => LoadBackgroundsAsync()));
|
Backgrounds = new NotifyTaskCompletion<List<BackgroundItem>>(Task.Run(() => LoadBackgroundsAsync()));
|
||||||
SubBackgrounds = new NotifyTaskCompletion<List<SubBackgroundItem>>(null);
|
SelectedBackground = null;
|
||||||
PersonalityTraits = new NotifyTaskCompletion<List<string>>(null);
|
NotifySelectedBackground = new NotifyTaskCompletion<BackgroundItem>(null);
|
||||||
PersonalityIdeals = new NotifyTaskCompletion<List<string>>(null);
|
SubBackgrounds = null;
|
||||||
PersonalityLinks = new NotifyTaskCompletion<List<string>>(null);
|
SelectedSubBackground = new NotifyTaskCompletion<BackgroundItem>(null);
|
||||||
PersonalityDefects = new NotifyTaskCompletion<List<string>>(null);
|
PersonalityTraits = null;
|
||||||
BackgroundSpecialties = new NotifyTaskCompletion<BackgroundSpecialtyItem>(null);
|
PersonalityIdeals = null;
|
||||||
|
PersonalityLinks = null;
|
||||||
|
PersonalityDefects = null;
|
||||||
|
BackgroundSpecialties = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Selected PC
|
#region Selected PC
|
||||||
|
|
@ -69,7 +72,11 @@ namespace AideDeJeu.ViewModels
|
||||||
SetProperty(ref _AlignmentSelectedIndex, value);
|
SetProperty(ref _AlignmentSelectedIndex, value);
|
||||||
if (0 <= _AlignmentSelectedIndex && _AlignmentSelectedIndex < Alignments.Result.Count)
|
if (0 <= _AlignmentSelectedIndex && _AlignmentSelectedIndex < Alignments.Result.Count)
|
||||||
{
|
{
|
||||||
SelectedPlayerCharacter.Alignment = Alignments.Result[_AlignmentSelectedIndex];
|
SelectedAlignment = Alignments.Result[_AlignmentSelectedIndex];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SelectedAlignment = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -211,11 +218,23 @@ namespace AideDeJeu.ViewModels
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
SetProperty(ref _SelectedBackground, value);
|
SetProperty(ref _SelectedBackground, value);
|
||||||
SelectedBackgroundChanged();
|
NotifySelectedBackground = new NotifyTaskCompletion<BackgroundItem>(Task.Run(() => LoadBackgroundAsync(_SelectedBackground)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private NotifyTaskCompletion<BackgroundItem> _NotifySelectedBackground = null;
|
||||||
|
public NotifyTaskCompletion<BackgroundItem> NotifySelectedBackground
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _NotifySelectedBackground;
|
||||||
|
}
|
||||||
|
private set
|
||||||
|
{
|
||||||
|
SetProperty(ref _NotifySelectedBackground, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SelectedBackgroundChanged()
|
private async Task<BackgroundItem> LoadBackgroundAsync(BackgroundItem background)
|
||||||
{
|
{
|
||||||
SelectedPlayerCharacter.SubBackground = null;
|
SelectedPlayerCharacter.SubBackground = null;
|
||||||
SelectedPlayerCharacter.PersonalityTrait = null;
|
SelectedPlayerCharacter.PersonalityTrait = null;
|
||||||
|
|
@ -223,26 +242,30 @@ namespace AideDeJeu.ViewModels
|
||||||
SelectedPlayerCharacter.PersonalityLink = null;
|
SelectedPlayerCharacter.PersonalityLink = null;
|
||||||
SelectedPlayerCharacter.PersonalityDefect = null;
|
SelectedPlayerCharacter.PersonalityDefect = null;
|
||||||
SelectedPlayerCharacter.BackgroundSpecialty = null;
|
SelectedPlayerCharacter.BackgroundSpecialty = null;
|
||||||
SelectedPlayerCharacter.Background = SelectedBackground;
|
SelectedPlayerCharacter.Background = background;
|
||||||
|
|
||||||
SubBackgrounds = new NotifyTaskCompletion<List<SubBackgroundItem>>(Task.Run(() => LoadSubBackgroundsAsync(SelectedBackground)));
|
if (background != null)
|
||||||
PersonalityTraits = new NotifyTaskCompletion<List<string>>(Task.Run(() => LoadPersonalityTraitsAsync(SelectedBackground)));
|
{
|
||||||
PersonalityIdeals = new NotifyTaskCompletion<List<string>>(Task.Run(() => LoadPersonalityIdealsAsync(SelectedBackground)));
|
SubBackgrounds = await LoadSubBackgroundsAsync(background);
|
||||||
PersonalityLinks = new NotifyTaskCompletion<List<string>>(Task.Run(() => LoadPersonalityLinksAsync(SelectedBackground)));
|
PersonalityTraits = await LoadPersonalityTraitsAsync(background);
|
||||||
PersonalityDefects = new NotifyTaskCompletion<List<string>>(Task.Run(() => LoadPersonalityDefectsAsync(SelectedBackground)));
|
PersonalityIdeals = await LoadPersonalityIdealsAsync(background);
|
||||||
BackgroundSpecialties = new NotifyTaskCompletion<BackgroundSpecialtyItem>(Task.Run(() => LoadBackgroundsSpecialtiesAsync(SelectedBackground)));
|
PersonalityLinks = await LoadPersonalityLinksAsync(background);
|
||||||
Task.Run(async () => SelectedPlayerCharacter.BackgroundSkill = await LoadSkillAsync(SelectedBackground));
|
PersonalityDefects = await LoadPersonalityDefectsAsync(background);
|
||||||
ResetAlignments();
|
BackgroundSpecialties = await LoadBackgroundsSpecialtiesAsync(background);
|
||||||
|
await Task.Run(async () => SelectedPlayerCharacter.BackgroundSkill = await LoadSkillAsync(background));
|
||||||
|
ResetAlignments();
|
||||||
|
}
|
||||||
|
return background;
|
||||||
}
|
}
|
||||||
|
|
||||||
private NotifyTaskCompletion<List<SubBackgroundItem>> _SubBackgrounds = null;
|
private List<SubBackgroundItem> _SubBackgrounds = null;
|
||||||
public NotifyTaskCompletion<List<SubBackgroundItem>> SubBackgrounds
|
public List<SubBackgroundItem> SubBackgrounds
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return _SubBackgrounds;
|
return _SubBackgrounds;
|
||||||
}
|
}
|
||||||
private set
|
set
|
||||||
{
|
{
|
||||||
SetProperty(ref _SubBackgrounds, value);
|
SetProperty(ref _SubBackgrounds, value);
|
||||||
}
|
}
|
||||||
|
|
@ -262,33 +285,21 @@ namespace AideDeJeu.ViewModels
|
||||||
{
|
{
|
||||||
//SelectedPlayerCharacter.SubBackground = null;
|
//SelectedPlayerCharacter.SubBackground = null;
|
||||||
SubBackgroundSelectedIndex = -1;
|
SubBackgroundSelectedIndex = -1;
|
||||||
SelectedSubBackground = null;
|
SelectedSubBackground = new NotifyTaskCompletion<BackgroundItem>(null);
|
||||||
}
|
}
|
||||||
else if (_SubBackgroundSelectedIndex > 0)
|
else if (_SubBackgroundSelectedIndex > 0)
|
||||||
{
|
{
|
||||||
SelectedSubBackground = SubBackgrounds.Result[_SubBackgroundSelectedIndex];
|
SelectedSubBackground = new NotifyTaskCompletion<BackgroundItem>(Task.Run(() => LoadSubBackgroundAsync(SubBackgrounds[_SubBackgroundSelectedIndex])));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private SubBackgroundItem _SelectedSubBackground = null;
|
public NotifyTaskCompletion<BackgroundItem> SelectedSubBackground { get; private set; }
|
||||||
public SubBackgroundItem SelectedSubBackground
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return _SelectedSubBackground;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
SetProperty(ref _SelectedSubBackground, value);
|
|
||||||
SelectedSubBackgroundChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void SelectedSubBackgroundChanged()
|
private async Task<BackgroundItem> LoadSubBackgroundAsync(SubBackgroundItem subbackground)
|
||||||
{
|
{
|
||||||
SelectedPlayerCharacter.SubBackground = SelectedSubBackground;
|
SelectedPlayerCharacter.SubBackground = subbackground;
|
||||||
if (SelectedSubBackground == null)
|
if (subbackground == null)
|
||||||
{
|
{
|
||||||
SubBackgroundSpecialties = null;
|
SubBackgroundSpecialties = null;
|
||||||
SelectedPlayerCharacter.SubBackgroundSkill = null;
|
SelectedPlayerCharacter.SubBackgroundSkill = null;
|
||||||
|
|
@ -296,19 +307,20 @@ namespace AideDeJeu.ViewModels
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SubBackgroundSpecialties = new NotifyTaskCompletion<BackgroundSpecialtyItem>(Task.Run(() => LoadBackgroundsSpecialtiesAsync(SelectedSubBackground)));
|
SubBackgroundSpecialties = await LoadBackgroundsSpecialtiesAsync(subbackground);
|
||||||
Task.Run(async () => SelectedPlayerCharacter.SubBackgroundSkill = await LoadSkillAsync(SelectedSubBackground));
|
await Task.Run(async () => SelectedPlayerCharacter.SubBackgroundSkill = await LoadSkillAsync(subbackground));
|
||||||
}
|
}
|
||||||
|
return subbackground;
|
||||||
}
|
}
|
||||||
|
|
||||||
private NotifyTaskCompletion<List<string>> _PersonalityTraits = null;
|
private List<string> _PersonalityTraits = null;
|
||||||
public NotifyTaskCompletion<List<string>> PersonalityTraits
|
public List<string> PersonalityTraits
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return _PersonalityTraits;
|
return _PersonalityTraits;
|
||||||
}
|
}
|
||||||
private set
|
set
|
||||||
{
|
{
|
||||||
SetProperty(ref _PersonalityTraits, value);
|
SetProperty(ref _PersonalityTraits, value);
|
||||||
}
|
}
|
||||||
|
|
@ -320,21 +332,21 @@ namespace AideDeJeu.ViewModels
|
||||||
{
|
{
|
||||||
return _SelectedPersonalityTrait;
|
return _SelectedPersonalityTrait;
|
||||||
}
|
}
|
||||||
private set
|
set
|
||||||
{
|
{
|
||||||
SetProperty(ref _SelectedPersonalityTrait, value);
|
SetProperty(ref _SelectedPersonalityTrait, value);
|
||||||
SelectedPlayerCharacter.PersonalityTrait = value;
|
SelectedPlayerCharacter.PersonalityTrait = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private NotifyTaskCompletion<List<string>> _PersonalityIdeals = null;
|
private List<string> _PersonalityIdeals = null;
|
||||||
public NotifyTaskCompletion<List<string>> PersonalityIdeals
|
public List<string> PersonalityIdeals
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return _PersonalityIdeals;
|
return _PersonalityIdeals;
|
||||||
}
|
}
|
||||||
private set
|
set
|
||||||
{
|
{
|
||||||
SetProperty(ref _PersonalityIdeals, value);
|
SetProperty(ref _PersonalityIdeals, value);
|
||||||
}
|
}
|
||||||
|
|
@ -346,21 +358,21 @@ namespace AideDeJeu.ViewModels
|
||||||
{
|
{
|
||||||
return _SelectedPersonalityIdeal;
|
return _SelectedPersonalityIdeal;
|
||||||
}
|
}
|
||||||
private set
|
set
|
||||||
{
|
{
|
||||||
SetProperty(ref _SelectedPersonalityIdeal, value);
|
SetProperty(ref _SelectedPersonalityIdeal, value);
|
||||||
SelectedPlayerCharacter.PersonalityIdeal = value;
|
SelectedPlayerCharacter.PersonalityIdeal = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private NotifyTaskCompletion<List<string>> _PersonalityLinks = null;
|
private List<string> _PersonalityLinks = null;
|
||||||
public NotifyTaskCompletion<List<string>> PersonalityLinks
|
public List<string> PersonalityLinks
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return _PersonalityLinks;
|
return _PersonalityLinks;
|
||||||
}
|
}
|
||||||
private set
|
set
|
||||||
{
|
{
|
||||||
SetProperty(ref _PersonalityLinks, value);
|
SetProperty(ref _PersonalityLinks, value);
|
||||||
}
|
}
|
||||||
|
|
@ -372,21 +384,21 @@ namespace AideDeJeu.ViewModels
|
||||||
{
|
{
|
||||||
return _SelectedPersonalityLink;
|
return _SelectedPersonalityLink;
|
||||||
}
|
}
|
||||||
private set
|
set
|
||||||
{
|
{
|
||||||
SetProperty(ref _SelectedPersonalityLink, value);
|
SetProperty(ref _SelectedPersonalityLink, value);
|
||||||
SelectedPlayerCharacter.PersonalityLink = value;
|
SelectedPlayerCharacter.PersonalityLink = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private NotifyTaskCompletion<List<string>> _PersonalityDefects = null;
|
private List<string> _PersonalityDefects = null;
|
||||||
public NotifyTaskCompletion<List<string>> PersonalityDefects
|
public List<string> PersonalityDefects
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return _PersonalityDefects;
|
return _PersonalityDefects;
|
||||||
}
|
}
|
||||||
private set
|
set
|
||||||
{
|
{
|
||||||
SetProperty(ref _PersonalityDefects, value);
|
SetProperty(ref _PersonalityDefects, value);
|
||||||
}
|
}
|
||||||
|
|
@ -398,40 +410,40 @@ namespace AideDeJeu.ViewModels
|
||||||
{
|
{
|
||||||
return _SelectedPersonalityDefect;
|
return _SelectedPersonalityDefect;
|
||||||
}
|
}
|
||||||
private set
|
set
|
||||||
{
|
{
|
||||||
SetProperty(ref _SelectedPersonalityDefect, value);
|
SetProperty(ref _SelectedPersonalityDefect, value);
|
||||||
SelectedPlayerCharacter.PersonalityDefect = value;
|
SelectedPlayerCharacter.PersonalityDefect = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private NotifyTaskCompletion<BackgroundSpecialtyItem> _BackgroundSpecialties = null;
|
private BackgroundSpecialtyItem _BackgroundSpecialties = null;
|
||||||
public NotifyTaskCompletion<BackgroundSpecialtyItem> BackgroundSpecialties
|
public BackgroundSpecialtyItem BackgroundSpecialties
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return _BackgroundSpecialties;
|
return _BackgroundSpecialties;
|
||||||
}
|
}
|
||||||
private set
|
set
|
||||||
{
|
{
|
||||||
SetProperty(ref _BackgroundSpecialties, value);
|
SetProperty(ref _BackgroundSpecialties, value);
|
||||||
OnPropertyChanged(nameof(SelectedBackgroundSpecialties));
|
OnPropertyChanged(nameof(SelectedBackgroundSpecialties));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private NotifyTaskCompletion<BackgroundSpecialtyItem> _SubBackgroundSpecialties = null;
|
private BackgroundSpecialtyItem _SubBackgroundSpecialties = null;
|
||||||
public NotifyTaskCompletion<BackgroundSpecialtyItem> SubBackgroundSpecialties
|
public BackgroundSpecialtyItem SubBackgroundSpecialties
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return _SubBackgroundSpecialties;
|
return _SubBackgroundSpecialties;
|
||||||
}
|
}
|
||||||
private set
|
set
|
||||||
{
|
{
|
||||||
SetProperty(ref _SubBackgroundSpecialties, value);
|
SetProperty(ref _SubBackgroundSpecialties, value);
|
||||||
OnPropertyChanged(nameof(SelectedBackgroundSpecialties));
|
OnPropertyChanged(nameof(SelectedBackgroundSpecialties));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public NotifyTaskCompletion<BackgroundSpecialtyItem> SelectedBackgroundSpecialties
|
public BackgroundSpecialtyItem SelectedBackgroundSpecialties
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -50,74 +50,30 @@
|
||||||
<ContentPage Title="Historique">
|
<ContentPage Title="Historique">
|
||||||
<ScrollView Orientation="Vertical">
|
<ScrollView Orientation="Vertical">
|
||||||
<StackLayout>
|
<StackLayout>
|
||||||
<!--<Picker Title="Historique" HorizontalOptions="FillAndExpand" IsEnabled="{Binding Backgrounds.IsSuccessfullyCompleted}" ItemsSource="{Binding Backgrounds.Result}" ItemDisplayBinding="{Binding Name}" SelectedIndex="{Binding BackgroundSelectedIndex, Mode=TwoWay}" />-->
|
|
||||||
<views:ItemPickerView BindingContext="{Binding}" Title="Historique" ItemsSource="{Binding Backgrounds.Result}" SelectedItem="{Binding SelectedBackground, Mode=TwoWay}" />
|
<views:ItemPickerView BindingContext="{Binding}" Title="Historique" ItemsSource="{Binding Backgrounds.Result}" SelectedItem="{Binding SelectedBackground, Mode=TwoWay}" />
|
||||||
|
<Label Text="{Binding NotifySelectedBackground.Status}" />
|
||||||
|
|
||||||
<!--<Picker Title="Variante" HorizontalOptions="FillAndExpand" IsEnabled="{Binding SubBackgrounds.IsSuccessfullyCompleted}" ItemsSource="{Binding SubBackgrounds.Result}" ItemDisplayBinding="{Binding Name}" SelectedIndex="{Binding SubBackgroundSelectedIndex, Mode=TwoWay}" />-->
|
<views:ItemPickerView BindingContext="{Binding}" Title="Variante" ItemsSource="{Binding SubBackgrounds}" SelectedItem="{Binding SelectedSubBackground, Mode=TwoWay}" />
|
||||||
<views:ItemPickerView BindingContext="{Binding}" Title="Variante" ItemsSource="{Binding SubBackgrounds.Result}" SelectedItem="{Binding SelectedSubBackground, Mode=TwoWay}" />
|
|
||||||
|
|
||||||
<!--<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" Markdown="{Binding SelectedPlayerCharacter.Background.Description}" />
|
|
||||||
|
|
||||||
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" Markdown="{Binding SelectedPlayerCharacter.SubBackground.Description}" />-->
|
|
||||||
|
|
||||||
<Frame BorderColor="Black" Padding="2">
|
<Frame BorderColor="Black" Padding="2">
|
||||||
<StackLayout Padding="0">
|
<StackLayout Padding="0">
|
||||||
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" HorizontalOptions="FillAndExpand" Markdown="{Binding SelectedPlayerCharacter.SelectedBackgroundSkill.Name, StringFormat='# {0}'}" />
|
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" HorizontalOptions="FillAndExpand" Markdown="{Binding SelectedBackgroundSkill.Name, StringFormat='# {0}'}" />
|
||||||
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" HorizontalOptions="FillAndExpand" Markdown="{Binding SelectedPlayerCharacter.SelectedBackgroundSkill.Description}" />
|
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" HorizontalOptions="FillAndExpand" Markdown="{Binding SelectedBackgroundSkill.Description}" />
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
</Frame>
|
</Frame>
|
||||||
<!--<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" HorizontalOptions="FillAndExpand" Markdown="{Binding SelectedPlayerCharacter.SelectedBackgroundSkill.Name, StringFormat='# {0}'}" />-->
|
|
||||||
<!--<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" HorizontalOptions="FillAndExpand" Markdown="{Binding SelectedPlayerCharacter.SelectedBackgroundSkill.Description}" />-->
|
|
||||||
|
|
||||||
|
<views:StringPickerView BindingContext="{Binding}" Title="{Binding SelectedBackgroundSpecialties.Name}" Description="{Binding SelectedBackgroundSpecialties.Description}" ItemsSource="{Binding SelectedBackgroundSpecialties.BindableTable}" SelectedItem="{Binding SelectedPlayerCharacter.PickedBackgroundSpecialty, Mode=TwoWay}" />
|
||||||
|
|
||||||
<views:StringPickerView BindingContext="{Binding}" Title="{Binding SelectedBackgroundSpecialties.Result.Name}" Description="{Binding SelectedBackgroundSpecialties.Result.Description}" ItemsSource="{Binding SelectedBackgroundSpecialties.Result.BindableTable}" SelectedItem="{Binding SelectedPlayerCharacter.PickedBackgroundSpecialty, Mode=TwoWay}" />
|
|
||||||
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" HorizontalOptions="FillAndExpand" Markdown="{Binding SelectedPlayerCharacter.PickedBackgroundSpecialty}" />
|
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" HorizontalOptions="FillAndExpand" Markdown="{Binding SelectedPlayerCharacter.PickedBackgroundSpecialty}" />
|
||||||
|
|
||||||
|
|
||||||
|
<views:StringPickerView BindingContext="{Binding}" Title="Trait de personnalité" IsVisible="{Binding NotifySelectedBackground.IsSuccessfullyCompleted}" ItemsSource="{Binding PersonalityTraits}" SelectedItem="{Binding SelectedPersonalityTrait, Mode=TwoWay}" />
|
||||||
|
|
||||||
<!--SelectedItem="{Binding SelectedPlayerCharacter.SelectedBackgroundSpecialty, Mode=TwoWay}"-->
|
<views:StringPickerView BindingContext="{Binding}" Title="Idéal" IsVisible="{Binding NotifySelectedBackground.IsSuccessfullyCompleted}" ItemsSource="{Binding PersonalityIdeals}" SelectedItem="{Binding SelectedPersonalityIdeal, Mode=TwoWay}" />
|
||||||
<!--<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" IsVisible="{Binding PersonalityTraits.IsSuccessfullyCompleted}" HorizontalOptions="FillAndExpand" Markdown="{Binding SelectedPlayerCharacter.PersonalityTrait}" />
|
|
||||||
<Button Visual="Material" IsVisible="{Binding SelectedBackgroundSpecialties.IsSuccessfullyCompleted}" Text="Spécialité" Command="{Binding BackgroundSpecialtyPickerCommand}" CommandParameter="{Binding SelectedBackgroundSpecialties.Result}" />
|
|
||||||
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" HorizontalOptions="FillAndExpand" Markdown="{Binding SelectedPlayerCharacter.SelectedBackgroundSpecialty}" />-->
|
|
||||||
|
|
||||||
|
<views:StringPickerView BindingContext="{Binding}" Title="Lien" IsVisible="{Binding NotifySelectedBackground.IsSuccessfullyCompleted}" ItemsSource="{Binding PersonalityLinks}" SelectedItem="{Binding SelectedPersonalityLink, Mode=TwoWay}" />
|
||||||
|
|
||||||
|
<views:StringPickerView BindingContext="{Binding}" Title="Défaut" IsVisible="{Binding NotifySelectedBackground.IsSuccessfullyCompleted}" ItemsSource="{Binding PersonalityDefects}" SelectedItem="{Binding SelectedPersonalityDefect, Mode=TwoWay}" />
|
||||||
|
|
||||||
|
|
||||||
<!--<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" HorizontalOptions="FillAndExpand" Markdown="{Binding SelectedPlayerCharacter.SubBackgroundSkill.Name}" />
|
|
||||||
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" HorizontalOptions="FillAndExpand" Markdown="{Binding SelectedPlayerCharacter.SubBackgroundSkill.Description}" />-->
|
|
||||||
|
|
||||||
<!--<Button Visual="Material" IsVisible="{Binding SubBackgroundSpecialties.IsSuccessfullyCompleted}" Text="Spécialité" Command="{Binding SubBackgroundSpecialtyPickerCommand}" CommandParameter="{Binding SubBackgroundSpecialties.Result}" />
|
|
||||||
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" HorizontalOptions="FillAndExpand" Markdown="{Binding SelectedPlayerCharacter.SubBackgroundSpecialty}" />-->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--<views:StringPickerView Title="Trait de personnalité" IsVisible="{Binding PersonalityTraits.IsSuccessfullyCompleted}" ItemsSource="{Binding PersonalityTraits.Result}" />-->
|
|
||||||
<views:StringPickerView BindingContext="{Binding}" Title="Trait de personnalité" IsVisible="{Binding PersonalityTraits.IsSuccessfullyCompleted}" ItemsSource="{Binding PersonalityTraits.Result}" SelectedItem="{Binding SelectedPlayerCharacter.PersonalityTrait, Mode=TwoWay}" />
|
|
||||||
<!--<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" IsVisible="{Binding PersonalityTraits.IsSuccessfullyCompleted}" HorizontalOptions="FillAndExpand" Markdown="{Binding SelectedPlayerCharacter.PersonalityTrait}" />-->
|
|
||||||
|
|
||||||
<views:StringPickerView BindingContext="{Binding}" Title="Idéal" IsVisible="{Binding PersonalityIdeals.IsSuccessfullyCompleted}" ItemsSource="{Binding PersonalityIdeals.Result}" SelectedItem="{Binding SelectedPlayerCharacter.PersonalityIdeal, Mode=TwoWay}" />
|
|
||||||
<!--<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" IsVisible="{Binding PersonalityIdeals.IsSuccessfullyCompleted}" HorizontalOptions="FillAndExpand" Markdown="{Binding SelectedPlayerCharacter.PersonalityIdeal}" />-->
|
|
||||||
|
|
||||||
<views:StringPickerView BindingContext="{Binding}" Title="Lien" IsVisible="{Binding PersonalityLinks.IsSuccessfullyCompleted}" ItemsSource="{Binding PersonalityLinks.Result}" SelectedItem="{Binding SelectedPlayerCharacter.PersonalityLink, Mode=TwoWay}" />
|
|
||||||
<!--<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" IsVisible="{Binding PersonalityLinks.IsSuccessfullyCompleted}" HorizontalOptions="FillAndExpand" Markdown="{Binding SelectedPlayerCharacter.PersonalityLink}" />-->
|
|
||||||
|
|
||||||
<views:StringPickerView BindingContext="{Binding}" Title="Défaut" IsVisible="{Binding PersonalityDefects.IsSuccessfullyCompleted}" ItemsSource="{Binding PersonalityDefects.Result}" SelectedItem="{Binding SelectedPlayerCharacter.PersonalityDefect, Mode=TwoWay}" />
|
|
||||||
<!--<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" IsVisible="{Binding PersonalityDefects.IsSuccessfullyCompleted}" HorizontalOptions="FillAndExpand" Markdown="{Binding SelectedPlayerCharacter.PersonalityDefect}" />-->
|
|
||||||
|
|
||||||
<!--<Button Visual="Material" IsVisible="{Binding PersonalityIdeals.IsSuccessfullyCompleted}" Text="Idéal" Command="{Binding PersonalityIdealPickerCommand}" CommandParameter="{Binding PersonalityIdeals.Result}" />
|
|
||||||
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" IsVisible="{Binding PersonalityIdeals.IsSuccessfullyCompleted}" HorizontalOptions="FillAndExpand" Markdown="{Binding SelectedPlayerCharacter.PersonalityIdeal}" />
|
|
||||||
|
|
||||||
<Button Visual="Material" IsVisible="{Binding PersonalityLinks.IsSuccessfullyCompleted}" Text="Lien" Command="{Binding PersonalityLinkPickerCommand}" CommandParameter="{Binding PersonalityLinks.Result}" />
|
|
||||||
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" IsVisible="{Binding PersonalityLinks.IsSuccessfullyCompleted}" HorizontalOptions="FillAndExpand" Markdown="{Binding SelectedPlayerCharacter.PersonalityLink}" />
|
|
||||||
|
|
||||||
<Button Visual="Material" IsVisible="{Binding PersonalityDefects.IsSuccessfullyCompleted}" Text="Défaut" Command="{Binding PersonalityDefectPickerCommand}" CommandParameter="{Binding PersonalityDefects.Result}" />
|
|
||||||
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" IsVisible="{Binding PersonalityDefects.IsSuccessfullyCompleted}" HorizontalOptions="FillAndExpand" Markdown="{Binding SelectedPlayerCharacter.PersonalityDefect}" />-->
|
|
||||||
|
|
||||||
|
|
||||||
<!--<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" Markdown="{Binding SelectedPlayerCharacter.Background.Markdown}" />
|
|
||||||
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" Markdown="{Binding SelectedPlayerCharacter.SubBackground.Markdown}" />-->
|
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
</ContentPage>
|
</ContentPage>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue