mirror of
https://github.com/haven1433/HexManiacAdvance.git
synced 2026-10-02 13:16:35 -05:00
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:
@@ -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();
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user