add 'palette selection' text for radio buttons

also fix a bug where `HasMultiplePalettes` didn't notify when changing between tables
This commit is contained in:
haven1433
2022-11-23 11:13:54 -06:00
parent d66a02d518
commit ee379d6d91
2 changed files with 2 additions and 3 deletions

View File

@@ -223,9 +223,7 @@ namespace HavenSoft.HexManiac.Core.ViewModels.Tools {
UpdateAvailablePalettes(that.Start);
Start = other.Start;
Pages = that.Pages;
NotifyPropertyChanged(nameof(CanExportMany));
NotifyPropertyChanged(nameof(CanExportAll));
NotifyPropertyChanged(nameof(CanExportManyOrAll));
NotifyPropertiesChanged(nameof(CanExportMany), nameof(CanExportAll), nameof(CanExportManyOrAll), nameof(HasMultiplePalettes));
importImage.RaiseCanExecuteChanged();
exportImage.RaiseCanExecuteChanged();
exportImages.RaiseCanExecuteChanged();

View File

@@ -500,6 +500,7 @@
<DataTemplate DataType="{x:Type hsg3hvmtr:SpriteElementViewModel}">
<StackPanel Visibility="{Binding Visible, Converter={StaticResource BoolToVisibility}}">
<hsg3hv:CommonTableStreamControl />
<hsg3hv:AngleBorder Content="Palette Selection" FontSize="10" Direction="Out" Visibility="{Binding HasMultiplePalettes, Converter={StaticResource BoolToVisibility}}" HorizontalAlignment="Center" />
<ItemsControl ItemsSource="{Binding PaletteSelection}" Visibility="{Binding HasMultiplePalettes, Converter={StaticResource BoolToVisibility}}" HorizontalAlignment="Center" IsTabStop="False">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>