Skip to content

Commit

Permalink
Soundpanel: Replace tooltip explains why audio replacement is not pos…
Browse files Browse the repository at this point in the history
…sible
  • Loading branch information
henbagle committed May 29, 2024
1 parent b839560 commit 74741cd
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,21 @@
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="2" VerticalAlignment="Center">
<Button Content="Replace" ToolTip="Change audio by importing a Wave file" Command="{Binding ReplaceAudioCommand}" VerticalContentAlignment="Center" VerticalAlignment="Center" Margin="0,0,5,0"/>
<Button Content="Replace" Command="{Binding ReplaceAudioCommand}" VerticalContentAlignment="Center" VerticalAlignment="Center" Margin="0,0,5,0">
<Button.Style>
<Style TargetType="Button">
<Setter Property="ToolTip" Value="Change audio by importing a Wave file"/>
<Style.Triggers>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="ToolTip" Value="Change audio by importing a Wave file&#x0a;You may only replace audio from a package file, not an audio bank"/>
</Trigger>
<DataTrigger Binding="{Binding CurrentLoadedExport.FileRef.Game}" Value="ME2">
<Setter Property="ToolTip" Value="Change audio by importing a Wave file&#x0a;It is not possible to replace audio in ME2"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
<Button Content="Export" ToolTip="Export audio to Wave file" VerticalContentAlignment="Center" VerticalAlignment="Center" Margin="0,8,5,0" Command="{Binding ExportAudioCommand}"/>
</StackPanel>
<Button Grid.Column="3" ToolTip="Start or pause playback" Command="{Binding StartPlaybackCommand}">
Expand Down

0 comments on commit 74741cd

Please sign in to comment.