2
2
xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
3
xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
4
4
xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
5
- xmlns : i =" http://schemas.microsoft.com/expression/2010/interactivity " xmlns : ei = " http://schemas.microsoft.com/expression/2010/interactions "
5
+ xmlns : b =" http://schemas.microsoft.com/xaml/behaviors "
6
6
xmlns : ls =" clr-namespace:ls;assembly=SharedGUI"
7
7
xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
8
8
xmlns : noesis =" clr-namespace:NoesisGUIExtensions;assembly=Noesis.GUI.Extensions"
15
15
<ResourceDictionary >
16
16
<ResourceDictionary .MergedDictionaries>
17
17
<ResourceDictionary Source =" ../Library/DialogueTemplates.xaml" />
18
- <!-- MOD START -->
18
+ <!-- MOD START -->
19
19
<ResourceDictionary Source =" ../Library/ImprovedUITemplates.xaml" />
20
20
<!-- MOD END -->
21
21
</ResourceDictionary .MergedDictionaries>
38
38
39
39
<Style x : Key =" Dialogue.ContinueBinding" TargetType =" ls:LSInputBinding" >
40
40
<Setter Property =" PlayerId" Value =" {Binding DataContext.CurrentPlayer.PlayerId, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}" />
41
- <Setter Property =" Command" Value =" {Binding SelectorEnterCommand .ActionCommand}" />
41
+ <Setter Property =" Command" Value =" {Binding SelectorSkipCommand .ActionCommand}" />
42
42
<Setter Property =" CommandParameter" Value =" {Binding DataContext.CurrentPlayer.PlayerId, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}" />
43
43
<Setter Property =" SoundID" Value =" UI_Input_Dialogue_Continue" />
44
44
</Style >
56
56
</ResourceDictionary >
57
57
</ls : UIWidget .Resources>
58
58
59
- <Grid DataContext =" {Binding CurrentPlayer.SelectedCharacter.ActiveDialogue}" d : DataContext = " {d:DesignInstance {x:Type ls:Dialogue}, IsDesignTimeCreatable=False} " >
59
+ <Grid DataContext =" {Binding CurrentPlayer.SelectedCharacter.ActiveDialogue}" >
60
60
<ContentControl Template =" {DynamicResource PollNotification}" VerticalAlignment =" Top" HorizontalAlignment =" Center" >
61
61
<ContentControl .Style>
62
62
<Style TargetType =" ContentControl" BasedOn =" {StaticResource {x:Type ContentControl}}" >
76
76
77
77
<ls : LSInputBinding PlayerId =" {Binding DataContext.CurrentPlayer.PlayerId, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}" BoundEvent =" UIUp" Command =" {Binding SelectorUpCommand.ActionCommand}" />
78
78
<ls : LSInputBinding PlayerId =" {Binding DataContext.CurrentPlayer.PlayerId, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}" BoundEvent =" UIDown" Command =" {Binding SelectorDownCommand.ActionCommand}" />
79
- <ls : LSInputBinding BoundEvent =" UIEndTurn " Style =" {StaticResource Dialogue.ContinueBinding}" />
79
+ <ls : LSInputBinding BoundEvent =" UISkipDialog " Style =" {StaticResource Dialogue.ContinueBinding}" />
80
80
81
81
<!-- this is an alternative to allow pressing "1" to on continue nodes -->
82
82
<ls : LSInputBinding BoundEvent =" UISelectSlot1" Style =" {StaticResource Dialogue.ContinueBinding}" IsEnabled =" {Binding ShowAnswers, Converter={StaticResource InvertBoolConverter}, Mode=OneWay}" />
168
168
</ContentControl >
169
169
<!-- #endregion-->
170
170
<StackPanel Orientation =" Horizontal" >
171
- <ls : LSButton x : Name =" btnMenu" Style =" {StaticResource GameMenuButtonStyle}" Command =" {Binding DataContext.CustomEvent, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}" CommandParameter =" ToggleGameMenu" Content =" {Binding ShortShortcut }" SoundID =" UI_HUD_EscapeMenu_Open"
171
+ <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"
172
172
DataContext =" {Binding DataContext.CurrentPlayer.UIData.InputEvents, Converter={StaticResource FindInputEventConverter}, ConverterParameter='Menu', RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}" ToolTipService.Placement=" Center" ToolTipService.VerticalOffset=" -88" >
173
173
<ls : LSButton .ToolTip>
174
174
<ls : LSTooltip Content =" {Binding Source='hb9a8dd57g134fg425fg9da0g1dc579af0c60',Converter={StaticResource TranslatedStringConverter}, ConverterParameter='Loca'}" />
175
175
</ls : LSButton .ToolTip>
176
176
</ls : LSButton >
177
177
178
- <ls : LSToggleButton x : Name =" btnToggleCharacters" ToolTipService.Placement=" Center" ToolTipService.VerticalOffset=" -88" HorizontalAlignment =" Left" Style =" {StaticResource Dialogue.ExpandCharactersButtonStyle}" Visibility =" {Binding CurrentPlayer.AssignedCharacters.Count, Converter={StaticResource CountToVisibleConverter }, ConverterParameter={StaticResource ShowCharacterSelectionCount}}" SoundID =" UI_HUD_Dialogue_ExpandCharacters" >
178
+ <ls : LSToggleButton x : Name =" btnToggleCharacters" ToolTipService.Placement=" Center" ToolTipService.VerticalOffset=" -88" HorizontalAlignment =" Left" Style =" {StaticResource Dialogue.ExpandCharactersButtonStyle}" Visibility =" {Binding CurrentPlayer.AssignedCharacters.Count, Converter={StaticResource CountToVisibilityConverter }, ConverterParameter={StaticResource ShowCharacterSelectionCount}}" SoundID =" UI_HUD_Dialogue_ExpandCharacters" >
179
179
<ls : LSToggleButton .ToolTip>
180
180
<ls : LSTooltip Content =" {Binding Source='h455c1b64g1c6dg4ac4ga9aegb3f0d761858a',Converter={StaticResource TranslatedStringConverter}}" />
181
181
</ls : LSToggleButton .ToolTip>
196
196
<ls : LSTooltip Content =" {Binding Source='he9e4a39fg8a5dg4ac5gacffgaea214260c69',Converter={StaticResource TranslatedStringConverter}}" />
197
197
</ls : LSButton .ToolTip>
198
198
</ls : LSButton >
199
- <!-- MOD START - Adds picture button -->
199
+ <!-- MOD START - Adds picture button -->
200
200
<ls : LSButton x : Name =" PictureModeBtn" ToolTipService.Placement=" Center" ToolTipService.VerticalOffset=" -88" Style =" {StaticResource PictureModeButtonStyle}"
201
201
Command =" {Binding Path=DataContext.CustomEvent, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ls:UIWidget}}}"
202
202
CommandParameter =" OpenPictureMode" >
209
209
</StackPanel >
210
210
211
211
<!-- MOD START - Remove early access text from dialogues
212
- <TextBlock VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="{StaticResource GiganticFontSize}" Opacity="0.7">
212
+ <TextBlock VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="{StaticResource GiganticFontSize}" Opacity="0.7">
213
213
<Run Text="{Binding Source='h8be1f0ddgdfa7g4812ga2b5g04854b2a1a65', Converter={StaticResource TranslatedStringConverter}, ConverterParameter='ToUpper'}"/>
214
214
<Run Text=" - "/>
215
215
<Run Text="{Binding DataContext.Data.VersionString, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ls:UIWidget}}}"/>
216
216
</TextBlock>
217
- MOD END -->
218
-
217
+ MOD END -->
218
+
219
219
</Grid >
220
+ <b : Interaction .Triggers>
221
+ <b : DataTrigger Binding =" {Binding CurrentPlayer.SelectedCharacter.ActiveDialogue}" Value =" {x:Null}" >
222
+ <b : InvokeCommandAction Command =" {Binding Path=DataContext.CustomEvent, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ls:UIWidget}}}" CommandParameter =" DialogueHide" />
223
+ </b : DataTrigger >
224
+
225
+ <b : EventTrigger EventName =" WidgetClosing" >
226
+ <b : InvokeCommandAction Command =" {Binding DataContext.RecheckReward, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}" />
227
+ </b : EventTrigger >
228
+ </b : Interaction .Triggers>
220
229
</ls : UIWidget >
0 commit comments