Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ls:UIWidget x:Name="Dialogue"
- 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:b="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:ls="clr-namespace:ls;assembly=Code"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:noesis="clr-namespace:NoesisGUIExtensions;assembly=Noesis.GUI.Extensions"
- xmlns:System="clr-namespace:System;assembly=mscorlib"
- mc:Ignorable="d"
- ls:UIWidget.ContextName="Dialogue" d:DataContext="{d:DesignInstance {x:Type ls:DCDialogue}, IsDesignTimeCreatable=True}"
- d:DesignHeight="2160" d:DesignWidth="3840">
- <ls:UIWidget.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/Core;component/Library/DialogueTemplates.xaml"/>
- </ResourceDictionary.MergedDictionaries>
- <ls:LSMessageBoxData x:Key="OnAttackMessageBox" Text="{Binding Source='h3de62469gbf26g4390ga9a5g530b768217fe', Converter={StaticResource TranslatedStringConverter}}" Title="{Binding Source='h4ce24528g0b74g4dc1g8ba6g80071f09ac12', Converter={StaticResource TranslatedStringConverter}}" UUID="UUID">
- <ls:LSMessageBoxData.Actions>
- <ls:LSGameCommandData ActionName="{Binding Source='hf52bf842g05beg48dega717gca15b3678e0e', Converter={StaticResource TranslatedStringConverter}}"
- Command="{Binding DataContext.AttackCommand, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}"
- ControlTemplate="{StaticResource BlueButton}"
- BoundEvent="UIAccept"/>
- <ls:LSGameCommandData ActionName="{Binding Source='heded8384gb4f5g439dg9883g5cf950b2bbfc', Converter={StaticResource TranslatedStringConverter}}"
- Command="{Binding DataContext.CustomEvent, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}"
- CommandParameter="CloseMessageBox"
- ControlTemplate="{StaticResource RedButton}"
- BoundEvent="UICancel"/>
- </ls:LSMessageBoxData.Actions>
- </ls:LSMessageBoxData>
- <Style x:Key="Dialogue.ContinueBinding" TargetType="ls:LSInputBinding">
- <Setter Property="PlayerId" Value="{Binding CurrentPlayer.PlayerId}" />
- <Setter Property="Command" Value="{Binding SelectorSkipCommand}" />
- <Setter Property="CommandParameter" Value="{Binding CurrentPlayer.PlayerId}" />
- <Setter Property="SoundID" Value="UI_Input_Dialogue_Continue"/>
- </Style>
- <Storyboard x:Key="Dialogue.Anim">
- <DoubleAnimation Storyboard.TargetProperty="Opacity" From="0.0" To="1" BeginTime="0:0:1" Duration="0:0:0.4">
- <DoubleAnimation.EasingFunction>
- <CubicEase EasingMode="EaseOut"/>
- </DoubleAnimation.EasingFunction>
- </DoubleAnimation>
- <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="IsHitTestVisible" Duration="0:0:0.4">
- <DiscreteBooleanKeyFrame Value="True" KeyTime="0:0:0" />
- </BooleanAnimationUsingKeyFrames>
- </Storyboard>
- <Storyboard x:Key="SkipButtonPromptStoryboard" TargetName="SkipDialoguePrompt">
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity">
- <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
- <EasingDoubleKeyFrame KeyTime="0:0:2.5" Value="1"/>
- <EasingDoubleKeyFrame KeyTime="0:0:3" Value="0"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- <Storyboard x:Key="SkipButtonPromptHideStoryboard" TargetName="SkipDialoguePrompt">
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity">
- <EasingDoubleKeyFrame KeyTime="0:0:.5" Value="0"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </ResourceDictionary>
- </ls:UIWidget.Resources>
- <ls:UIWidget.Template>
- <ControlTemplate TargetType="ls:UIWidget">
- <Grid >
- <ContentControl x:Name="PollNotification" Visibility="Collapsed" Template="{StaticResource PollNotification}" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="0,20,0,0">
- <TextBlock Text="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.PollNotification}" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="{StaticResource LS_PrimaryColor}"/>
- </ContentControl>
- <ls:LSInputBinding PlayerId="{Binding CurrentPlayer.PlayerId}" BoundEvent="UIUp" Command="{Binding SelectorUpCommand}" />
- <ls:LSInputBinding PlayerId="{Binding CurrentPlayer.PlayerId}" BoundEvent="UIDown" Command="{Binding SelectorDownCommand}" />
- <ls:LSInputBinding PlayerId="{Binding PlayerId}" AnyKey="True" EatInput="False" IsEnabled="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.ShowAnswers, Converter={StaticResource InvertBoolConverter}}">
- <b:Interaction.Triggers>
- <b:EventTrigger EventName="LSInputBindingPressed">
- <b:ControlStoryboardAction ControlStoryboardOption="Play" Storyboard="{StaticResource SkipButtonPromptStoryboard}"/>
- </b:EventTrigger>
- </b:Interaction.Triggers>
- </ls:LSInputBinding>
- <ls:LSInputBinding BoundEvent="UISkipDialog" Style="{StaticResource Dialogue.ContinueBinding}" />
- <!-- this is an alternative to allow pressing "1" to on continue nodes -->
- <ls:LSInputBinding BoundEvent="UISelectSlot1" Style="{StaticResource Dialogue.ContinueBinding}" IsEnabled="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.ShowAnswers, Converter={StaticResource InvertBoolConverter}, Mode=OneWay}" />
- <Control Template="{StaticResource Dialogue.DialogueNotification}"/>
- <!-- dialogue text and answers -->
- <StackPanel Orientation="Vertical" VerticalAlignment="Bottom">
- <Control Template="{StaticResource Dialogue.TradeNotificationControl}" HorizontalAlignment="Center"/>
- <Control Template="{StaticResource Dialogue.BodyAndAnswersContainer}" VerticalAlignment="Bottom"/>
- </StackPanel>
- <!-- tabs -->
- <Grid x:Name="Tabs" Margin="36,0,36,35" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" >
- <Grid.Style>
- <Style TargetType="Grid">
- <Setter Property="IsHitTestVisible" Value="False" />
- <Setter Property="Opacity" Value="0" />
- <Style.Triggers>
- <DataTrigger Binding="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.ShowAnswers, Mode=OneWay}" Value="True">
- <DataTrigger.EnterActions>
- <BeginStoryboard x:Name="Anim" Storyboard="{StaticResource Dialogue.Anim}" />
- </DataTrigger.EnterActions>
- <DataTrigger.ExitActions>
- <StopStoryboard BeginStoryboardName="Anim" />
- </DataTrigger.ExitActions>
- </DataTrigger>
- <DataTrigger Binding="{Binding SelectedCharacterCanChangeActiveDialogueSpeaker}" Value="True">
- <DataTrigger.EnterActions>
- <BeginStoryboard x:Name="SelectorAnim" Storyboard="{StaticResource Dialogue.Anim}" />
- </DataTrigger.EnterActions>
- <DataTrigger.ExitActions>
- <StopStoryboard BeginStoryboardName="SelectorAnim" />
- </DataTrigger.ExitActions>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Grid.Style>
- </Grid>
- <!-- Buttons -->
- <ls:LSButton x:Name="btnStopListening" Style="{DynamicResource CloseButton}" SoundID="UI_HUD_Dialogue_StopListening" Command="{Binding DataContext.StopListeningCommand, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}"
- VerticalAlignment="Top" HorizontalAlignment="Right" Margin="30" Visibility="{Binding DataContext.ActiveDialogueIsListening, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}, Converter={StaticResource BoolToVisibleConverter}}"/>
- <Grid Name="ButtonsHitbox" Background="Transparent" Height="460" Width="600" VerticalAlignment="Bottom" HorizontalAlignment="Left">
- <StackPanel Name="ButtonsContainer" Orientation="Vertical" Visibility="Collapsed" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="40,0,0,20">
- <!-- Privacy Toggle -->
- <StackPanel x:Name="PrivacyToggle" HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal" Margin="4,0,0,16"
- Visibility="{Binding DataContext.CanShowPrivacyButton, ElementName=Dialogue, Converter={StaticResource BoolToVisibleConverter}}">
- <Border Background="Black" Margin="18" CornerRadius="6">
- <ls:LSToggleButton Style="{StaticResource TickBox}" Margin="0" IsChecked="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.PrivacyOverride, Mode=TwoWay}" Command="{Binding OnPrivacyOverrideChange}"/>
- </Border>
- <TextBlock Text="{Binding Source='h4c3d66a9g8aa4g46e0g9557g3cc7418bdaf2',Converter={StaticResource TranslatedStringConverter}}" FontSize="{StaticResource LargeFontSize}" Style="{StaticResource Dialogue.BodyTextStyle}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- </StackPanel>
- <!--#region Character selection-->
- <ContentControl IsHitTestVisible="{Binding Path=IsChecked, ElementName=btnToggleCharacters}" Opacity="0" Visibility="Collapsed" DataContext="{Binding DataContext, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ls:UIWidget}}}">
- <ItemsControl x:Name="PortraitHolder" ItemsSource="{Binding CurrentPlayer.AssignedCharacters}" Background="Transparent" Template="{StaticResource MinimalItemsControlTemplate}">
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <StackPanel IsItemsHost="True" Orientation="Horizontal"/>
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- <ItemsControl.ItemContainerStyle>
- <Style TargetType="{x:Type ContentPresenter}">
- <Setter Property="ContentTemplate" Value="{StaticResource Dialogue.InactivePortrait}" />
- <Setter Property="VerticalAlignment" Value="Bottom"/>
- <Style.Triggers>
- <DataTrigger Value="True">
- <DataTrigger.Binding>
- <MultiBinding Converter="{StaticResource EqualConverter}" Mode="OneWay">
- <Binding Path="DataContext.CurrentPlayer.SelectedCharacter" RelativeSource="{RelativeSource AncestorType={x:Type ls:UIWidget}}"/>
- <Binding Path="."/>
- </MultiBinding>
- </DataTrigger.Binding>
- <Setter Property="ContentTemplate" Value="{StaticResource Dialogue.ActivePortrait}" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </ItemsControl.ItemContainerStyle>
- </ItemsControl>
- <ContentControl.Style>
- <Style TargetType="ContentControl" BasedOn="{StaticResource {x:Type ContentControl}}">
- <Style.Triggers>
- <DataTrigger Binding="{Binding Path=IsChecked, ElementName=btnToggleCharacters}" Value="True">
- <DataTrigger.EnterActions>
- <BeginStoryboard>
- <Storyboard>
- <DoubleAnimation Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:0.2">
- <DoubleAnimation.EasingFunction>
- <CubicEase EasingMode="EaseOut"/>
- </DoubleAnimation.EasingFunction>
- </DoubleAnimation>
- <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility">
- <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{x:Static Visibility.Visible}"/>
- </ObjectAnimationUsingKeyFrames>
- </Storyboard>
- </BeginStoryboard>
- </DataTrigger.EnterActions>
- <DataTrigger.ExitActions>
- <BeginStoryboard>
- <Storyboard>
- <DoubleAnimation Storyboard.TargetProperty="Opacity" From="1" To="0" Duration="0:0:0.2">
- <DoubleAnimation.EasingFunction>
- <CubicEase EasingMode="EaseOut"/>
- </DoubleAnimation.EasingFunction>
- </DoubleAnimation>
- <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility">
- <DiscreteObjectKeyFrame KeyTime="0:0:0.2" Value="{x:Static Visibility.Collapsed}"/>
- </ObjectAnimationUsingKeyFrames>
- </Storyboard>
- </BeginStoryboard>
- </DataTrigger.ExitActions>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </ContentControl.Style>
- </ContentControl>
- <!--#endregion-->
- <StackPanel Orientation="Horizontal">
- <ls:LSButton x:Name="btnMenu" Style="{StaticResource GameMenuButtonStyle}" Command="{Binding DataContext.CustomEvent, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}" CommandParameter="ToggleGameMenu" Content="{Binding Shortcut}" SoundID="UI_HUD_EscapeMenu_Open"
- DataContext="{Binding DataContext.CurrentPlayer.UIData.InputEvents, Converter={StaticResource FindInputEventConverter}, ConverterParameter='Menu', RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}" ToolTipService.Placement="Center" ToolTipService.VerticalOffset="-100"
- IsEnabled="{Binding DataContext.CurrentPlayer.UIData.IsGameMenuAllowed, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}">
- <ls:LSButton.ToolTip>
- <ls:LSTooltip Content="{Binding Source='hb9a8dd57g134fg425fg9da0g1dc579af0c60',Converter={StaticResource TranslatedStringConverter}, ConverterParameter='Loca'}"/>
- </ls:LSButton.ToolTip>
- </ls:LSButton>
- <ls:LSToggleButton x:Name="btnToggleCharacters" ToolTipService.Placement="Center" ToolTipService.VerticalOffset="-100" HorizontalAlignment="Left" Style="{StaticResource Dialogue.ExpandCharactersButtonStyle}" Visibility="{Binding DataContext.CanShowToggleCharactersButton, ElementName=Dialogue, Converter={StaticResource BoolToVisibleConverter}}" SoundID="UI_HUD_Dialogue_ExpandCharacters">
- <ls:LSToggleButton.ToolTip>
- <ls:LSTooltip Content="{Binding Source='h455c1b64g1c6dg4ac4ga9aegb3f0d761858a',Converter={StaticResource TranslatedStringConverter}}"/>
- </ls:LSToggleButton.ToolTip>
- </ls:LSToggleButton>
- <ls:LSButton x:Name="btnTrade" ToolTipService.Placement="Center" ToolTipService.VerticalOffset="-100" IsEnabled="{Binding DataContext.ActiveDialogueIsListening, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}, Converter={StaticResource InvertBoolConverter}}" Style="{StaticResource TradeButtonStyle}" Visibility="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.CanTrade, Converter={StaticResource BoolToVisibleConverter}}" SoundID="UI_HUD_Dialogue_Trade" Command="{Binding DataContext.StartTrade, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}" CommandParameter="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.DialogueCharacter}">
- <ls:LSButton.ToolTip>
- <ls:LSTooltip Content="{Binding Source='he4fdff4dga552g4023gb49bg333f39b77015',Converter={StaticResource TranslatedStringConverter}}"/>
- </ls:LSButton.ToolTip>
- </ls:LSButton>
- <ls:LSButton x:Name="btnAttack" ToolTipService.Placement="Center" ToolTipService.VerticalOffset="-100" IsEnabled="{Binding DataContext.ActiveDialogueIsListening, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}, Converter={StaticResource InvertBoolConverter}}" Style="{StaticResource AttackButtonStyle}" Visibility="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.AllowAttack, Converter={StaticResource BoolToVisibleConverter}}" Command="{Binding DataContext.OpenMessageBox, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}" CommandParameter="{DynamicResource OnAttackMessageBox}">
- <ls:LSButton.ToolTip>
- <ls:LSTooltip Content="{Binding Source='hc2b3a4e3ge669g4919ga291ged7ebad9c1b1',Converter={StaticResource TranslatedStringConverter}}"/>
- </ls:LSButton.ToolTip>
- </ls:LSButton>
- <ls:LSButton x:Name="btnHistory" Style="{StaticResource HistoryButtonStyle}" Command="{Binding DataContext.CustomEvent, ElementName=Dialogue}" CommandParameter="OpenDialogueHistory" Visibility="{Binding DataContext.CanShowHistoryButton, ElementName=Dialogue, Converter={StaticResource BoolToVisibleConverter}}" SoundID="UI_HUD_Dialogue_History" ToolTipService.Placement="Center" ToolTipService.VerticalOffset="-100" BoundEvent="ToggleJournal">
- <ls:LSButton.ToolTip>
- <ls:LSTooltip Content="{Binding Source='he9e4a39fg8a5dg4ac5gacffgaea214260c69',Converter={StaticResource TranslatedStringConverter}}"/>
- </ls:LSButton.ToolTip>
- </ls:LSButton>
- <ls:LSButton x:Name="btnPoll" ToolTipService.Placement="Right" ToolTipService.VerticalOffset="-96" ToolTipService.HorizontalOffset="-200" Command="{Binding CommunityPollRequest}">
- <ls:LSButton.ToolTip>
- <ls:LSTooltip Content="{Binding Source='hf83a94cbg15c8g4c48gba78g87ac8711afa4',Converter={StaticResource TranslatedStringConverter}}"/>
- </ls:LSButton.ToolTip>
- <ls:LSButton.Style>
- <Style TargetType="ls:LSButton" BasedOn="{StaticResource Dialogue.PollButtonStyle}">
- <Setter Property="Visibility" Value="Collapsed" />
- <Style.Triggers>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding DataContext.Data.IsCommunityPollEnabled, ElementName=Dialogue}" Value="True" />
- <Condition Binding="{Binding DataContext.CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.ShowPollButton, ElementName=Dialogue}" Value="True" />
- <Condition Binding="{Binding DataContext.CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.ShowAnswers, ElementName=Dialogue}" Value="True"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Visibility" Value="Visible"/>
- </MultiDataTrigger>
- </Style.Triggers>
- </Style>
- </ls:LSButton.Style>
- </ls:LSButton>
- </StackPanel>
- </StackPanel>
- </Grid>
- <TextBlock VerticalAlignment="Top"
- HorizontalAlignment="Right"
- FontSize="{StaticResource GiganticFontSize}"
- Opacity="0.7"
- Text="{Binding Data.VersionString}"
- Visibility="{Binding Data.IsGold, Converter={StaticResource BoolToCollapsedConverter}}"
- IsHitTestVisible="False"/>
- <ls:LSNineSliceImage x:Name="SkipDialoguePrompt" Opacity="0" ImageSource="pack://application:,,,/Core;component/Assets/Tooltips/worldTT_context_bg.png" Slices="22" Padding="32,22" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,16,16" Visibility="{Binding, Converter={StaticResource BoolToCollapsedConverter}}">
- <TextBlock x:Name="content" VerticalAlignment="Top" Foreground="{StaticResource TooltipColor.Primary}" DataContext="{Binding CurrentPlayer.UIData.InputEvents, Converter={StaticResource FindInputEventConverter}, ConverterParameter='UISkipDialog'}">
- <Run Text="["/><Run
- Text="{Binding Shortcut}" Foreground="{StaticResource TooltipColor.Secondary}"/><Run
- Text="] "/><Run
- Text="{Binding Caption}"/>
- </TextBlock>
- </ls:LSNineSliceImage>
- <b:Interaction.Triggers>
- <b:EventTrigger EventName="Loaded">
- <b:Interaction.Behaviors>
- <b:ConditionBehavior>
- <b:ConditionalExpression>
- <b:ComparisonCondition LeftOperand="{Binding ActiveDialogueIsListening}" Operator="Equal" RightOperand="True" />
- </b:ConditionalExpression>
- </b:ConditionBehavior>
- </b:Interaction.Behaviors>
- <!-- Tutorial UI Event - Dialogue listen-->
- <b:InvokeCommandAction Command="{Binding TutorialEvent}" CommandParameter="c01b74a1-7ff2-41da-885a-3fe0152d7775"/>
- </b:EventTrigger>
- <b:EventTrigger EventName="Unloaded">
- <b:ControlStoryboardAction ControlStoryboardOption="Stop" Storyboard="{StaticResource SkipButtonPromptStoryboard}"/>
- <b:ControlStoryboardAction ControlStoryboardOption="Stop" Storyboard="{StaticResource SkipButtonPromptHideStoryboard}"/>
- </b:EventTrigger>
- <b:EventTrigger EventName="WidgetClosing">
- <b:InvokeCommandAction Command="{Binding RecheckReward}"/>
- </b:EventTrigger>
- <b:DataTrigger Binding="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.ShowAnswers}" Value="True">
- <b:ControlStoryboardAction ControlStoryboardOption="Pause" Storyboard="{StaticResource SkipButtonPromptStoryboard}"/>
- <b:ControlStoryboardAction ControlStoryboardOption="Play" Storyboard="{StaticResource SkipButtonPromptHideStoryboard}"/>
- </b:DataTrigger>
- </b:Interaction.Triggers>
- </Grid>
- <ControlTemplate.Triggers>
- <!--Show the dialogue buttons on hover when no dialogue options are available -->
- <DataTrigger Binding="{Binding ElementName=ButtonsHitbox, Path=IsMouseOver}" Value="True">
- <Setter TargetName="ButtonsContainer" Property="Visibility" Value="Visible"/>
- </DataTrigger>
- <!--Show the dialogue buttons when dialogue options are available-->
- <DataTrigger Binding="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.ShowAnswers}" Value="True">
- <Setter TargetName="ButtonsContainer" Property="Visibility" Value="Visible"/>
- <Setter TargetName="ButtonsHitbox" Property="Background" Value="{x:Null}"/>
- </DataTrigger>
- <DataTrigger Binding="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.ShowAnswers}" Value="False">
- <Setter TargetName="btnTrade" Property="IsEnabled" Value="False"/>
- </DataTrigger>
- <DataTrigger Binding="{Binding Data.IsCommunityPollEnabled}" Value="True">
- <Setter TargetName="PollNotification" Property="Visibility" Value="Visible"/>
- </DataTrigger>
- <DataTrigger Binding="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.PollNotification}" Value="">
- <Setter TargetName="PollNotification" Property="Visibility" Value="Collapsed"/>
- </DataTrigger>
- <DataTrigger Value="True">
- <DataTrigger.Binding>
- <MultiBinding Converter="{StaticResource EqualConverter}">
- <Binding Path="Data.LocalPlayers.Count"/>
- <Binding Path="Data.Players.Count"/>
- </MultiBinding>
- </DataTrigger.Binding>
- <Setter TargetName="PrivacyToggle" Property="Visibility" Value="Collapsed"/>
- </DataTrigger>
- <DataTrigger Binding="{Binding PrivacyOverrideGlobalSetting}" Value="True">
- <Setter TargetName="PrivacyToggle" Property="Visibility" Value="Collapsed"/>
- </DataTrigger>
- <DataTrigger Binding="{Binding ActiveDialogueIsListening}" Value="True">
- <Setter TargetName="PrivacyToggle" Property="Visibility" Value="Collapsed"/>
- </DataTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </ls:UIWidget.Template>
- <b:Interaction.Triggers>
- <b:PropertyChangedTrigger Binding="{Binding CurrentPlayer.SelectedCharacter}">
- <b:InvokeCommandAction Command="{Binding SelectedCharacterChangedCommand}"/>
- </b:PropertyChangedTrigger>
- <b:PropertyChangedTrigger Binding="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue}">
- <b:InvokeCommandAction Command="{Binding SelectedCharacterActiveDialogueChangedCommand}"/>
- </b:PropertyChangedTrigger>
- <b:PropertyChangedTrigger Binding="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.AllowSpeakerSelection}">
- <b:InvokeCommandAction Command="{Binding DialogueAllowSpeakerSelectionChangedCommand}"/>
- </b:PropertyChangedTrigger>
- </b:Interaction.Triggers>
- </ls:UIWidget>
Advertisement
Add Comment
Please, Sign In to add comment