0
0
mirror of https://github.com/sp-tarkov/launcher.git synced 2025-02-12 17:30:42 -05:00

add warning icon tooltip

This commit is contained in:
IsWaffle 2023-10-11 09:45:58 -04:00
parent 2b8a3751ec
commit 1cc8ae64ff
2 changed files with 8 additions and 3 deletions

View File

@ -23,8 +23,12 @@
<Path Data="{StaticResource Profile}" Fill="{StaticResource AKI_Brush_DarkGrayBlue}"
IsVisible="{Binding IsInProfile, RelativeSource={RelativeSource AncestorType=UserControl}}"
/>
<Path Data="{StaticResource Alert}" Fill="{StaticResource AKI_Brush_Yellow}" Margin="0 2 0 0"
>
<Canvas>
<Rectangle ToolTip.Tip="{Binding Source={x:Static helpers:LocalizationProvider.Instance}, Path=mod_not_in_server_warning}" Fill="Transparent" Height="20" Width="20"/>
<Path Data="{StaticResource Alert}" Fill="{StaticResource AKI_Brush_Yellow}"
Margin="0 2 0 0" ToolTip.Tip="{Binding Source={x:Static helpers:LocalizationProvider.Instance}, Path=mod_not_in_server_warning}"
>
<Path.IsVisible>
<MultiBinding Converter="{x:Static BoolConverters.And}">
<Binding Path="IsInProfile" RelativeSource="{RelativeSource AncestorType=UserControl}"/>
@ -32,6 +36,7 @@
</MultiBinding>
</Path.IsVisible>
</Path>
</Canvas>
</StackPanel>
<Label Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2"

View File

@ -51,7 +51,7 @@
/>
<!-- LocaleCollection reloads the locale from file when the selected loacle changes -->
<ComboBox Items="{Binding Locales.AvailableLocales}" MinWidth="200"
SelectedItem="{Binding Locales.SelectedLocale, Mode=TwoWay }"
SelectedItem="{Binding Locales.SelectedLocale, Mode=TwoWay}"
/>
</StackPanel>