<UserControl x:Class="Hearthstone_Deck_Tracker.FlyoutControls.Options.Overlay.OverlayBattlegrounds"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:options="clr-namespace:Hearthstone_Deck_Tracker.FlyoutControls.Options"
             xmlns:overlay="clr-namespace:Hearthstone_Deck_Tracker.FlyoutControls.Options.Overlay"
             xmlns:lex="http://wpflocalizeextension.codeplex.com"
             lex:LocalizeDictionary.DesignCulture="en"
             lex:ResxLocalizationProvider.DefaultAssembly="HearthstoneDeckTracker"
             lex:ResxLocalizationProvider.DefaultDictionary="Strings"
             mc:Ignorable="d" d:Background="White"
             d:DesignHeight="600" d:DesignWidth="300">
    <StackPanel>
        <CheckBox x:Name="CheckboxShowOverlayInBackground"
                  Content="{lex:Loc Options_Overlay_Battlegrounds_CheckBox_ShowInBackground}" HorizontalAlignment="Left"
                  Margin="10,5,0,0" VerticalAlignment="Top"
                  Checked="CheckboxShowOverlayInBackground_Checked"
                  Unchecked="CheckboxShowOverlayInBackground_Unchecked" />
        <CheckBox x:Name="CheckboxShowMenuOverlayInBackground"
                  Content="{lex:Loc Options_Overlay_Battlegrounds_CheckBox_ShowMenuOverlayInBackground}" HorizontalAlignment="Left"
                  Margin="10,5,0,0" VerticalAlignment="Top"
                  Checked="CheckboxShowMenuOverlayInBackground_Checked"
                  Unchecked="CheckboxShowMenuOverlayInBackground_Unchecked" />
        <CheckBox x:Name="CheckboxShowBattlegroundsTiers" Content="{lex:Loc Options_Overlay_Battlegrounds_CheckBox_ShowMinionBrowser}"
                  HorizontalAlignment="Left"
                  VerticalAlignment="Top" Checked="CheckboxShowBattlegroundsTiers_Checked"
                  Unchecked="CheckboxShowBattlegroundsTiers_Unchecked" Margin="10,5,0,0" />
        <CheckBox x:Name="CheckboxAlwaysShowBattlegroundsTavernTier7" Content="{lex:Loc Options_Overlay_Battlegrounds_CheckBox_AlwaysShowTavernTier7}"
                  HorizontalAlignment="Left" VerticalAlignment="Top"
                  IsEnabled="{Binding IsChecked, ElementName=CheckboxShowBattlegroundsTiers}"
                  Checked="CheckboxAlwaysShowBattlegroundsTavernTier7_Checked" Unchecked="CheckboxAlwaysShowBattlegroundsTavernTier7_Unchecked"
                  Margin="30,5,0,0" />
        <CheckBox x:Name="CheckboxShowBattlegroundsTurnCounter" Content="{lex:Loc Options_Overlay_Battlegrounds_CheckBox_ShowTurnCounter}"
                  HorizontalAlignment="Left"
                  VerticalAlignment="Top" Checked="CheckboxShowBattlegroundsTurnCounter_Checked"
                  Unchecked="CheckboxShowBattlegroundsTurnCounter_Unchecked" Margin="10,5,0,0" />
        <GroupBox Header="{lex:LocTextUpper Options_Overlay_Battlegrounds_Label_Tier7}" Margin="5,10,5,5">
            <StackPanel>
                <CheckBox x:Name="CheckboxEnableTier7" Content="{lex:Loc Options_Overlay_Battlegrounds_EnableTier7}"
                          HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,5,0,0"
                          Checked="CheckboxEnableTier7_Checked" Unchecked="CheckboxEnableTier7_Unchecked" />
                <CheckBox x:Name="CheckboxShowTier7PreLobby" Content="{lex:Loc Options_Overlay_Battlegrounds_ShowTier7PreLobby}"
                          IsEnabled="{Binding IsChecked, ElementName=CheckboxEnableTier7}"
                          HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,5,0,0"
                          Checked="CheckboxShowTier7PreLobby_Checked" Unchecked="CheckboxShowTier7PreLobby_Unchecked" />
                <CheckBox x:Name="CheckboxShowBattlegroundsHeroPicking" Content="{lex:Loc Options_Overlay_Battlegrounds_CheckBox_ShowHeroPickingStats}"
                          IsEnabled="{Binding IsChecked, ElementName=CheckboxEnableTier7}"
                          HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,5,0,0"
                          Checked="CheckboxShowBattlegroundsHeroPicking_Checked" Unchecked="CheckboxShowBattlegroundsHeroPicking_Unchecked"/>
                <CheckBox x:Name="CheckboxShowBattlegroundsQuestPicking" Content="{lex:Loc Options_Overlay_Battlegrounds_CheckBox_ShowQuestPickingStats}"
                          IsEnabled="{Binding IsChecked, ElementName=CheckboxEnableTier7}"
                          HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,5,0,0"
                          Checked="CheckboxShowBattlegroundsQuestPicking_Checked" Unchecked="CheckboxShowBattlegroundsQuestPicking_Unchecked" />
                <CheckBox x:Name="CheckboxAutoShowBattlegroundsTrinketPicking" Content="{lex:Loc Options_Overlay_Battlegrounds_CheckBox_ShowTrinketPickingStats}"
                          IsEnabled="{Binding IsChecked, ElementName=CheckboxEnableTier7}"
                          HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,5,0,0"
                          Checked="CheckboxAutoShowBattlegroundsTrinketPicking_Checked" Unchecked="CheckboxAutoShowBattlegroundsTrinketPicking_Unchecked" />
                <CheckBox x:Name="CheckboxShowTier7CompStats" Content="{lex:Loc Options_Overlay_Battlegrounds_CheckBox_ShowCompStats}"
                          IsEnabled="{Binding IsChecked, ElementName=CheckboxEnableTier7}"
                          HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,5,0,0"
                          Checked="CheckboxShowBattlegroundsCompStats_Checked" Unchecked="CheckboxShowBattlegroundsCompStats_Unchecked" />
            </StackPanel>
        </GroupBox>
        <GroupBox Header="{lex:LocTextUpper Options_Overlay_Battlegrounds_Label_BobsBuddy}" Margin="5,10,5,5">
            <StackPanel>
                <TextBlock Name="TextBobsBuddyDisabled" Foreground="Yellow" Visibility="Collapsed" Margin="0,0,0,5"/>
                <CheckBox x:Name="CheckboxRunCombatSimulations" Content="{lex:Loc Options_Overlay_Battlegrounds_CheckBox_RunCombatSimulations}"
                          HorizontalAlignment="Left"
                          VerticalAlignment="Top"
                          Checked="CheckboxRunCombatSimulations_Checked"
                          Unchecked="CheckboxRunCombatSimulations_Unchecked" Margin="0" />
                <CheckBox x:Name="CheckboxShowResultsDuringCombat" Content="{lex:Loc Options_Overlay_Battlegrounds_CheckBox_ShowDuringCombat}"
                          HorizontalAlignment="Left"
                          VerticalAlignment="Top"
                          IsEnabled="{Binding IsChecked, ElementName=CheckboxRunCombatSimulations}"
                          Checked="CheckboxShowResultsDuringCombat_Checked"
                          Unchecked="CheckboxShowResultsDuringCombat_Unchecked" Margin="0,5,0,0" />
                <CheckBox x:Name="CheckboxShowResultsDuringShopping" Content="{lex:Loc Options_Overlay_Battlegrounds_CheckBox_ShowDuringShopping}"
                          HorizontalAlignment="Left"
                          VerticalAlignment="Top"
                          IsEnabled="{Binding IsChecked, ElementName=CheckboxRunCombatSimulations}"
                          Checked="CheckboxShowResultsDuringShopping_Checked"
                          Unchecked="CheckboxShowResultsDuringShopping_Unchecked" Margin="0,5,0,0" />
                <CheckBox x:Name="CheckboxAlwaysShowAverageDamage" Content="{lex:Loc Options_Overlay_Battlegrounds_CheckBox_ShowAverageDamage}"
                          HorizontalAlignment="Left"
                          VerticalAlignment="Top"
                          IsEnabled="{Binding IsChecked, ElementName=CheckboxRunCombatSimulations}"
                          Checked="CheckboxAlwaysShowAverageDamage_Checked"
                          Unchecked="CheckboxAlwaysShowAverageDamage_Unchecked" Margin="0,5,0,0" />
            </StackPanel>
        </GroupBox>
        <GroupBox Header="{lex:Loc Options_Overlay_Battlegrounds_Group_Label}" Margin="5,10,5,5">
            <StackPanel>
                <CheckBox
                    x:Name="CheckboxShowSessionRecap"
                    Content="{lex:Loc Options_Overlay_Battlegrounds_CheckBox_ShowSessionRecap}"
                    HorizontalAlignment="Left"
                    VerticalAlignment="Top"
                    Checked="CheckboxShowSessionRecap_Checked"
                    Unchecked="CheckboxShowSessionRecap_Unchecked"
                    Margin="0"
                />
                <CheckBox
                    x:Name="CheckboxShowSessionRecapBetweenGames"
                    Content="{lex:Loc Options_Overlay_Battlegrounds_CheckBox_ShowSessionRecapBetweenGames}"
                    HorizontalAlignment="Left"
                    VerticalAlignment="Top"
                    IsEnabled="{Binding IsChecked, ElementName=CheckboxShowSessionRecap}"
                    Checked="CheckboxShowSessionRecapBetweenGames_Checked"
                    Unchecked="CheckboxShowSessionRecapBetweenGames_Unchecked"
                    Margin="0,5,0,0"
                />
                <CheckBox
                    x:Name="CheckboxShowExternalWindow"
                    Content="{lex:Loc Options_Overlay_Battlegrounds_CheckBox_ShowExternalWindow}"
                    HorizontalAlignment="Left"
                    VerticalAlignment="Top"
                    Checked="CheckboxShowExternalWindow_Checked"
                    Unchecked="CheckboxShowExternalWindow_Unchecked"
                    Margin="0,5,0,0"
                />
                <CheckBox
                    x:Name="CheckboxShowMinionsAvailable"
                    Content="{lex:Loc Options_Overlay_Battlegrounds_CheckBox_ShowMinionsAvailable}"
                    HorizontalAlignment="Left"
                    VerticalAlignment="Top"
                    Checked="CheckboxShowMinionsAvailable_Checked"
                    Unchecked="CheckboxShowMinionsAvailable_Unchecked"
                    Margin="0,5,0,0"
                />
                <CheckBox
                    x:Name="CheckboxShowMinionsBanned"
                    Content="{lex:Loc Options_Overlay_Battlegrounds_CheckBox_ShowMinionsBanned}"
                    HorizontalAlignment="Left"
                    VerticalAlignment="Top"
                    Checked="CheckboxShowMinionsBanned_Checked"
                    Unchecked="CheckboxShowMinionsBanned_Unchecked"
                    Margin="0,5,0,0"
                />
                <CheckBox
                    x:Name="CheckboxShowStartCurrentMMR"
                    Content="{lex:Loc Options_Overlay_Battlegrounds_CheckBox_ShowMMR}"
                    HorizontalAlignment="Left"
                    VerticalAlignment="Top"
                    Checked="CheckboxShowStartCurrentMMR_Checked"
                    Unchecked="CheckboxShowStartCurrentMMR_Unchecked"
                    Margin="0,5,0,0"
                />
                <CheckBox
                    x:Name="CheckboxShowLatestGames"
                    Content="{lex:Loc Options_Overlay_Battlegrounds_CheckBox_ShowLatestGames}"
                    HorizontalAlignment="Left"
                    VerticalAlignment="Top"
                    Checked="CheckboxShowLatestGames_Checked"
                    Unchecked="CheckboxShowLatestGames_Unchecked"
                    Margin="0,5,0,0"
                />
                <StackPanel Orientation="Horizontal">
                    <Label Content="{lex:Loc Options_Overlay_Battlegrounds_Label_Scaling}" />
                    <Slider
                        x:Name="SliderSessionRecapScaling"
                        HorizontalAlignment="Right"
                        VerticalAlignment="Center" Width="150"
                        Value="{Binding SessionRecapScaling, RelativeSource={RelativeSource AncestorType=overlay:OverlayBattlegrounds}, Delay=100}"
                        SmallChange="1" LargeChange="10" Minimum="50" Maximum="200"
                    />
                    <TextBox
                        PreviewTextInput="TextBoxSessionRecapScaling_OnPreviewTextInput"
                        Text="{Binding SessionRecapScaling, RelativeSource={RelativeSource AncestorType=overlay:OverlayBattlegrounds}}"
                        Margin="5,0,0,0" Width="50"
                    />
                </StackPanel>
                <DockPanel Margin="0,5,0,0">
                    <Button
                        Width="150"
                        Content="{lex:Loc Options_Overlay_General_Button_Reset}"
                        Command="{Binding ResetSessionCommand, RelativeSource={RelativeSource AncestorType=overlay:OverlayBattlegrounds}}"
                        VerticalAlignment="Top"
                        Margin="0,3,0,0"
                        DockPanel.Dock="Right"
                    />
                    <Label Content="{lex:Loc Options_Overlay_Battlegrounds_Button_ResetSession}" DockPanel.Dock="Left"/>
                </DockPanel>
                <TextBlock
                    Text="{lex:Loc Options_Overlay_Battlegrounds_Label_ResetSessionDesc}"
                    Foreground="White"
                    Opacity=".55"
                    TextWrapping="WrapWithOverflow"
                    TextAlignment="Left"
                    Margin="5,0,5,0"
                />
                <DockPanel Margin="0,5,0,0">
                    <Button Name="BtnUnlockOverlay" Content="{lex:Loc Options_Overlay_General_Button_UnlockOverlay}" Width="150"
                    Click="BtnUnlockOverlay_Click" DockPanel.Dock="Right" />
                    <Label Content="{lex:Loc Options_Overlay_General_Label_MoveResize}" DockPanel.Dock="Left"/>
                </DockPanel>
                <DockPanel Margin="0,5,0,0">
                    <Button x:Name="BtnResetOverlay" Content="{lex:Loc Options_Overlay_General_Button_Reset}" Width="150" Click="BtnResetOverlay_Click"
                    DockPanel.Dock="Right" />
                    <Label Content="{lex:Loc Options_Overlay_General_Label_Reset}" DockPanel.Dock="Left" />
                </DockPanel>
            </StackPanel>
        </GroupBox>
        <Button x:Name="OverlayHelpButton"
            Click="OverlayHelpButtonClick"
            Foreground="{Binding Color, Source={x:Static options:AdvancedOptions.Instance}}"
            Visibility="{Binding Visibility, Source={x:Static options:AdvancedOptions.Instance}}"
            Content="{lex:LocText Options_Tracker_Capture_Battlegrounds_Overlay}"/>
    </StackPanel>
</UserControl>
