Guest User

Baldur's Gate 3 Mod hide "SkipDialoguePrompt"

a guest
Oct 17th, 2025
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.66 KB | Gaming | 0 0
  1. <ls:UIWidget x:Name="Dialogue"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
  6. xmlns:ls="clr-namespace:ls;assembly=Code"
  7. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  8. xmlns:noesis="clr-namespace:NoesisGUIExtensions;assembly=Noesis.GUI.Extensions"
  9. xmlns:System="clr-namespace:System;assembly=mscorlib"
  10. mc:Ignorable="d"
  11. ls:UIWidget.ContextName="Dialogue" d:DataContext="{d:DesignInstance {x:Type ls:DCDialogue}, IsDesignTimeCreatable=True}"
  12. d:DesignHeight="2160" d:DesignWidth="3840">
  13.  
  14. <ls:UIWidget.Resources>
  15. <ResourceDictionary>
  16. <ResourceDictionary.MergedDictionaries>
  17. <ResourceDictionary Source="/Core;component/Library/DialogueTemplates.xaml"/>
  18. </ResourceDictionary.MergedDictionaries>
  19.  
  20. <ls:LSMessageBoxData x:Key="OnAttackMessageBox" Text="{Binding Source='h3de62469gbf26g4390ga9a5g530b768217fe', Converter={StaticResource TranslatedStringConverter}}" Title="{Binding Source='h4ce24528g0b74g4dc1g8ba6g80071f09ac12', Converter={StaticResource TranslatedStringConverter}}" UUID="UUID">
  21. <ls:LSMessageBoxData.Actions>
  22. <ls:LSGameCommandData ActionName="{Binding Source='hf52bf842g05beg48dega717gca15b3678e0e', Converter={StaticResource TranslatedStringConverter}}"
  23. Command="{Binding DataContext.AttackCommand, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}"
  24. ControlTemplate="{StaticResource BlueButton}"
  25. BoundEvent="UIAccept"/>
  26. <ls:LSGameCommandData ActionName="{Binding Source='heded8384gb4f5g439dg9883g5cf950b2bbfc', Converter={StaticResource TranslatedStringConverter}}"
  27. Command="{Binding DataContext.CustomEvent, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}"
  28. CommandParameter="CloseMessageBox"
  29. ControlTemplate="{StaticResource RedButton}"
  30. BoundEvent="UICancel"/>
  31. </ls:LSMessageBoxData.Actions>
  32. </ls:LSMessageBoxData>
  33.  
  34. <Style x:Key="Dialogue.ContinueBinding" TargetType="ls:LSInputBinding">
  35. <Setter Property="PlayerId" Value="{Binding CurrentPlayer.PlayerId}" />
  36. <Setter Property="Command" Value="{Binding SelectorSkipCommand}" />
  37. <Setter Property="CommandParameter" Value="{Binding CurrentPlayer.PlayerId}" />
  38. <Setter Property="SoundID" Value="UI_Input_Dialogue_Continue"/>
  39. </Style>
  40.  
  41. <Storyboard x:Key="Dialogue.Anim">
  42. <DoubleAnimation Storyboard.TargetProperty="Opacity" From="0.0" To="1" BeginTime="0:0:1" Duration="0:0:0.4">
  43. <DoubleAnimation.EasingFunction>
  44. <CubicEase EasingMode="EaseOut"/>
  45. </DoubleAnimation.EasingFunction>
  46. </DoubleAnimation>
  47. <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="IsHitTestVisible" Duration="0:0:0.4">
  48. <DiscreteBooleanKeyFrame Value="True" KeyTime="0:0:0" />
  49. </BooleanAnimationUsingKeyFrames>
  50. </Storyboard>
  51.  
  52. <Storyboard x:Key="SkipButtonPromptStoryboard" TargetName="SkipDialoguePrompt">
  53. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity">
  54. <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
  55. <EasingDoubleKeyFrame KeyTime="0:0:2.5" Value="1"/>
  56. <EasingDoubleKeyFrame KeyTime="0:0:3" Value="0"/>
  57. </DoubleAnimationUsingKeyFrames>
  58. </Storyboard>
  59.  
  60. <Storyboard x:Key="SkipButtonPromptHideStoryboard" TargetName="SkipDialoguePrompt">
  61. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity">
  62. <EasingDoubleKeyFrame KeyTime="0:0:.5" Value="0"/>
  63. </DoubleAnimationUsingKeyFrames>
  64. </Storyboard>
  65. </ResourceDictionary>
  66. </ls:UIWidget.Resources>
  67.  
  68. <ls:UIWidget.Template>
  69. <ControlTemplate TargetType="ls:UIWidget">
  70. <Grid >
  71. <ContentControl x:Name="PollNotification" Visibility="Collapsed" Template="{StaticResource PollNotification}" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="0,20,0,0">
  72. <TextBlock Text="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.PollNotification}" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="{StaticResource LS_PrimaryColor}"/>
  73. </ContentControl>
  74.  
  75. <ls:LSInputBinding PlayerId="{Binding CurrentPlayer.PlayerId}" BoundEvent="UIUp" Command="{Binding SelectorUpCommand}" />
  76. <ls:LSInputBinding PlayerId="{Binding CurrentPlayer.PlayerId}" BoundEvent="UIDown" Command="{Binding SelectorDownCommand}" />
  77. <ls:LSInputBinding PlayerId="{Binding PlayerId}" AnyKey="True" EatInput="False" IsEnabled="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.ShowAnswers, Converter={StaticResource InvertBoolConverter}}">
  78. <b:Interaction.Triggers>
  79. <b:EventTrigger EventName="LSInputBindingPressed">
  80. <b:ControlStoryboardAction ControlStoryboardOption="Play" Storyboard="{StaticResource SkipButtonPromptStoryboard}"/>
  81. </b:EventTrigger>
  82. </b:Interaction.Triggers>
  83. </ls:LSInputBinding>
  84. <ls:LSInputBinding BoundEvent="UISkipDialog" Style="{StaticResource Dialogue.ContinueBinding}" />
  85.  
  86. <!-- this is an alternative to allow pressing "1" to on continue nodes -->
  87. <ls:LSInputBinding BoundEvent="UISelectSlot1" Style="{StaticResource Dialogue.ContinueBinding}" IsEnabled="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.ShowAnswers, Converter={StaticResource InvertBoolConverter}, Mode=OneWay}" />
  88.  
  89. <Control Template="{StaticResource Dialogue.DialogueNotification}"/>
  90. <!-- dialogue text and answers -->
  91. <StackPanel Orientation="Vertical" VerticalAlignment="Bottom">
  92. <Control Template="{StaticResource Dialogue.TradeNotificationControl}" HorizontalAlignment="Center"/>
  93. <Control Template="{StaticResource Dialogue.BodyAndAnswersContainer}" VerticalAlignment="Bottom"/>
  94. </StackPanel>
  95.  
  96. <!-- tabs -->
  97. <Grid x:Name="Tabs" Margin="36,0,36,35" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" >
  98. <Grid.Style>
  99. <Style TargetType="Grid">
  100. <Setter Property="IsHitTestVisible" Value="False" />
  101. <Setter Property="Opacity" Value="0" />
  102. <Style.Triggers>
  103. <DataTrigger Binding="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.ShowAnswers, Mode=OneWay}" Value="True">
  104. <DataTrigger.EnterActions>
  105. <BeginStoryboard x:Name="Anim" Storyboard="{StaticResource Dialogue.Anim}" />
  106. </DataTrigger.EnterActions>
  107. <DataTrigger.ExitActions>
  108. <StopStoryboard BeginStoryboardName="Anim" />
  109. </DataTrigger.ExitActions>
  110. </DataTrigger>
  111. <DataTrigger Binding="{Binding SelectedCharacterCanChangeActiveDialogueSpeaker}" Value="True">
  112. <DataTrigger.EnterActions>
  113. <BeginStoryboard x:Name="SelectorAnim" Storyboard="{StaticResource Dialogue.Anim}" />
  114. </DataTrigger.EnterActions>
  115. <DataTrigger.ExitActions>
  116. <StopStoryboard BeginStoryboardName="SelectorAnim" />
  117. </DataTrigger.ExitActions>
  118. </DataTrigger>
  119. </Style.Triggers>
  120. </Style>
  121. </Grid.Style>
  122. </Grid>
  123.  
  124. <!-- Buttons -->
  125. <ls:LSButton x:Name="btnStopListening" Style="{DynamicResource CloseButton}" SoundID="UI_HUD_Dialogue_StopListening" Command="{Binding DataContext.StopListeningCommand, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}"
  126. VerticalAlignment="Top" HorizontalAlignment="Right" Margin="30" Visibility="{Binding DataContext.ActiveDialogueIsListening, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}, Converter={StaticResource BoolToVisibleConverter}}"/>
  127.  
  128. <Grid Name="ButtonsHitbox" Background="Transparent" Height="460" Width="600" VerticalAlignment="Bottom" HorizontalAlignment="Left">
  129. <StackPanel Name="ButtonsContainer" Orientation="Vertical" Visibility="Collapsed" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="40,0,0,20">
  130.  
  131. <!-- Privacy Toggle -->
  132. <StackPanel x:Name="PrivacyToggle" HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal" Margin="4,0,0,16"
  133. Visibility="{Binding DataContext.CanShowPrivacyButton, ElementName=Dialogue, Converter={StaticResource BoolToVisibleConverter}}">
  134. <Border Background="Black" Margin="18" CornerRadius="6">
  135. <ls:LSToggleButton Style="{StaticResource TickBox}" Margin="0" IsChecked="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.PrivacyOverride, Mode=TwoWay}" Command="{Binding OnPrivacyOverrideChange}"/>
  136. </Border>
  137. <TextBlock Text="{Binding Source='h4c3d66a9g8aa4g46e0g9557g3cc7418bdaf2',Converter={StaticResource TranslatedStringConverter}}" FontSize="{StaticResource LargeFontSize}" Style="{StaticResource Dialogue.BodyTextStyle}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  138. </StackPanel>
  139.  
  140. <!--#region Character selection-->
  141. <ContentControl IsHitTestVisible="{Binding Path=IsChecked, ElementName=btnToggleCharacters}" Opacity="0" Visibility="Collapsed" DataContext="{Binding DataContext, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ls:UIWidget}}}">
  142. <ItemsControl x:Name="PortraitHolder" ItemsSource="{Binding CurrentPlayer.AssignedCharacters}" Background="Transparent" Template="{StaticResource MinimalItemsControlTemplate}">
  143. <ItemsControl.ItemsPanel>
  144. <ItemsPanelTemplate>
  145. <StackPanel IsItemsHost="True" Orientation="Horizontal"/>
  146. </ItemsPanelTemplate>
  147. </ItemsControl.ItemsPanel>
  148. <ItemsControl.ItemContainerStyle>
  149. <Style TargetType="{x:Type ContentPresenter}">
  150. <Setter Property="ContentTemplate" Value="{StaticResource Dialogue.InactivePortrait}" />
  151. <Setter Property="VerticalAlignment" Value="Bottom"/>
  152. <Style.Triggers>
  153. <DataTrigger Value="True">
  154. <DataTrigger.Binding>
  155. <MultiBinding Converter="{StaticResource EqualConverter}" Mode="OneWay">
  156. <Binding Path="DataContext.CurrentPlayer.SelectedCharacter" RelativeSource="{RelativeSource AncestorType={x:Type ls:UIWidget}}"/>
  157. <Binding Path="."/>
  158. </MultiBinding>
  159. </DataTrigger.Binding>
  160. <Setter Property="ContentTemplate" Value="{StaticResource Dialogue.ActivePortrait}" />
  161. </DataTrigger>
  162. </Style.Triggers>
  163. </Style>
  164. </ItemsControl.ItemContainerStyle>
  165. </ItemsControl>
  166.  
  167. <ContentControl.Style>
  168. <Style TargetType="ContentControl" BasedOn="{StaticResource {x:Type ContentControl}}">
  169. <Style.Triggers>
  170. <DataTrigger Binding="{Binding Path=IsChecked, ElementName=btnToggleCharacters}" Value="True">
  171. <DataTrigger.EnterActions>
  172. <BeginStoryboard>
  173. <Storyboard>
  174. <DoubleAnimation Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:0.2">
  175. <DoubleAnimation.EasingFunction>
  176. <CubicEase EasingMode="EaseOut"/>
  177. </DoubleAnimation.EasingFunction>
  178. </DoubleAnimation>
  179. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility">
  180. <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{x:Static Visibility.Visible}"/>
  181. </ObjectAnimationUsingKeyFrames>
  182. </Storyboard>
  183. </BeginStoryboard>
  184. </DataTrigger.EnterActions>
  185. <DataTrigger.ExitActions>
  186. <BeginStoryboard>
  187. <Storyboard>
  188. <DoubleAnimation Storyboard.TargetProperty="Opacity" From="1" To="0" Duration="0:0:0.2">
  189. <DoubleAnimation.EasingFunction>
  190. <CubicEase EasingMode="EaseOut"/>
  191. </DoubleAnimation.EasingFunction>
  192. </DoubleAnimation>
  193. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility">
  194. <DiscreteObjectKeyFrame KeyTime="0:0:0.2" Value="{x:Static Visibility.Collapsed}"/>
  195. </ObjectAnimationUsingKeyFrames>
  196. </Storyboard>
  197. </BeginStoryboard>
  198. </DataTrigger.ExitActions>
  199. </DataTrigger>
  200. </Style.Triggers>
  201. </Style>
  202. </ContentControl.Style>
  203. </ContentControl>
  204. <!--#endregion-->
  205.  
  206. <StackPanel Orientation="Horizontal">
  207. <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"
  208. DataContext="{Binding DataContext.CurrentPlayer.UIData.InputEvents, Converter={StaticResource FindInputEventConverter}, ConverterParameter='Menu', RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}" ToolTipService.Placement="Center" ToolTipService.VerticalOffset="-100"
  209. IsEnabled="{Binding DataContext.CurrentPlayer.UIData.IsGameMenuAllowed, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}">
  210. <ls:LSButton.ToolTip>
  211. <ls:LSTooltip Content="{Binding Source='hb9a8dd57g134fg425fg9da0g1dc579af0c60',Converter={StaticResource TranslatedStringConverter}, ConverterParameter='Loca'}"/>
  212. </ls:LSButton.ToolTip>
  213. </ls:LSButton>
  214.  
  215. <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">
  216. <ls:LSToggleButton.ToolTip>
  217. <ls:LSTooltip Content="{Binding Source='h455c1b64g1c6dg4ac4ga9aegb3f0d761858a',Converter={StaticResource TranslatedStringConverter}}"/>
  218. </ls:LSToggleButton.ToolTip>
  219. </ls:LSToggleButton>
  220.  
  221. <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}">
  222. <ls:LSButton.ToolTip>
  223. <ls:LSTooltip Content="{Binding Source='he4fdff4dga552g4023gb49bg333f39b77015',Converter={StaticResource TranslatedStringConverter}}"/>
  224. </ls:LSButton.ToolTip>
  225. </ls:LSButton>
  226. <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}">
  227. <ls:LSButton.ToolTip>
  228. <ls:LSTooltip Content="{Binding Source='hc2b3a4e3ge669g4919ga291ged7ebad9c1b1',Converter={StaticResource TranslatedStringConverter}}"/>
  229. </ls:LSButton.ToolTip>
  230. </ls:LSButton>
  231. <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">
  232. <ls:LSButton.ToolTip>
  233. <ls:LSTooltip Content="{Binding Source='he9e4a39fg8a5dg4ac5gacffgaea214260c69',Converter={StaticResource TranslatedStringConverter}}"/>
  234. </ls:LSButton.ToolTip>
  235. </ls:LSButton>
  236. <ls:LSButton x:Name="btnPoll" ToolTipService.Placement="Right" ToolTipService.VerticalOffset="-96" ToolTipService.HorizontalOffset="-200" Command="{Binding CommunityPollRequest}">
  237. <ls:LSButton.ToolTip>
  238. <ls:LSTooltip Content="{Binding Source='hf83a94cbg15c8g4c48gba78g87ac8711afa4',Converter={StaticResource TranslatedStringConverter}}"/>
  239. </ls:LSButton.ToolTip>
  240. <ls:LSButton.Style>
  241. <Style TargetType="ls:LSButton" BasedOn="{StaticResource Dialogue.PollButtonStyle}">
  242. <Setter Property="Visibility" Value="Collapsed" />
  243. <Style.Triggers>
  244. <MultiDataTrigger>
  245. <MultiDataTrigger.Conditions>
  246. <Condition Binding="{Binding DataContext.Data.IsCommunityPollEnabled, ElementName=Dialogue}" Value="True" />
  247. <Condition Binding="{Binding DataContext.CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.ShowPollButton, ElementName=Dialogue}" Value="True" />
  248. <Condition Binding="{Binding DataContext.CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.ShowAnswers, ElementName=Dialogue}" Value="True"/>
  249. </MultiDataTrigger.Conditions>
  250. <Setter Property="Visibility" Value="Visible"/>
  251. </MultiDataTrigger>
  252. </Style.Triggers>
  253. </Style>
  254. </ls:LSButton.Style>
  255. </ls:LSButton>
  256.  
  257. </StackPanel>
  258. </StackPanel>
  259. </Grid>
  260.  
  261. <TextBlock VerticalAlignment="Top"
  262. HorizontalAlignment="Right"
  263. FontSize="{StaticResource GiganticFontSize}"
  264. Opacity="0.7"
  265. Text="{Binding Data.VersionString}"
  266. Visibility="{Binding Data.IsGold, Converter={StaticResource BoolToCollapsedConverter}}"
  267. IsHitTestVisible="False"/>
  268.  
  269.  
  270. <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}}">
  271. <TextBlock x:Name="content" VerticalAlignment="Top" Foreground="{StaticResource TooltipColor.Primary}" DataContext="{Binding CurrentPlayer.UIData.InputEvents, Converter={StaticResource FindInputEventConverter}, ConverterParameter='UISkipDialog'}">
  272. <Run Text="["/><Run
  273. Text="{Binding Shortcut}" Foreground="{StaticResource TooltipColor.Secondary}"/><Run
  274. Text="] "/><Run
  275. Text="{Binding Caption}"/>
  276. </TextBlock>
  277. </ls:LSNineSliceImage>
  278.  
  279. <b:Interaction.Triggers>
  280. <b:EventTrigger EventName="Loaded">
  281. <b:Interaction.Behaviors>
  282. <b:ConditionBehavior>
  283. <b:ConditionalExpression>
  284. <b:ComparisonCondition LeftOperand="{Binding ActiveDialogueIsListening}" Operator="Equal" RightOperand="True" />
  285. </b:ConditionalExpression>
  286. </b:ConditionBehavior>
  287. </b:Interaction.Behaviors>
  288. <!-- Tutorial UI Event - Dialogue listen-->
  289. <b:InvokeCommandAction Command="{Binding TutorialEvent}" CommandParameter="c01b74a1-7ff2-41da-885a-3fe0152d7775"/>
  290. </b:EventTrigger>
  291. <b:EventTrigger EventName="Unloaded">
  292. <b:ControlStoryboardAction ControlStoryboardOption="Stop" Storyboard="{StaticResource SkipButtonPromptStoryboard}"/>
  293. <b:ControlStoryboardAction ControlStoryboardOption="Stop" Storyboard="{StaticResource SkipButtonPromptHideStoryboard}"/>
  294. </b:EventTrigger>
  295. <b:EventTrigger EventName="WidgetClosing">
  296. <b:InvokeCommandAction Command="{Binding RecheckReward}"/>
  297. </b:EventTrigger>
  298.  
  299. <b:DataTrigger Binding="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.ShowAnswers}" Value="True">
  300. <b:ControlStoryboardAction ControlStoryboardOption="Pause" Storyboard="{StaticResource SkipButtonPromptStoryboard}"/>
  301. <b:ControlStoryboardAction ControlStoryboardOption="Play" Storyboard="{StaticResource SkipButtonPromptHideStoryboard}"/>
  302. </b:DataTrigger>
  303. </b:Interaction.Triggers>
  304. </Grid>
  305. <ControlTemplate.Triggers>
  306. <!--Show the dialogue buttons on hover when no dialogue options are available -->
  307. <DataTrigger Binding="{Binding ElementName=ButtonsHitbox, Path=IsMouseOver}" Value="True">
  308. <Setter TargetName="ButtonsContainer" Property="Visibility" Value="Visible"/>
  309. </DataTrigger>
  310.  
  311. <!--Show the dialogue buttons when dialogue options are available-->
  312. <DataTrigger Binding="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.ShowAnswers}" Value="True">
  313. <Setter TargetName="ButtonsContainer" Property="Visibility" Value="Visible"/>
  314. <Setter TargetName="ButtonsHitbox" Property="Background" Value="{x:Null}"/>
  315. </DataTrigger>
  316.  
  317. <DataTrigger Binding="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.ShowAnswers}" Value="False">
  318. <Setter TargetName="btnTrade" Property="IsEnabled" Value="False"/>
  319. </DataTrigger>
  320.  
  321. <DataTrigger Binding="{Binding Data.IsCommunityPollEnabled}" Value="True">
  322. <Setter TargetName="PollNotification" Property="Visibility" Value="Visible"/>
  323. </DataTrigger>
  324. <DataTrigger Binding="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.PollNotification}" Value="">
  325. <Setter TargetName="PollNotification" Property="Visibility" Value="Collapsed"/>
  326. </DataTrigger>
  327.  
  328. <DataTrigger Value="True">
  329. <DataTrigger.Binding>
  330. <MultiBinding Converter="{StaticResource EqualConverter}">
  331. <Binding Path="Data.LocalPlayers.Count"/>
  332. <Binding Path="Data.Players.Count"/>
  333. </MultiBinding>
  334. </DataTrigger.Binding>
  335. <Setter TargetName="PrivacyToggle" Property="Visibility" Value="Collapsed"/>
  336. </DataTrigger>
  337. <DataTrigger Binding="{Binding PrivacyOverrideGlobalSetting}" Value="True">
  338. <Setter TargetName="PrivacyToggle" Property="Visibility" Value="Collapsed"/>
  339. </DataTrigger>
  340. <DataTrigger Binding="{Binding ActiveDialogueIsListening}" Value="True">
  341. <Setter TargetName="PrivacyToggle" Property="Visibility" Value="Collapsed"/>
  342. </DataTrigger>
  343. </ControlTemplate.Triggers>
  344. </ControlTemplate>
  345. </ls:UIWidget.Template>
  346. <b:Interaction.Triggers>
  347. <b:PropertyChangedTrigger Binding="{Binding CurrentPlayer.SelectedCharacter}">
  348. <b:InvokeCommandAction Command="{Binding SelectedCharacterChangedCommand}"/>
  349. </b:PropertyChangedTrigger>
  350.  
  351. <b:PropertyChangedTrigger Binding="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue}">
  352. <b:InvokeCommandAction Command="{Binding SelectedCharacterActiveDialogueChangedCommand}"/>
  353. </b:PropertyChangedTrigger>
  354.  
  355. <b:PropertyChangedTrigger Binding="{Binding CurrentPlayer.SelectedCharacter.PlayerCharacterProperties.ActiveDialogue.AllowSpeakerSelection}">
  356. <b:InvokeCommandAction Command="{Binding DialogueAllowSpeakerSelectionChangedCommand}"/>
  357. </b:PropertyChangedTrigger>
  358. </b:Interaction.Triggers>
  359. </ls:UIWidget>
Advertisement
Add Comment
Please, Sign In to add comment